/* ----------------------------------
    ESTILOS GENERALES Y RESET
------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Colores Principales */
    --naranja: #FF6E30;
    /* Naranja Vibrante */
    --naranja-hover: #E65A20;
    --fucsia: #fe2552;
    /* Rojo Candelá / Rosa */

    /* Violetas */
    --violeta-principal: #250456;
    /* Header, Footer, Servicios, Testimonios */
    --violeta-oscuro-fondo: #00103c;
    /* Body, About Us, Hero */
    --violeta-metricas: #1a074c;
    --violeta-boton: #361B5E;
    --violeta-boton-hover: #2D154B;
    --violeta-borde-footer: #4D3C6E;

    /* Blancos y Negros */
    --blanco: #FFFFFF;
    --negro: #000000;

    /* Grises */
    --gris-claro-texto: #CCCCCC;
    --gris-medio-texto: #AAAAAA;
    --gris-oscuro: #666666;
    --gris-muy-oscuro: #222222;
    --gris-azulado: #2D3950;
    /* Placeholder image background */

    /* Textos y Enlaces */
    --rojo-texto: #E63E48;
    --azul-enlace: #04a2eb;

    /* Formulario Contacto */
    --form-naranja-fondo: #ff6d40;
    --form-input-fondo: #f9c0af;
    --form-placeholder: #C25022;

    /* Social y UI */
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
    --whatsapp-secondary: #20BA5A;
    --azul-scroll-top: #004d99;
    --azul-scroll-top-hover: #003366;

    /* Marcas Específicas */
    --marca-dichikash: #0e47e2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--blanco);
    /* Cambiado a blanco, ya que la mayoría de fondos son oscuros */
    background-color: var(--violeta-oscuro-fondo);
    /* Fondo principal oscuro */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--blanco);
    /* Títulos en blanco */
}

h2.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ----------------------------------
    BOTONES Y CTAS
------------------------------------- */

.cta-button,
.project-button,
.read-more-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;

    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;

    background-color: var(--naranja);
    /* Naranja Vibrante */
    color: var(--blanco);

    /* Propiedades necesarias para el destello */
    position: relative;
    overflow: hidden;
    z-index: 1;
}



.cta-button {
    box-shadow: 0 5px 15px rgba(255, 110, 48, 0.4);
}


.cta-button:hover {

    background-color: var(--naranja-hover);
    box-shadow: 0 0 30px rgba(255, 110, 48, 0.8),
        /* Brillo más fuerte */
        0 5px 15px rgba(255, 110, 48, 0.6);
    /* Sombra de elevación */
}


.project-button,
.read-more-button {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

.project-button:hover,
.read-more-button:hover {
    background-color: var(--naranja-hover);
}

.submit-button {
    background-color: var(--violeta-boton);
    /* Violeta Oscuro para el botón de Enviar */
    color: var(--blanco);
    padding: 15px 35px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--violeta-boton-hover);
}

.view-all-articles {
    display: block;
    text-align: right;
    font-weight: bold;
    text-decoration: none;
    color: var(--naranja);
    /* Naranja */
    margin-top: 30px;
    font-size: 0.9em;
}

/* ----------------------------------
    1. HEADER Y NAVEGACIÓN (HERO SECTION) - CORREGIDO
------------------------------------- */

header {
    color: var(--blanco);
    padding: 0;
}

.header-container {
    padding-top: 0;
    padding-bottom: 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--blanco);
    justify-content: center;
}

.hero-content img {
    max-width: 100%;
}

.main-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 110px;
    max-width: 1920px;
    border-bottom: 2px solid var(--fucsia);
    margin: 0 auto;
}

/* Logo - ESTILO DE ESCRITORIO (Mobile First, lo haremos más pequeño en @media) */
.logo img {
    max-width: 280px;
    /* Tamaño grande para desktop */
}

/* Menú de Enlaces (UL) - ESTILO DE ESCRITORIO */
.main-nav ul {
    list-style: none;
    display: flex;
    /* Por defecto en Desktop: Muestra los enlaces en línea */
    gap: 30px;
    font-size: 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--violeta-principal);
    font-weight: 600;
    font-size: 1.2em;
}

.main-nav a:hover {
    color: var(--fucsia);
}

