/* css/styles.css */
:root {
    --rojo: #C00000;
    --gris: #333333;
    --blanco: #FFFFFF;
    --gris-claro: #f5f5f5;
    --fuente: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --ancho-contenedor: 90%;
    --max-ancho: 1200px;
    --padding-x: 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente);
    color: var(--gris);
    background-color: var(--blanco);
}

/* HEADER Y NAVEGACIÓN */
header {
    background-color: var(--gris);
    color: var(--blanco);
    padding: 1.2rem var(--padding-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LOGO EN PNG - TAMAÑO AUMENTADO */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.logo-img:hover {
    transform: scale(1.03);
}

/* MENÚ DE NAVEGACIÓN */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

/* ENLACES DE NAVEGACIÓN */
nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.7rem 0;
    font-size: 1.05rem;
}

/* HOVER - SOLO AL PASAR EL CURSOR */
nav a:hover {
    color: var(--rojo);
}

/* SECCIÓN ACTIVA - SOLO CUANDO ESTÁS EN ESA PÁGINA */
nav a.active {
    color: var(--rojo);
    font-weight: 600;
}

/* Botones de contacto y denuncia */
.nav-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.btn-tel {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--blanco);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-tel:hover {
    background-color: var(--blanco);
    color: var(--gris);
}

.btn-denuncia {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-denuncia:hover {
    background-color: #a00000;
}

/* MENÚ MÓVIL - REDISEÑADO */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--blanco);
    cursor: pointer;
    order: 1;
    z-index: 1002;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        padding: 1rem var(--padding-x);
    }

    .menu-toggle {
        display: block;
    }

    /* LOGO EN MÓVIL */
    .logo-img {
        height: 40px;
        max-width: 200px;
    }

    /* CONTENEDOR DEL MENÚ - MÁS GRANDE Y MODERNO */
    nav {
        position: absolute;
        top: 65px;
        right: var(--padding-x);
        background-color: var(--gris);
        width: 90%;
        max-width: 400px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* ENLACES DEL MENÚ - MÁS ESPACIO */
    nav a {
        display: block;
        padding: 1.3rem 1.5rem;
        color: var(--blanco);
        font-size: 1.15rem;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    nav a.active {
        color: var(--rojo);
        font-weight: 600;
    }

    /* BOTONES EN MÓVIL - DENUNCIA OCUPA TODO EL ANCHO */
    .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
    }

    .btn-tel {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 1.2rem 1.5rem;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
        color: var(--blanco);
        font-size: 1.15rem;
        font-weight: 600;
    }

    .btn-tel:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .btn-denuncia {
        display: block;
        width: 100% !important; /* Asegura que ocupe todo el ancho */
        text-align: center;
        margin: 0;
        padding: 1.4rem 1.5rem; /* Más alto para destacar */
        border: none;
        background-color: var(--rojo);
        color: var(--blanco);
        font-size: 1.15rem;
        font-weight: 600;
        border-radius: 0; /* Bordes cuadrados para mantener el contenedor */
    }

    .btn-denuncia:hover {
        background-color: #a00000;
        transform: none;
    }
}

/* PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
    nav {
        width: 95%;
        right: 2.5%;
        top: 60px;
    }
    
    nav a,
    .btn-tel,
    .btn-denuncia {
        padding: 1.4rem 1.2rem;
        font-size: 1.2rem;
    }
    
    .btn-denuncia {
        padding: 1.6rem 1.2rem;
    }
}
/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    nav {
        width: 90%; /* Aún más ancho en móviles pequeños */
        max-width: 380px;
        right: 2%;
    }
    
    nav a {
        padding: 1.2rem 1.5rem; /* Aún más alto */
        font-size: 1.15rem;
    }
    
    .btn-tel,
    .btn-denuncia {
        padding: 1rem 1.5rem;
    }
}
/* CONTENEDOR GLOBAL PARA ALINEAR TODO */
.container {
    width: var(--ancho-contenedor);
    max-width: var(--max-ancho);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    box-sizing: border-box;
}

