@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&family=Playfair+Display:ital,wght@1,700&display=swap');

:root {
    --naranja-principal: #E65C00;
    --naranja-suave: #FFF0E6;
    --verde-principal: #00A86B;
    --verde-suave: #E6F7F0;
    --oscuro: #1A1A1A;
    --gris-fondo: #FAFAFA;
    --blanco: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--gris-fondo);
    padding-top: 80px; /* Esto empuja todo el contenido hacia abajo para que el menú no lo tape */
    color: var(--oscuro);
    overflow-x: hidden;
}

/* --- NAVBAR STYLES --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Máxima prioridad para que siempre esté arriba */
    background-color: #ffffff; /* Importante: poné color de fondo sólido */
    height: 80px; /* Definimos una altura fija */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-huella {
    background-color: #FFE6D5;
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    font-size: 22px;
    line-height: 1.1;
}

.font-bold { font-weight: 800; }
.naranja { color: var(--naranja-principal); }
.verde { color: var(--verde-principal); }

.nav-links a {
    text-decoration: none;
    color: #666666;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--oscuro);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-ingresar {
    text-decoration: none;
    color: var(--oscuro);
    font-weight: 600;
    padding: 10px 20px;
}

.btn-publicar {
    text-decoration: none;
    background-color: var(--blanco);
    border: 1px solid #E0E0E0;
    color: #666;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-publicar:hover {
    background-color: var(--naranja-principal);
    color: var(--blanco);
    border-color: var(--naranja-principal);
}

.btn-menu {
    display: none; /* Oculto en computadoras por defecto */
    background: var(--oscuro);
    color: var(--blanco);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* --- HERO SECTION --- */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 85px);
    padding: 40px 5%;
    align-items: center;
}

.badge-perritos {
    display: inline-flex;
    align-items: center;
    background-color: var(--naranja-suave);
    color: var(--naranja-principal);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    border: 1px solid #FFD6BC;
}

.hero-title {
    font-size: 75px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--oscuro);
    margin-bottom: 40px;
}

.italic-hero {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
}

.scroll-down {
    width: 50px;
    height: 50px;
    background-color: #333333;
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
}

/* --- VISUAL DE LA DERECHA --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-pibe {
    width: 380px;
    height: 480px;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.04);
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-bg-gradient {
    width: 100%;
    height: 250px;
    background: linear-gradient(180deg, #FFDE99 0%, #FFA3A3 100%);
    border-radius: 24px;
}

.mini-card {
    position: absolute;
    top: 150px;
    left: -20px;
    background: var(--blanco);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
    width: 280px;
    border: 1px solid #F0F0F0;
}

.mini-avatar {
    background-color: #7BE3A7;
    font-size: 28px;
    padding: 10px;
    border-radius: 14px;
}

.mini-info h3 {
    font-size: 18px;
    font-weight: 800;
}

.mini-info p {
    font-size: 13px;
    color: #888888;
    margin-bottom: 5px;
}

.badge-nuevo {
    background-color: var(--verde-suave);
    color: var(--verde-principal);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* --- SECCIONES GENERALES --- */
.section-container {
    padding: 80px 5%;
    text-align: center;
}

.fondo-suave {
    background-color: #F4F7F6;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--oscuro);
}

.section-subtitle {
    color: #666666;
    font-size: 16px;
    margin-bottom: 50px;
}