/* Íconos Sociales - ESTILO DE ESCRITORIO */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons img {
    width: 30px;
    border-radius: 50%;
    background-color: var(--blanco);
}

.social-icons img:hover {
    transform: scale(1.1);
    background: var(--fucsia);
    border-radius: 50%;
}

/* ----- ESTILOS DEL BOTÓN HAMBURGUESA (AÑADIDOS) ----- */
.hamburger-menu {
    display: none;
    /* Oculto por defecto en desktop */
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    /* Más alto que el nav-links */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--blanco);
    /* Color blanco para las barras */
    transition: all 0.3s ease-in-out;
}

/* Animación del hamburger a X cuando está activo */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Contenido Principal (Hero) - Necesita padding para no quedar debajo del fixed header */
.hero-content {
    position: relative;
    padding-top: 100px;
    /* AÑADIDO: Empuja el contenido debajo del nav fixed (100px) */
    padding-bottom: 0;
    text-align: center;
}

/* ... el resto de los estilos del Hero continúan igual ... */

/* ESTILOS DEL MENÚ - Por defecto (Desktop) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 60px;
}

.nav-links li {
    margin: 0;
}

/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none;
}

/* ----------------------------------
    DROPDOWN MENU STYLES
------------------------------------- */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    /* Forzar que esté oculto por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    /* Alineado a la izquierda del elemento padre */
    right: auto;
    background-color: var(--violeta-principal);
    /* Violeta Oscuro igual al header */
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    /* REMOVIDO: margin-top: 10px; - causaba conflicto */
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    /* Mostrar solo al hover */
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--blanco);
    text-decoration: none;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    font-size: 1em;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background-color: var(--violeta-boton);
    /* Tonalidad más clara del violeta */
    color: var(--fucsia);
    /* Naranja para el hover */
    padding-left: 25px;
    /* Efecto de deslizamiento */
    border-left: 3px solid var(--fucsia);
}

/* Arrow icon next to Servicios */
.dropdown>a::after {
    /* El símbolo ▾ ya está en el HTML, esto es por si quieres usar CSS */
    content: '';
}


/* Posicionamiento del Botón sobre la imagen del Banner */
/* Posicionamiento del Botón sobre la imagen del Banner */
.hero-content .cta-button {
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%, -50%);
    z-index: 10;
}


/* ----------------------------------
    2. SOBRE NOSOTROS
------------------------------------- */

.about-us {
    background-color: var(--violeta-oscuro-fondo);


    padding-bottom: 0;
    color: var(--blanco);
}

.about-us h2,
.about-us p {
    color: var(--blanco);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.3em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p span {
    font-weight: 700;
}

.about-text p strong {
    color: var(--rojo-texto);
    /* Resaltar texto importante con el color rojo */
}

.about-image {
    flex: 1;
    /*min-height: 350px;*/
    background-color: var(--gris-azulado);
    /* Placeholder para la imagen */
    border-radius: 8px;
    overflow: hidden;
}

/* Estilos para el texto del banner que está dentro de la imagen */
.about-image .title-top,
.about-image .title-bottom {
    font-size: 1.5em;
}


/* Bloque de Métricas */
.metrics {
    background-color: var(--violeta-metricas);
    /* Fondo Violeta para las métricas */
    color: var(--blanco);
    padding: 30px 0;

    /* 🔑 CAMBIOS CLAVE para centrar y limitar el ancho a la medida del .container */

    width: 100%;
    /* Establece el ancho como el de tu .container */
    max-width: 1500px;
    /* Limita al máximo ancho de tu .container */

    /* Centra el bloque horizontalmente (margin-top: 60px, lados: auto, margin-bottom: 0) */
    margin: 60px auto 0 auto;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.metric-item {
    text-align: center;
    padding: 0 10px;
}

.metric-item .number {
    font-size: 3em;
    font-weight: 900;
    color: var(--blanco);
    display: block;
    margin-bottom: 5px;
}

.metric-item .label {
    font-size: 1em;
    font-weight: 500;
    opacity: 0.9;
}

/* ----------------------------------
    3. NUESTROS SERVICIOS
------------------------------------- */

.services {
    background-color: var(--violeta-principal);
    padding-bottom: 80px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    text-align: center;
    width: 100%;
}

.service-card {
    background-color: var(--naranja);
    /* Naranja Vibrante */
    color: var(--blanco);
    padding: 5px 5px;
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 15px rgba(255, 110, 48, 0.2);

}

.service-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--blanco);
    margin-top: 5px;
}