/* HERO VIDEO */
.hero-video {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    
}

.video-bg {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-video-content {
    position: absolute;
    top: 50%;
    left: var(--padding-x);
    transform: translateY(-50%);
    max-width: 800px;
    color: var(--blanco);
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-video h1 {
    font-size: 3.1rem;
    margin-bottom: 1rem;
    color: var(--blanco);
}

.hero-video p {
    font-size: 1.2rem;
    color: var(--blanco);
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.6;
}

/* MAIN y secciones */
main {
    padding: 3rem 0;
}

main .hero {
    text-align: justify;
    margin-bottom: 3rem;
}

main h1 {
    color: var(--rojo);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

main h2 {
    color: var(--gris);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

/* CORRECCIÓN PROFESIONAL PARA JUSTIFICADO SIN ESPACIOS GRANDES */
main p,
.hero-video p,
section p,
.enfoque p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.6;
    padding-right: 2px;
    overflow-wrap: break-word;
}

/* Títulos mantienen alineación natural */
main h1,
main h2,
main h3,
.hero-video h1 {
    text-align: left;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--blanco);
    cursor: pointer;
    order: 1;
    z-index: 1002;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 72px;
        right: var(--padding-x);
        background-color: var(--gris);
        width: 80%;
        max-width: 300px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
        color: var(--blanco);
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0;
    }

    .btn-tel,
    .btn-denuncia {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0.7rem 1rem;
    }

    .btn-tel {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    /* Ajustes para móvil: versión optimizada */
    main p,
    .hero-video p,
    section p {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        line-height: 1.6;
        font-size: 1rem;
    }

    .hero-video {
        height: 50vh;
    }

    .hero-video-content {
        left: 5%;
        width: 90%;
    }

    .hero-video h1 {
        font-size: 2rem;
    }

    .hero-video p {
        font-size: 1rem;
    }

    .container {
        padding: 0 5%;
        width: 90%;
    }

    main {
        padding: 1rem 0;
    }
}

/* BANNER DE IMAGEN - VERSIÓN CON IMG (RECOMENDADA) */
.bottom-banner {
    width: 100%;
    height:130px;
    overflow: hidden;
    background-color: var(--blanco);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    max-height: 100%;
    max-width: 95%;
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: center;
}

/* Versión para móviles */
@media (max-width: 768px) {
    .bottom-banner {
        height: 50px;
    }
    
    .banner-img {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .bottom-banner {
        height: 80px;
    }
    
    .banner-img {
        max-width: 85%;
    }
}

/* NUESTRO ENFOQUE - CARDS CON ROTACIÓN */
.cards-enfoque {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.card-enfoque {
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-enfoque:hover .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

/* CARA FRONTAL - IMAGEN */
.card-front {
    background-color: var(--blanco);
    color: var(--gris);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card-front h3 {
    color: var(--rojo);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.card-enfoque:hover .card-front img {
    transform: scale(1.1);
}

/* CARA POSTERIOR - TEXTO */
.card-back {
    background-color: var(--rojo);
    color: var(--blanco);
    transform: rotateY(180deg);
    justify-content: center;
}

.card-back p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--blanco);
}

/* RESPONSIVE - CARDS */
@media (max-width: 1024px) {
    .cards-enfoque {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-enfoque {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-enfoque {
        height: 280px;
    }
    
    .card-front h3,
    .card-back p {
        font-size: 0.95rem;
    }
    
    .card-front img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .card-enfoque {
        height: 260px;
    }
    
    .card-front h3 {
        font-size: 0.9rem;
    }
    
    .card-back p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .card-front img {
        width: 100%;
        height: 100%;
    }
}

/* CARRUSEL DE TÍTULOS SOBRE IMAGEN FIJA */
.text-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-background {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-align: center;
    padding: 0 5%;
    box-sizing: border-box;
}

.carousel-title {
    position: absolute;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.carousel-title.active {
    opacity: 1;
    z-index: 2;
}

/* RESPONSIVE PARA CARRUSEL */
@media (max-width: 768px) {
    .text-carousel {
        height: 220px;
    }
    
    .carousel-title {
        font-size: 1.2rem;
        padding: 0 10%;
    }
}

/* BANNER DE PORTADA PARA PÁGINA DE IMPACTO */
.impacto-banner {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--gris);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(80, 80, 80, 0.8), rgba(80, 80, 80, 0.1));
    color: var(--blanco);
}

.banner-content h1 {
    font-size: 3.1rem;
    margin: 0;
    padding: 0 5%;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

/* CASOS DE ÉXITO - TARJETAS 3D CON IMAGEN COMPLETA */
.casos-exito {
    margin: 4rem 0;
}

.casos-exito h2 {
    color: var(--gris);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.impacto-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1200px; /* Profundidad 3D */
}

.impacto-card {
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    border-radius: 12px;
    overflow: hidden;
}

.impacto-card:hover .impacto-card-inner {
    transform: rotateY(180deg);
}

.impacto-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* CARA FRONTAL - IMAGEN COMPLETA */
.impacto-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--gris);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.impacto-card-front img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.impacto-card:hover .impacto-card-front img {
    transform: scale(1.1);
}

/* BADGE CON TÍTULO EN ESQUINA SUPERIOR IZQUIERDA */
.impacto-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--gris);
    color: var(--blanco);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impacto-card-badge h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CARA POSTERIOR - TEXTO CON SCROLL */
.impacto-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--rojo);
    color: var(--blanco);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
}

.impacto-card-back-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    color: var(--blanco);
}

.impacto-card-back-content ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.impacto-card-back-content li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--blanco);
    text-align: left;
}