/* --- GRILLA DE REFUGIOS --- */
.refugios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.refugio-card {
    background: var(--blanco);
    border: 1px solid #EAEAEA;
    border-radius: 24px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refugio-card:hover {
    transform: translateY(-5px);
    border-color: var(--naranja-principal);
    box-shadow: 0px 15px 30px rgba(230, 92, 0, 0.08);
}

.refugio-logo {
    width: 80px;
    height: 80px;
    background-color: var(--naranja-suave);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.refugio-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.refugio-card p {
    font-size: 14px;
    color: var(--naranja-principal);
    font-weight: 600;
}


/* ==========================================================================
   NUEVOS ESTILOS RESPONSIVOS PARA CELULARES (PANTALLAS CHICAS)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Reducimos un toque el espacio superior */
    }

    /* Navbar en Celu */
    .navbar {
        height: 70px;
        padding: 0 4%;
    }

    .logo-texto {
        font-size: 18px; /* Texto de Huellitas un poco más chico */
    }

    .nav-links {
        display: none; /* Escondemos los enlaces comunes (ideal para usar con menú hamburguesa) */
    }

    .btn-menu {
        display: block; /* Aparece el botón de menú flotante */
    }

    .btn-publicar, .btn-ingresar {
        display: none; /* Escondemos estos botones sueltos para meterlos dentro del menú colapsable */
    }

    /* Hero Section en Celu */
    .hero-section {
        grid-template-columns: 1fr; /* Pasa de 2 columnas a 1 sola */
        text-align: center;
        padding: 30px 4%;
        gap: 40px;
    }

    .badge-perritos {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 38px; /* Achicamos el mega título para que no rompa la pantalla */
        margin-bottom: 25px;
    }

    .scroll-down {
        margin: 0 auto; /* Centramos el botón de scroll */
    }

    /* Tarjetas del Hero en Celu (Evita roturas de pantalla) */
    .card-pibe {
        width: 100%;
        max-width: 320px; /* Se estira fluido hasta 320px */
        height: 420px;
        margin: 0 auto;
    }

    .card-bg-gradient {
        height: 200px;
    }

    .mini-card {
        width: 250px;
        left: -10px; /* Ajustamos la tarjeta flotante para que no se vaya de los bordes del celu */
        top: 120px;
        padding: 10px;
        gap: 10px;
    }

    .mini-avatar {
        font-size: 22px;
        padding: 8px;
    }

    .mini-info h3 {
        font-size: 15px;
    }

    /* Contenedores y Secciones Generales */
    .section-container {
        padding: 40px 4%; /* Menos espacio vacío muerto arriba y abajo */
    }

    .section-title {
        font-size: 28px; /* Títulos de secciones más coherentes para pantallas chicas */
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* Grilla de Refugios */
    .refugios-grid {
        gap: 20px; /* Espaciado un poco más cerrado para ahorrar espacio */
    }
}
/* --- GRILLA DE PERROS (ESTILO MERCADO LIBRE MODERNO) --- */
.perros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.perro-card {
    background: var(--blanco);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.perro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 35px rgba(0,0,0,0.07);
}

.perro-img-container {
    position: relative;
    width: 100%;
    height: 220px;
}

.perro-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-tamano {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.perro-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.perro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.perro-header h3 {
    font-size: 22px;
    font-weight: 800;
}

.perro-edad {
    background-color: var(--naranja-suave);
    color: var(--naranja-principal);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.perro-raza {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
}

.perro-descripcion {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.perro-footer {
    border-top: 1px solid #F0F0F0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perro-origen {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-adoptar {
    text-decoration: none;
    background-color: var(--verde-principal);
    color: var(--blanco);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-adoptar:hover {
    background-color: #008754;
}

/* --- BOTONES DEL HERO --- */
.btn-principal-naranja {
    text-decoration: none;
    background-color: var(--naranja-principal);
    color: var(--blanco);
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0px 8px 20px rgba(230, 92, 0, 0.2);
}

.btn-principal-naranja:hover {
    background-color: #cc5200;
    transform: translateY(-2px);
}

.btn-secundario-verde {
    text-decoration: none;
    background-color: var(--verde-suave);
    color: var(--verde-principal);
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.3s;
    border: 1px solid #c2f0dc;
}

.btn-secundario-verde:hover {
    background-color: #d1f5e6;
    transform: translateY(-2px);
}

/* --- PÁGINA DE DETALLE DEL PERRO --- */
.detalle-main-container {
    padding: 40px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.volver-atras {
    margin-bottom: 25px;
}

.volver-atras a {
    text-decoration: none;
    color: #666666;
    font-weight: 600;
    transition: color 0.2s;
}

.volver-atras a:hover {
    color: var(--naranja-principal);
}

.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.detalle-card-img {
    width: 100%;
    height: 550px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.05);
}

.detalle-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalle-info-panel {
    display: flex;
    flex-direction: column;
}

.detalle-header-pet .badge-nuevo {
    display: inline-block;
    margin-bottom: 10px;
}

.detalle-header-pet h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--oscuro);
    margin-bottom: 25px;
}

/* Fichas Bento de Características */
.caracteristicas-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.tag-item {
    background-color: var(--blanco);
    border: 1px solid #EAEAEA;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-title {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tag-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--oscuro);
}

/* Cuadro de descripción */
.detalle-descripcion-box h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.detalle-descripcion-box p {
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Tarjeta dueño/refugio */
.detalle-rescatista-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #F4F7F6;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 35px;
}

.rescatista-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--verde-suave);
    color: var(--verde-principal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.rescatista-datos h4 {
    font-size: 16px;
    font-weight: 700;
}


/* ==========================================================================
   PARCHE RESPONSIVO EXTRA PARA CELULARES (MÁXIMO 768px VARIANTES DE GRILLA/DETALLE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Grilla de Perros adaptable a pantallas ultra-chicas sin romperse */
    .perros-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .perro-card {
        border-radius: 20px;
    }

    .perro-info {
        padding: 20px; /* Un toque más ajustado para aprovechar espacio */
    }

    /* Botones de acción del Hero apilados fluidos */
    .btn-principal-naranja, 
    .btn-secundario-verde {
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 12px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Evitamos que el último botón quede pegado abajo si están en un contenedor */
    .btn-secundario-verde {
        margin-bottom: 0;
    }

    /* Estructura de la Vista Detalle a una Sola Columna */
    .detalle-main-container {
        padding: 20px 4%;
    }

    .detalle-grid {
        grid-template-columns: 1fr; /* Columna única */
        gap: 25px;
    }

    .detalle-card-img {
        height: 320px; /* Reducimos la altura brutal de la foto para que se vea el contenido real abajo */
        border-radius: 20px;
    }

    .detalle-header-pet h1 {
        font-size: 30px; /* Título equilibrado para pantallas móviles */
        margin-bottom: 15px;
    }

    /* Fichas Bento de Características a 2 Columnas para que no se pisen los textos */
    .caracteristicas-tags {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }

    .tag-item {
        padding: 12px;
        border-radius: 12px;
    }

    .tag-value {
        font-size: 15px; /* Evita desborde de palabras largas en el box */
    }

    .detalle-descripcion-box p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .detalle-rescatista-card {
        padding: 15px;
        border-radius: 16px;
        margin-bottom: 25px;
    }
}
.rescatista-datos p {
    font-size: 13px;
    color: #666666;
}

/* Botones de acción */
.detalle-acciones {
    display: flex;
    gap: 15px;
}

.btn-whatsapp {
    text-decoration: none;
    background-color: #25D366;
    color: var(--blanco);
    flex-grow: 2;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.2s;
    box-shadow: 0px 8px 20px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
}

.btn-email-contacto {
    text-decoration: none;
    background-color: var(--blanco);
    color: var(--oscuro);
    border: 1px solid #E0E0E0;
    flex-grow: 1;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.2s;
}

.btn-email-contacto:hover {
    background-color: #F5F5F5;
}

/* --- PÁGINA DE LOGIN MODERNA --- */
.login-body {
    background-color: var(--naranja-suave); /* Fondo cálido con el tono de la app */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.login-back {
    text-decoration: none;
    color: var(--naranja-principal);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: opacity 0.2s;
}

.login-back:hover {
    opacity: 0.8;
}

.login-box {
    background: var(--blanco);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0px 20px 40px rgba(230, 92, 0, 0.06);
    border: 1px solid #FFD6BC;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 60px;
    height: 60px;
    background-color: var(--naranja-suave);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto 15px auto;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--oscuro);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--oscuro);
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field i {
    position: absolute;
    left: 15px;
    color: #999999;
    font-size: 16px;
}

.input-field input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 14px;
    border: 1px solid #E0E0E0;
    font-size: 15px;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
    outline: none;
}

.input-field input:focus {
    border-color: var(--naranja-principal);
    background-color: var(--blanco);
    box-shadow: 0px 0px 0px 4px rgba(230, 92, 0, 0.1);
}

/* Opciones extras */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.remember-me {
    color: #555555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-pass {
    text-decoration: none;
    color: var(--naranja-principal);
}

/* Botón Submit */
.btn-login-submit {
    background-color: var(--naranja-principal);
    color: var(--blanco);
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0px 8px 20px rgba(230, 92, 0, 0.15);
    margin-top: 10px;
}

.btn-login-submit:hover {
    background-color: #cc5200;
}

.btn-login-submit:active {
    transform: scale(0.98);
}

/* Alerta de Error */
.login-error {
    background-color: #FFF0F0;
    color: #D32F2F;
    border: 1px solid #FFD2D2;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer del Box */
.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #555555;
}

.naranja-link {
    text-decoration: none;
    color: var(--naranja-principal);
    font-weight: 600;
}

.naranja-link:hover {
    text-decoration: underline;
}

/* --- FORMULARIO DE PUBLICACIÓN --- */
.form-publicar-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--blanco);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.03);
    border: 1px solid #EAEAEA;
    text-align: left;
}