.service-card p {
    color: var(--blanco);
    opacity: 0.9;
    font-size: 1.0em;
    text-align: center;
}

.service-card img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 230px;
}

/* ----------------------------------
 /* 4. MARCAS QUE CONFÍAN
------------------------------------- */

.clients-logos {
    background-color: var(--fucsia);
    /* Fondo Rosa/Rojo Candelá */
    color: var(--blanco);
    padding: 30px 0;
    /* Agregamos padding para espacio vertical */
}

.clients-logos h2 {
    color: var(--blanco);
    text-align: center;
    /* Centrar el título */
    margin-bottom: 20px;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Quitamos min-height y background-color si ya están en .clients-logos */
    padding: 0 20px;
    /* Padding horizontal */
    flex-wrap: wrap;
    /* Importante para que los logos bajen en pantallas pequeñas */
}

/* **CONTENEDOR DEL LOGO (elemento que envuelve <img>):** */
.logos-grid>div,
.logos-grid>a {
    width: 200px;
    /* **Ajusta este ancho para logos más grandes** */
    height: 80px;
    /* **Ajusta esta altura para logos más grandes** */

    /* Centrar la imagen dentro de su contenedor (si el logo-item tiene background) */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin: 10px;
}

.logos-grid img {

    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/*Fondos para logos*/
.fondo-Piegari {
    background-color: var(--negro);
}

.fondo-Doctor {
    background-color: var(--negro);
}

.fondo-Catiendas {
    background-color: var(--blanco);
}

.fondo-Dichi {
    background-color: var(--marca-dichikash);
}

.fondo-kaypi {
    background-color: var(--blanco);
}

/* ----------------------------------
    5. PROYECTOS REALIZADOS
------------------------------------- */

.projects {
    background-color: #000f3c;
    /* Minor diff from violeta-oscuro-fondo #00103c vs #000f3c. Using generic */
    background-color: var(--violeta-oscuro-fondo);
    /* Azul Marino Oscuro */
    color: var(--blanco);
}

.projects h2 {
    color: var(--blanco);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
}

.project-item {
    background-color: var(--negro);
    /* Fondo sutil para las tarjetas de proyecto */
    padding: 20px;
    border-radius: 30px;
}

.project-item .project-button {
    width: 90%;
    margin-top: 20px;
    border-radius: 20px;
}

.projects img {
    width: 100%;
}

/* ----------------------------------
    6. TESTIMONIOS
------------------------------------- */

.testimonials {
    background-color: var(--violeta-principal);
    /* Violeta Oscuro */
}

.testimonials h2 {
    color: var(--blanco);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.testimonial-card {
    background-color: var(--fucsia);
    /* Rojo Candelá */
    color: var(--blanco);
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--blanco);
    margin: 0 auto 15px;
}

.author {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--blanco);
    /* Texto oscuro para el nombre/cargo */
}

.quote-text {
    font-style: 'Montserrat', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
}

/* ----------------------------------
    7. BLOG
------------------------------------- */

.blog-section {
    background-color: var(--violeta-oscuro-fondo);
    /* Azul Marino Oscuro */
    color: var(--blanco);
    padding-bottom: 80px;
}

.blog-label {
    text-align: left;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--blanco);
    margin-bottom: 5px;
}

.blog-section h2 {
    text-align: center;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 7em;
}

.blog-section h3 {
    text-align: center;
    color: var(--blanco);
    font-weight: bold;
    font-size: 3em;
}

.blog-subtitle {
    text-align: left;
    font-size: 1.1em;
    color: var(--gris-claro-texto);
    margin-bottom: 40px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: var(--blanco);
    color: var(--gris-muy-oscuro);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-image {
    background-color: var(--naranja);
    height: 150px;
    position: relative;
    padding-top: 50px;
}

.post-content {
    padding: 20px;
}

.post-card .tag {
    display: inline-block;
    background-color: var(--naranja);
    color: var(--blanco);
    font-size: 0.75em;
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
    font-weight: bold;
}

.post-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--gris-muy-oscuro);
    /* Títulos de posts en oscuro */
}