/* SCROLLBAR PERSONALIZADO */
.impacto-card-back-content::-webkit-scrollbar {
    width: 6px;
}

.impacto-card-back-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.impacto-card-back-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .impacto-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .impacto-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .impacto-card {
        height: 280px;
    }
    
    .impacto-card-badge {
        top: 0.8rem;
        left: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .impacto-card-badge h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .impacto-card {
        height: 260px;
    }
    
    .impacto-card-badge {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.4rem 0.7rem;
    }
    
    .impacto-card-badge h3 {
        font-size: 0.9rem;
    }
    
    .impacto-card-back-content li {
        font-size: 0.85rem;
    }
}

/* FOOTER - SIN CAMBIO DE FONDO, SOLO HOVER EN ENLACES */
footer {
    background-color: var(--gris);
    color: var(--blanco);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* CONTENEDOR DEL FOOTER */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

/* LOGO DEL FOOTER */
.footer-logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* REDES SOCIALES */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris-claro);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--blanco); /* De gris claro a blanco */
    transform: translateX(2px);
}

/* COLUMNAS DEL FOOTER */
.footer-column h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none; /* ✅ Quitamos las viñetas */
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

/* ENLACES DEL FOOTER */
.footer-column a {
    color: var(--gris-claro);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1.6;
}

/* HOVER: Cambia a gris claro (pero más claro que el estado normal) */
.footer-column a:hover {
    color: #ddd; /* Gris muy claro, casi blanco */
    transform: translateX(2px);
}

/* Aseguramos que los SVG también sigan el estilo */
.footer-column svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* FOOTER INFERIOR */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gris-claro);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo img {
        height: 40px;
        max-width: 220px;
    }
    
    .footer-social {
        justify-content: center;
        width: 100%;
    }
    
    .footer-column h4 {
        font-size: 1.05rem;
    }
    
    .footer-column a {
        font-size: 0.9rem;
        justify-content: center;
        gap: 0.6rem;
    }
    
    .footer-bottom {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2.5rem 0 1.2rem;
    }
    
    .footer-container {
        padding: 0 0.8rem;
    }
    
    .footer-logo img {
        height: 50px;
        max-width: 200px;
    }
    
    .footer-column a {
        gap: 0.6rem;
        font-size: 0.85rem;
    }
    
    .footer-column svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 2rem;
        padding-top: 1.2rem;
    }
}