.form-publicar-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-publicar-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-publicar-header p {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.publicar-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.publicar-form input[type="text"],
.publicar-form select,
.publicar-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    font-size: 15px;
    background-color: #FAFAFA;
    outline: none;
    transition: all 0.3s ease;
}

.publicar-form input:focus,
.publicar-form select:focus,
.publicar-form textarea:focus {
    border-color: var(--naranja-principal);
    background-color: var(--blanco);
    box-shadow: 0px 0px 0px 4px rgba(230, 92, 0, 0.08);
}


/* ==========================================================================
   NUEVO CONTROL RESPONSIVO OPTIMIZADO (MÁXIMO 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Vista Detalle: Botones de Acción Apilados */
    .detalle-acciones {
        flex-direction: column;
        gap: 12px;
    }

    .btn-whatsapp, 
    .btn-email-contacto {
        width: 100%;
        flex-grow: unset;
        padding: 14px;
        font-size: 15px;
    }

    /* Caja de Login Adaptable */
    .login-body {
        padding: 15px; /* Evitamos que toque los bordes del celu */
    }

    .login-box {
        padding: 28px 20px; /* Reducimos padding para dar más espacio a los inputs */
        border-radius: 24px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    /* Formulario de Publicación Adaptable */
    .form-publicar-container {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .form-publicar-header {
        margin-bottom: 25px;
    }

    .form-publicar-header h2 {
        font-size: 24px;
    }

    /* ¡Crucial! Pasamos la grilla de inputs de 2 columnas a 1 sola */
    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 15px; /* Un poco más cerrado para que no quede eterno */
    }

    .publicar-form input[type="text"],
    .publicar-form select,
    .publicar-form textarea {
        padding: 12px;
        font-size: 14px; /* Tipografía cómoda para rellenar en móviles */
    }
}
/* Personalización del input file */
.file-input-wrapper {
    position: relative;
    border: 2px dashed #CBD5E1;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    background-color: #FAFAFA;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #64748B;
    font-weight: 600;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Botón enviar */
.btn-publicar-submit {
    background-color: var(--verde-principal);
    color: var(--blanco);
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0px 8px 20px rgba(0, 168, 107, 0.15);
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-publicar-submit:hover {
    background-color: #008754;
}

.btn-publicar-submit:active {
    transform: scale(0.99);
}

/* Alertas */
.alerta-box {
    padding: 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerta-box.exito {
    background-color: var(--verde-suave);
    color: var(--verde-principal);
    border: 1px solid #c2f0dc;
}

.alerta-box.error {
    background-color: #FFF0F0;
    color: #D32F2F;
    border: 1px solid #FFD2D2;
}

.user-logged {
    font-size: 14px;
    font-weight: 600;
    color: var(--oscuro);
}

/* --- SELECTOR DE TIPO DE USUARIO EN REGISTRO --- */
.selector-tipo-usuario {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.radio-tile {
    position: relative;
    flex: 1;
    cursor: pointer;
}

.radio-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tile-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    background-color: #FAFAFA;
    transition: all 0.2s ease;
    text-align: center;
}

.tile-contenido i {
    font-size: 20px;
    color: #64748B;
}

.tile-contenido span {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

/* Cambios de estilo cuando se selecciona el radio button */
.radio-tile input[type="radio"]:checked + .tile-contenido {
    border-color: var(--naranja-principal);
    background-color: var(--naranja-suave);
}

.radio-tile input[type="radio"]:checked + .tile-contenido i {
    color: var(--naranja-principal);
}

.radio-tile input[type="radio"]:checked + .tile-contenido span {
    color: var(--naranja-principal);
}

/* --- NUEVOS TONOS DE NARANJA --- */
.naranja-oscuro { color: #CC5200; }
.naranja-brillante { color: #FF7A00; }

/* Botón secundario ajustado a la paleta naranja */
.btn-secundario-naranja {
    text-decoration: none;
    background-color: var(--naranja-suave);
    color: var(--naranja-principal);
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.3s;
    border: 1px solid #FFD6BC;
}

.btn-secundario-naranja:hover {
    background-color: #FFE0CC;
    transform: translateY(-2px);
}

/* --- BLOQUE INSTITUCIONAL (REEMPLAZO DE LA CARD ANTERIOR) --- */
.about-box-modern {
    background: var(--blanco);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0px 20px 45px rgba(230, 92, 0, 0.05);
    border: 1px solid #FFD6BC;
    width: 100%;
    max-width: 500px;
}

.about-tag {
    display: inline-block;
    background-color: var(--naranja-suave);
    color: var(--naranja-principal);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.about-box-modern h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--oscuro);
    margin-bottom: 15px;
}

.about-statement {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 24px;
    background: #FFF5EE;
    padding: 10px;
    border-radius: 14px;
    line-height: 1;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--oscuro);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* --- SECCIÓN MALTRATO ANIMAL --- */
.maltrato-section {
    background-color: #FFF9F5; /* Fondo naranja extremadamente sutil */
    border-top: 1px solid #FFEBE0;
    border-bottom: 1px solid #FFEBE0;
}

.maltrato-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.maltrato-icon {
    font-size: 45px;
    color: #D32F2F; /* Rojo para denotar alerta/freno */
    margin-bottom: 15px;
}

.maltrato-intro {
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto 40px auto;
}

.pasos-denuncia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: left;
}

.paso-card {
    background: var(--blanco);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #F0F0F0;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.02);
}


/* ==========================================================================
   UNIFICACIÓN RESPONSIVA OPTIMIZADA PARA MÓVILES (MÁXIMO 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Custom File Input adaptable */
    .file-input-wrapper {
        padding: 15px;
        font-size: 14px;
    }

    /* Botón Submit de Publicación a pantalla completa */
    .btn-publicar-submit {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    /* Botón Secundario Naranja adaptado a Celu */
    .btn-secundario-naranja {
        display: block;
        text-align: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* Selector de Tipo de Usuario (Radio Tiles) fluido sin romperse */
    .selector-tipo-usuario {
        gap: 10px; /* Margen más compacto */
    }

    .tile-contenido {
        padding: 12px 8px; /* Menos aire adentro */
        gap: 6px;
    }

    .tile-contenido i {
        font-size: 18px; /* Icono un toque más chico */
    }

    .tile-contenido span {
        font-size: 12px; /* Texto compacto para evitar saltos de línea raros */
    }

    /* Caja Institucional Fluyes */
    .about-box-modern {
        padding: 24px 20px; /* Reducción drástica de padding muerto */
        border-radius: 24px;
    }

    .about-box-modern h2 {
        font-size: 24px; /* Título balanceado */
    }

    .about-statement {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .about-features {
        gap: 18px; /* Características más juntas */
    }

    /* Sección de Maltrato Animal */
    .maltrato-icon {
        font-size: 36px;
    }

    .maltrato-intro {
        font-size: 14px;
        margin-bottom: 25px;
        padding: 0 5px;
    }

    .pasos-denuncia-grid {
        gap: 15px; /* Grilla de pasos compacta, cae automáticamente a 1 columna */
    }

    .paso-card {
        padding: 20px;
        border-radius: 16px;
    }
}
.paso-numero {
    width: 35px;
    height: 35px;
    background-color: var(--naranja-principal);
    color: var(--blanco);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.paso-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--oscuro);
}

.paso-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* --- FORZAR EFECTOS DEL MENÚ (PEGAR AL FINAL DE TODO EN ESTILOS.CSS) --- */
.nav-links a {
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    transition: all 0.2s ease-in-out !important;
}

/* Forzar que cambie a naranja al pasar el mouse */
.nav-links a:hover {
    color: #E65C00 !important; /* Tu naranja principal */
    background-color: #FFD6BC !important; /* Tu naranja suave de fondo */
}

/* Forzar que quede resaltada la página actual */
.nav-links a.active {
    color: #E65C00 !important;
    background-color: #FFD6BC !important;
    font-weight: 700 !important;
}

/* --- CONFIGURACIÓN DE ELEMENTOS FLOTANTES RANDOM --- */
.hero-section {
    position: relative;
    overflow: hidden; /* Evita que las formas agranden la pantalla hacia los costados */
    background-color: #f7f0ec; /* Fondo base */
}

/* Estilo base para todas las figuras flotantes */
.forma-flotante {
    position: absolute;
    color: #E65C00; /* Tu color naranja principal */
    opacity: 0.2;  /* Súper sutil para que no moleste visualmente */
    user-select: none;
    pointer-events: none; /* Para que puedas hacer clic a través de ellas sin problemas */
    z-index: 1; /* Se quedan por detrás de las tarjetas y textos */
}

/* Control de tamaños y rotaciones aleatorias */
.h-chica {
    font-size: 24px;
    transform: rotate(15deg);
}

.h-mediana {
    font-size: 50px;
    transform: rotate(-20deg);
}

.h-grande {
    font-size: 95px;
    transform: rotate(35deg);
}

/* Aseguramos que el contenido real quede por encima del fondo */
.hero-content, .hero-visual {
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   PARCHE RESPONSIVO DE DETALLES Y MENÚ (MÁXIMO 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Títulos de los pasos un toque más sutiles */
    .paso-card h4 {
        font-size: 16px;
    }

    /* Menú de navegación: achicamos aire para que no rompa filas en mobile */
    .nav-links a {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    /* Figuras flotantes: las domamos para que no invadan el texto en pantallas chicas */
    .forma-flotante {
        opacity: 0.12; /* Todavía más transparentes en el celu */
    }

    .h-grande {
        font-size: 50px; /* De 95px baja a 50px */
    }

    .h-mediana {
        font-size: 32px; /* De 50px baja a 32px */
    }

    .h-chica {
        font-size: 18px;
    }
}