.post-card p {
    color: var(--gris-oscuro);
    margin-bottom: 20px;
}

.read-more-button {
    border-radius: 30px;
    padding: 8px 18px;
}

/* ----------------------------------
    8. CONTACTO Y FORMULARIO
------------------------------------- */

.contact-section {
    /* Also minor diff, using violeta-oscuro-fondo */
    background-color: var(--color-primary);
    /* Azul Marino Oscuro */
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-label {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    font-size: 1.7em;
    font-weight: 600;
    color: var(--blanco);

}

.contenedor-contacto {
    /* 1. Propiedades Flexbox */
    display: flex;
    align-items: center;

    /* 2. Propiedad Clave: Padding Izquierdo */
    padding-left: 100px;
    /* Ajusta este valor (100px es un ejemplo) */
    padding-top: 50px;
    margin-bottom: 60px;
}

.hr-contacto {
    border: none;
    height: 2.5px;
    background-color: var(--blanco);
    width: 30px;

    /* Márgenes para separar la línea del texto */
    margin: 0;
    margin-right: 15px
}

.contact-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--form-naranja-fondo);
    /* Naranja Vibrante */
    color: var(--blanco);
    padding: 60px;
    border-radius: 12px;
    text-align: center;
}

.contact-form-wrapper h3 {
    color: var(--blanco);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.contact-form {
    text-align: left;
    font-size: large;
    font-weight: bold;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--form-placeholder);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--form-border);
    border-radius: 4px;
    font-size: 1.3em;
    background-color: var(--form-input-fondo);
    color: var(--blanco);
    border-radius: 8px;
}

.contact-form .submit-button {
    display: block;
    margin: 30px auto 0;
    width: 100%;
    max-width: 200px;
    border-radius: 20px;
    font-size: larger;

}

/* ----------------------------------
    9. PIE DE PÁGINA (FOOTER)
------------------------------------- */

footer {
    background-color: var(--blanco);
    /* Violeta Oscuro */
    color: var(--gris-claro-texto);
    padding-top: 60px;

}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 3fr;
    gap: 100px;
    border-bottom: 1px solid var(--fucsia);
    padding-bottom: 40px;
    align-items: stretch;
}

.footer-logo {
    width: 500px;
}

.footer-logo img {
    width: 100%;
}

.texto-footer {
    font-weight: 500;
    font-size: 1.3em;
    color: var(--gris-azulado);
}


.social-icons-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.social-icons-footer a {

    width: 30px;
    height: 30px;
    display: block;
    margin-right: 25px;
    /* Ajusta la separación entre ellos */
    width: initial;

}

/* Opcional: Asegura que la imagen ocupe todo el espacio del enlace <a> */
.social-icons-footer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icons-footer img:hover {
    transform: scale(1.1);
    background: var(--violeta-principal);
    border-radius: 50%;
}

.footer-contact h4 {
    color: var(--violeta-principal);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--gris-azulado);
    font-size: 1.2em;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: var(--violeta-boton-hover);
    /* Using #2D154B var */
}

.footer-bottom p {
    color: var(--blanco);
}

.footer-info {
    justify-items: center;
}

.footer-contact a,
.footer-contact a p {
    text-decoration: none;
}


.link {
    color: var(--azul-enlace);
    text-decoration: none;
}

.link:hover {
    color: var(--naranja);
    text-decoration: underline;
}

/* ----------------------------------
    RESPONSIVE (Ajustes para móviles)
------------------------------------- */

@media (max-width: 1220px) {
    .logo img {
        max-width: 300px;
    }

    .main-nav {
        width: 98%;
        justify-content: space-between;
    }


    .main-nav a {
        font-size: 1.0em;
    }

    .main-nav ul {
        gap: 20px;
    }

    .cta-button {
        top: 85%;
    }

}

@media (max-width: 1000px) {
    .logo img {
        max-width: 280px;
    }

    .main-nav ul {
        gap: 15px;
    }

}


/* ======================================================= */
/* BREAKPOINT 2: Tabletas y Móvil Grande (max-width: 800px)*/
/* Se activa la hamburguesa y se reduce el logo.            */
/* ======================================================= */