@media (max-width: 360px) {
    .footer-logo img {
        height: 50px;
        max-width: 180px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* POLÍTICA DE CALIDAD Y SEGURIDAD */
.politica-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    
    align-items: center;
}

.politica-hero h2 {
    color: var(--rojo);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.subtitulo-politica {
    font-size: 1.1rem;
    color: var(--rojo);
    font-weight: 500;
    margin: 0.5rem 0 1.5rem;
    text-align: left;
    font-style: italic;
    line-height: 1.4;
    max-width: 800px;
}

.texto-justificado {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--gris);
}

.politica-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* OBJETIVOS EN LISTA UNIFICADA */
.objetivos-section h2 {
    color: var(--gris);
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    text-align: left;
}

.politica-lista {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.item-politica h3 {
    color: var(--rojo);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.item-politica p {
    margin: 0;
    line-height: 1.6;
    color: var(--gris);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* FIRMAS */
.firmas-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
    margin-top: 2rem;
}

.firma {
    text-align: right;
}

.firma p {
    margin: 0.3rem 0;
    color: var(--gris);
}

.firma .cargo {
    color: var(--rojo);
    font-weight: 600;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .politica-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .politica-imagen {
        order: 1;
    }
    
    .politica-content {
        order: 0;
    }
}

@media (max-width: 768px) {
    .politica-hero {
        padding: 2rem 0;
    }
    
    .politica-hero h2 {
        font-size: 2rem;
    }
    
    .firmas-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
    }
    
    .firma {
        text-align: center;
    }
}

/* OBJETIVOS EN TARJETAS */
.objetivos-section {
    padding: 3rem 0;
}

.objetivos-section h2 {
    color: var(--gris);
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    text-align: left;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 1.5rem; /* Espacio entre tarjetas */
}

.objetivo-card {
    background: var(--gris-claro); /* Fondo claro para mejor lectura */
    color: var(--gris);
    padding: 1.8rem;
    border-radius: 8px;
    border-left: 5px solid var(--rojo); /* Línea roja a la izquierda */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.objetivo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* NÚMERO DE OBJETIVO - AHORA SOLO TEXTO EN ROJO */
.objetivo-num {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--rojo);
    margin-bottom: 0.8rem;
    font-family: 'Segoe UI', sans-serif;
}

.objetivo-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--gris);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* FIRMAS */
.firmas-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
    margin-top: 2rem;
}

.firma {
    text-align: right;
}

.firma p {
    margin: 0.3rem 0;
    color: var(--gris);
}

.firma .cargo {
    color: var(--rojo);
    font-weight: 600;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .politica-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .politica-imagen {
        order: 1;
    }
    
    .politica-content {
        order: 0;
    }
}

@media (max-width: 768px) {
    .politica-hero {
        padding: 2rem 0;
    }
    
    .politica-hero h1,
    .politica-hero h2 {
        font-size: 2rem;
    }
    
    .firmas-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
    }
    
    .firma {
        text-align: center;
    }
    
    .firma .cargo {
        text-align: center;
    }
    
    .objetivos-section {
        padding: 2rem 0;
    }
    
    .objetivos-section h2 {
        font-size: 1.6rem;
        margin: 1.5rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .politica-hero {
        padding: 1.5rem 0;
    }
    
    .politica-hero h1,
    .politica-hero h2 {
        font-size: 1.8rem;
    }
    
    .objetivo-num {
        font-size: 1.3rem;
    }
    
    .objetivo-card {
        padding: 1.4rem;
    }
    
    .objetivo-card p {
        font-size: 0.95rem;
    }
    
    .firmas-section {
        gap: 1rem;
        padding: 2rem 0;
    }
}

/* ANIMACIONES DE SCROLL - EFECTOS SUTILES Y MODERNOS */
.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated.fadeIn {
    transform: translateY(0);
    opacity: 1;
}

.animated.fadeInUp {
    transform: translateY(0);
    opacity: 1;
}

.animated.slideInLeft {
    transform: translateX(-20px) translateY(0);
    opacity: 1;
}

.animated.slideInRight {
    transform: translateX(20px) translateY(0);
    opacity: 1;
}

.animated.delay-1 {
    transition-delay: 0.1s;
}

.animated.delay-2 {
    transition-delay: 0.2s;
}

.animated.delay-3 {
    transition-delay: 0.3s;
}

.animated.delay-4 {
    transition-delay: 0.4s;
}

.animated.delay-5 {
    transition-delay: 0.5s;
}

/* EFECTOS POR SECCIÓN */
.hero-video-content,
.impacto-banner,
.banner-content,
.bottom-banner {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-video-content.visible,
.impacto-banner.visible,
.banner-content.visible,
.bottom-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TARJETAS Y ELEMENTOS INDIVIDUALES */
.card,
.gallery-item,
.objetivo-card,
.proceso-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
}

.card.visible,
.gallery-item.visible,
.objetivo-card.visible,
.proceso-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PARA EFECTOS DIFERENCIADOS */
.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* RESPONSIVE PARA ANIMACIONES */
@media (prefers-reduced-motion: reduce) {
    .animated,
    .card,
    .gallery-item,
    .objetivo-card,
    .proceso-item,
    .slide-left,
    .slide-right,
    .hero-video-content,
    .impacto-banner,
    .banner-content,
    .bottom-banner {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* CANAL DE DENUNCIA */
.denuncia-section {
    padding: 4rem 0;
}

.denuncia-section h1 {
    color: var(--gris);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.denuncia-section p {
    color: var(--gris);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 2.5rem;
}

/* BOTONES DE TIPO DE DENUNCIA */
.denuncia-tipos {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-tipo {
    padding: 0.8rem 1.5rem;
    background-color: var(--gris-claro);
    color: var(--gris);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.btn-tipo.active {
    background-color: var(--rojo);
    color: var(--blanco);
    font-weight: 600;
}

.btn-tipo:hover:not(.active) {
    background-color: var(--gris);
    color: var(--blanco);
}

/* FORMULARIOS DE DENUNCIA */
.denuncia-form {
    background-color: var(--gris-claro);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.3s ease;
}

.denuncia-form.active {
    display: block;
}

.denuncia-form h3 {
    color: var(--rojo);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.denuncia-form p {
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* GRID DE FORMULARIO */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* GRUPOS DE FORMULARIO */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--gris);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(51, 51, 51, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--blanco);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rojo);
    box-shadow: 0 0 0 2px rgba(192, 0, 0, 0.1);
}

.form-group small {
    color: var(--gris);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

/* BOTONES DEL FORMULARIO */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-submit {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.btn-submit:hover {
    background-color: #a00000;
    transform: translateY(-1px);
}

.btn-cancel {
    background-color: var(--gris);
    color: var(--blanco);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.btn-cancel:hover {
    background-color: #555;
    transform: translateY(-1px);
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .denuncia-section {
        padding: 3rem 0;
    }
    
    .denuncia-section h1 {
        font-size: 2.2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .denuncia-form {
        padding: 2rem;
    }
    
    .btn-tipo {
        min-width: 140px;
        font-size: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-cancel {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .denuncia-section {
        padding: 2.5rem 0;
    }
    
    .denuncia-section h1 {
        font-size: 2rem;
    }
    
    .denuncia-form {
        padding: 1.8rem;
    }
    
    .btn-tipo {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }
}

/* MODAL DE ÉXITO */
.modal-exito {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-exito[aria-hidden="false"] {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-overlay-exito {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content-exito {
    position: relative;
    max-width: 500px;
    margin: 5vh auto;
    background-color: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    animation: slideInUp 0.4s ease forwards;
}

.modal-exito[aria-hidden="false"] .modal-content-exito {
    transform: translateY(0);
}

.modal-icon {
    margin-bottom: 1.5rem;
}

.modal-icon svg {
    width: 64px;
    height: 64px;
    animation: checkmark 0.5s ease forwards;
}

@keyframes checkmark {
    0% { stroke-dasharray: 0, 70; stroke-dashoffset: 0; }
    100% { stroke-dasharray: 70, 0; stroke-dashoffset: -2px; }
}

.modal-content-exito h3 {
    color: var(--gris);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-content-exito p {
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-cerrar-modal {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-cerrar-modal:hover {
    background-color: #a00000;
    transform: translateY(-1px);
}

/* ANIMACIONES */
@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* RESPONSIVE DEL MODAL */
@media (max-width: 768px) {
    .modal-content-exito {
        margin: 10vh auto;
        padding: 2rem;
        margin: 2rem;
    }
    
    .modal-content-exito h3 {
        font-size: 1.6rem;
    }
    
    .modal-content-exito p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .modal-content-exito {
        margin: 2rem;
        padding: 1.8rem;
    }
    
    .modal-icon svg {
        width: 56px;
        height: 56px;
    }
    
    .modal-content-exito h3 {
        font-size: 1.5rem;
    }
}

/* Botones de contacto y denuncia */
.nav-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.btn-tel {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--blanco);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-tel:hover {
    background-color: var(--blanco);
    color: var(--gris);
}

.btn-denuncia {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    border: 2px solid var(--rojo);
}

.btn-denuncia:hover {
    background-color: #a00000;
}

/* ===== ESTADO ACTIVO EN LA PÁGINA DE DENUNCIA ===== */
/* Cuando estás en denuncia.html, el botón debe ser: */
/* - Fondo transparente */
/* - Letra blanca */
/* - Borde rojo */
/* - Hover: fondo rojo, letra blanca */

.btn-denuncia.active {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid var(--rojo);
    font-weight: 600;
}

.btn-denuncia.active:hover {
    background-color: var(--rojo);
    color: var(--blanco);
    border-color: var(--rojo);
}

/* MENÚ MÓVIL - REDISEÑADO */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--blanco);
    cursor: pointer;
    order: 1;
    z-index: 1002;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        padding: 1rem var(--padding-x);
    }

    .menu-toggle {
        display: block;
    }

    /* LOGO EN MÓVIL */
    .logo-img {
        height: 40px;
        max-width: 200px;
    }

    /* CONTENEDOR DEL MENÚ - MÁS GRANDE Y MODERNO */
    nav {
        position: absolute;
        top: 65px;
        right: var(--padding-x);
        background-color: var(--gris);
        width: 90%;
        max-width: 400px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* ENLACES DEL MENÚ - MÁS ESPACIO */
    nav a {
        display: block;
        padding: 1.3rem 1.5rem;
        color: var(--blanco);
        font-size: 1.15rem;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    nav a.active {
        color: var(--rojo);
        font-weight: 600;
    }

    /* BOTONES EN MÓVIL - CORREGIDO */
    .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
    }

    .btn-tel {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 1.2rem 1.5rem;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
        color: var(--blanco);
        font-size: 1.15rem;
        font-weight: 600;
    }

    .btn-tel:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Botón de denuncia en móvil - ESTILO CORREGIDO */
    .btn-denuncia {
        display: block;
        width: 100% !important;
        text-align: center;
        margin: 0;
        padding: 1.4rem 1.5rem;
        border: none;
        background-color: var(--rojo);
        color: var(--blanco);
        font-size: 1.15rem;
        font-weight: 600;
        border-radius: 0;
    }

    /* Estado activo en móvil */
    .btn-denuncia.active {
        background-color: transparent;
        border: 2px solid var(--rojo);
    }

    .btn-denuncia.active:hover {
        background-color: var(--rojo);
        color: var(--blanco);
        border-color: var(--rojo);
    }

    .btn-denuncia:hover {
        background-color: #a00000;
        transform: none;
    }
}

/* PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
    nav {
        width: 95%;
        right: 2.5%;
        top: 60px;
    }
    
    nav a,
    .btn-tel,
    .btn-denuncia {
        padding: 1.4rem 1.2rem;
        font-size: 1.2rem;
    }
    
    /* Estado activo en pantallas pequeñas */
    .btn-denuncia.active {
        background-color: transparent;
        border: 2px solid var(--rojo);
    }
    
    .btn-denuncia.active:hover {
        background-color: var(--rojo);
        color: var(--blanco);
    }
}

/* PORTADA */
.portada-contacto {
    width: 100%;
    height: 500px;
    background: url('../assets/banner_contacto.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-align: center;
}

.portada-contacto h1 {
    font-size: 3.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* CONTENEDOR GLOBAL */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* CONTACTO Y DIRECCIÓN */
.contacto-direccion {
    padding: 4rem 0;
}

.contacto-direccion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.card-contacto,
.card-direccion {
    background-color: var(--gris-claro);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative; /* Necesario para posicionar la imagen */
    min-height: 300px;
}

.card-contacto h3,
.card-direccion h3 {
    color: var(--rojo);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.card-contacto p,
.card-direccion p {
    color: var(--gris);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.enlace-mapa {
    display: inline-block;
    color: var(--rojo);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
}

.enlace-mapa:hover {
    border-color: var(--rojo);
    transform: translateX(2px);
}

/* IMAGEN EN LA CARD DE DIRECCIÓN */
.imagen-direccion {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--blanco);
}

.imagen-direccion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.imagen-direccion:hover img {
    transform: scale(1.1);
}

/* MAPA */
.mapa-section {
    padding: 0 0 4rem;
}

.mapa-container {
    width: 100%;
    height: 450px;
    background-color: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* SUCURSALES */
.sucursales-section {
    padding: 4rem 0;
}

.sucursales-section h2 {
    color: var(--gris);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.sucursales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sucursal {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    background-color: var(--gris-claro);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sucursal:hover {
    transform: translateY(-3px);
}

.sucursal-foto {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 120px;
}

.sucursal-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sucursal:hover .sucursal-foto img {
    transform: scale(1.08);
}

.sucursal-info h3 {
    color: var(--rojo);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.sucursal-info p {
    color: var(--gris);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sucursales-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portada-contacto {
        height: 200px;
    }
    
    .portada-contacto h1 {
        font-size: 2.2rem;
    }
    
    .contacto-direccion {
        padding: 3rem 0;
    }
    
    .contacto-direccion-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mapa-section,
    .sucursales-section {
        padding: 3rem 0;
    }
    
    /* Ajuste imagen en móvil */
    .imagen-direccion {
        width: 70px;
        height: 70px;
        top: 0.8rem;
        right: 0.8rem;
    }
}

@media (max-width: 480px) {
    .portada-contacto {
        height: 180px;
    }
    
    .portada-contacto h1 {
        font-size: 2rem;
    }
    
    .contacto-direccion-grid {
        padding: 0 1rem;
    }
    
    .card-contacto,
    .card-direccion {
        padding: 2rem;
    }
    
    /* Móvil: imagen más pequeña */
    .imagen-direccion {
        width: 60px;
        height: 60px;
    }
}

/* Aseguramos transición para todos los elementos animados */
.animated {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated.fadeIn {
    opacity: 1;
}