@media (max-width: 800px) {

    .main-nav a {
        color: var(--blanco);
    }

    /* HERO: Cambiar a imagen de fondo */
    .hero-content {
        background-image: url('../img/banners/banner-tablet.png');
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        min-height: 700px;
    }

    .hero-content img {
        display: none;
    }

    /* NAVEGACIÓN: Activar menú móvil */
    .hamburger-menu {
        display: block;
        background: var(--gris-azulado);
        border-radius: 5px;
        padding: 5px;
    }

    /* Convertir nav-links en menú lateral DESDE LA IZQUIERDA */
    .nav-links {
        position: fixed;
        top: 80px;
        /* Debajo del header (altura aproximada del header) */
        left: -100%;
        /* Oculto a la izquierda */
        width: 100%;
        /* Ancho completo */
        height: calc(100vh - 80px);
        /* Altura desde debajo del header hasta el final */
        background-color: var(--violeta-principal);
        padding: 40px 20px 20px;
        transition: left 0.3s ease-in-out;
        /* Transición de izquierda */
        flex-direction: column;
        gap: 0;
        z-index: 999;
        /* Debajo del overlay */
        overflow-y: auto;
        /* Scroll si el contenido es muy largo */
    }

    .nav-links li {
        margin-bottom: 20px;
        text-align: center;
    }

    .nav-links.active {
        left: 0;
        /* Mostrar desde la izquierda */
    }

    /* ========================================
       OVERLAY OSCURO DETRÁS DEL MENÚ
    ======================================== */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        /* Fondo negro semi-transparente */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
        /* Debajo del menú pero arriba del contenido */
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block;
    }

    /* WhatsApp Button in Mobile Menu */
    .whatsapp-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background-color: var(--whatsapp);
        color: var(--blanco);
        padding: 12px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95em;
        margin: 20px 15px;
        transition: background-color 0.3s ease;
    }

    .whatsapp-button:hover {
        background-color: var(--whatsapp-secondary);
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .service-card {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }

    .project-item {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }

    .testimonials-item {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }

    ..blog-card {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }

    /* Social Icons in Mobile Menu */
    .social-icons-mobile {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 20px;
    }

    .social-icons-mobile a {
        display: block;
        width: 40px;
        height: 40px;
    }

    .social-icons-mobile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: var(--blanco);
        border-radius: 50%;
    }

    .social-icons-mobile img:hover {
        background: var(--fucsia);
        transform: scale(1.1);
    }

    /* ========================================
       DROPDOWN EN MÓVIL: Expandir en lugar de hover
    ======================================== */

    /* El dropdown en móvil se comporta como un sub-menú expandible */
    .dropdown {
        position: relative;
    }

    .dropdown>a {
        cursor: pointer;
    }

    /* El dropdown-menu en móvil se muestra debajo, no en posición absoluta */
    .dropdown-menu {
        position: static !important;
        /* Cambia de absolute a static en móvil */
        width: 100% !important;
        min-width: auto !important;
        box-shadow: none !important;
        background-color: var(--violeta-metricas) !important;
        /* Más oscuro para diferenciarlo (#1a074c) */
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        max-height: 0;
        /* Inicia colapsado */
        overflow: hidden;
        transition: max-height 0.3s ease, margin 0.3s ease;
    }

    /* Cuando el dropdown está activo en móvil */
    .dropdown.active .dropdown-menu {
        display: block !important;
        max-height: 500px;
        /* Altura suficiente para mostrar todos los items */
        animation: none !important;
        /* Sin animación fadeIn en móvil */
    }

    /* Links dentro del dropdown en móvil */
    .dropdown-menu li a {
        padding: 15px 30px !important;
        font-size: 0.95em !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* NO mostrar dropdown en hover en móvil SI NO está activo (permite click sin interferencia) */
    .dropdown:not(.active):hover .dropdown-menu {
        display: none !important;
    }


    .social-icons {
        display: none;
    }

    /* Logo más pequeño */
    .main-nav .logo img {
        max-width: 200px;
    }

    /* GRIDS: 2 columnas */
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .projects-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* ABOUT */
    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        min-height: 250px;
    }

    .about-text p {
        font-size: 1.1em;
    }

    /* MÉTRICEAS: 2x2 grid */
    .metrics {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .metric-item {
        width: 45%;
    }

    .metric-item .number {
        font-size: 2.5em;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* BOTONES */
    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    .project-button,
    .read-more-button {
        font-size: 0.9em;
    }

    /* CONTACTO */
    .contenedor-contacto {
        padding-left: 30px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .contact-form-wrapper h3 {
        font-size: 2em;
    }

    /* Responsive text sizes */
    h2.section-title {
        font-size: 2em;
    }

    .blog-section h2 {
        font-size: 4em;
    }

    .blog-section h3 {
        font-size: 2em;
    }

    .container {
        padding: 40px 0;
    }

    .social-icons-footer {
        margin-top: 30px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }

    .footer-contact h4 {
        font-size: 1.5em;
    }

    .footer-contact p {
        font-size: 1em;
    }

}

/* FIN del bloque @media (max-width: 800px) */


/* ======================================================= */
/* BREAKPOINT 1: Teléfonos (max-width: 575px)              */
/* Todo a 1 columna.                                         */
/* ======================================================= */
@media (max-width: 575px) {

    /* TÍTULOS */
    h2.section-title {
        font-size: 1.6em;
    }

    .blog-section h2 {
        font-size: 3em;
    }

    .blog-section h3 {
        font-size: 1.5em;
    }

    /* Hero content */
    .hero-content {
        min-height: 600px;
        padding-top: 80px;
        background-image: url('../img/banners/banner-movil.png');
    }



    /* GRIDS: Colapsa a 1 columna */
    .services-list,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* SOBRE NOSOTROS Y MÉTRICAS */
    .metrics {
        flex-direction: column;
        padding: 30px 15px;
    }

    .metric-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .metric-item .number {
        font-size: 2.5em;
    }

    .metric-item .label {
        font-size: 0.95em;
    }

    /* FORMULARIO */
    .form-row {
        flex-direction: column;
    }

    /* CONTACTO */
    .contenedor-contacto {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form-wrapper h3 {
        font-size: 1.8em;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 1.1em;
    }

    /* CTA Button */
    .cta-button {
        width: 80%;
        font-size: 0.9em;
        padding: 10px 20px;
        margin-left: 0%;
        margin-right: 10%;
        top: 70%;
    }

    /* Footer */
    .footer-grid {
        gap: 30px;
    }

    .footer-logo {
        width: 200px;
    }

    .texto-footer {
        font-size: 1.1em;
        color: var(--gris-azulado);
    }

    /* Container padding */
    .container {
        width: 95%;
        padding: 30px 0;
    }

    /* About text */
    .about-text p {
        font-size: 1em;
    }

    .about-image {
        min-height: 200px;
    }

    /* Service cards */
    .service-card h3 {
        font-size: 1.3em;
    }

    .service-card p {
        font-size: 1em;
    }
}


/* ======================================================= */
/* BREAKPOINT 3: Escritorio/Desktop (min-width: 992px)     */
/* Restablece la navegación horizontal.                     */
/* ======================================================= */
@media screen and (min-width: 992px) {

    /* NAVEGACIÓN: Desactiva la Hamburguesa y Muestra el Menú */
    .hamburger-menu {
        display: none;
    }

    .main-nav ul {
        display: flex;
        /* Muestra el menú de escritorio */
    }

    .social-icons {
        display: flex;
        gap: 10px;
        /* Muestra los íconos sociales de escritorio */
    }


    .footer-grid {
        grid-template-columns: 3fr 3fr;
        /* Restaura las columnas del footer */
        text-align: left;
    }
}

/* ----------------------------------
    BOTONES FLOTANTES (Fixed Side)
------------------------------------- */

.floating-buttons {
    position: fixed;
    right: 0;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float {
    background-color: var(--whatsapp);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
}

.scroll-top {
    background-color: var(--azul-scroll-top);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--azul-scroll-top-hover);
}

.floating-btn svg {
    width: 32px;
    height: 32px;
}

/* Responsividad para botones flotantes */
@media screen and (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 0;
    }

    .floating-btn {
        width: 30px;
        height: 30px;
    }

}

/* ----------------------------------
    GLOBAL ANIMATIONS (SCROLL REVEAL)
------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para elementos consecutivos (opcional) */
.scroll-reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 0.3s;
}
