/* --- PREPARACIÓN E IMPORTACIONES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');
/* ---- IMPORTACIÓN DE GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:wght@400;700&display=swap');

/*VARIABLES*/
:root {
    --mx-width: 1320px;
    --color-title: #333335;
    --color-text: #0D0D0D;
    --color-text-body: #525260;
    --color-description: #99A1AA;
    --color-detail: #d7e1eb;
    --color-primary-shadow: #00898020;
    --color-primary: #0071CE;
    --color-secondary: #fff;
    --color-banner: #0071CE;
    --color-bg-cards: #f8f8f8;
    --color-bg-projects: #EBF1F5;
    --color-bg-dark: #27272E;
    --color-hover-dark: #303015;

     --color-background: #121212;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #a0a0a0;
    --color-accent: #ff6a3d;
    --color-input-bg: #2a2a2a;
    --font-primary: 'Inter', sans-serif;

    /*COLORES PROVIL*/
    /*BLUE*/
    --color-principal-blue:#0071CE;
    --color-light-blue:#66A9DD;
    --color-dark-blue:#004A87;
    /*RED*/
    --color-principal-red:#D81920;
    --color-light-red:#E8797D;
    --color-dark-red:#A31318;
    /*GREY*/
    --color-principal-grey:#B6BCC2;
    --color-light-grey:#EAECEE;
    --color-dark-grey:#5A6269;

    /* Duración total de la animación. 18s = 3s por tarjeta */
    --anim-duration: 18s; 

}

/*ESTILOS GENERALES*/
html {
    font-size: 62.5%;
    /*definimos el rem*/
    overflow-x: hidden;
    /*esto significa que todo lo que sobre salga en x se esconda*/
    scroll-behavior: unset;
}

body {
    width: 100%;
    height: 100%;

    font-size: 1.6rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-body);
}

.menu-mobile__logo-light {
    display: block;
}


.navbar__logo-light {
    display: block;
}

.navbar__logo-dark {
    display: none;
}

/*ESTRUCTURA LAYOUT*/

.layout {
    width: 100%;
    /* ocupa todo el ancho disponible */
    /* nunca pasa de tu variable (1320px) */
    margin: 0 auto;
    /* la centra siempre */
    min-width: auto;
    /* quita el min-width:1200px original */
    box-sizing: border-box;
    /* paddings/borders no suman ancho extra */
}

/*Boton de responsive*/
.navbar__mobile-btn {
    display: none;
    cursor: pointer;
}

.menu-mobile {

    visibility: hidden;
    opacity: 0;

    position: fixed;
    z-index: 10;
    width: 30rem;


    display: flex;
    flex-direction: column;
    height: 100vh;


    background-color: var(--color-secondary);
    top: 0;
    left: -300px;
    transition: all 300ms ease-in-out;
    padding: 1rem;
    padding-top: 0;
    box-shadow: 0px 0px 85px 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;

}

.menu-mobile__header {
    flex-shrink: 0;
    /* no se encoge */
}

.menu-mobile__body {
    flex: 1;
    /* ocupa todo el espacio disponible */
    overflow-y: auto;
    /* aquí vive el scroll */
}

.menu-mobile__bottom {
    flex-shrink: 0;
    /* siempre visible abajo */
}

.menu-mobile--show {
    visibility: visible;
    opacity: 1;
    left: 0;

}

.menu-mobile__submenu {
    display: none;
    visibility: visible;
    opacity: 1;

    min-width: 100%;
    padding: 0;
    padding-bottom: 1rem;
}


/*ESTILOS MENU NAVEGACION Y CABECERA DE LA WEB*/

.layout__menu {
    width: 100%;
    padding: 3.5rem 3rem;
}

.menu__navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /*los elementos centrados justo al medio*/
    transition: all 0.3s ease-in-out;
    background-color: transparent;
}

.menu__navbar--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    background-color: var(--color-secondary);
    box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem 1rem;
    backdrop-filter: blur(6px);
    /* desenfoque detrás */
    justify-content: space-between;
}

.navbar__logo {
    /*imagen del logo hasta arriba*/
    width: 120px;
}

.nav__list {
    display: flex;
    /*necesito los elementos cada uno al lado del otro en row*/
    flex-direction: row;
    justify-content: center;
    /*acomodarlos*/
    align-items: center;
    gap: 0rem;

}

.nav__list>li {
    display: flex;
    align-items: center;
}

.nav__item {
    position: relative;
    margin: 0 2rem;
    
}
.nav__item-contact  {
    transition: all 0.3s ease;
}
.nav__title-contact {
    position: relative;
    display: inline-block;
    padding:1.3rem 1.8rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-secondary);
    /* color inicial del texto */
    border-radius: 30px;
    border: 1px solid var(--color-primary);
    background-color: var(--color-primary);
    /* fondo original si lo hay */
    z-index: 1;
    transition: all 0.3s ease;
}
.nav__title-contact:hover {
    background-color: var(--color-text);
    border:1px solid var(--color-text);
}
.nav__item-contact:hover  {
    transform: scale(1.05);
}

.nav__title {
    position: relative;
    /*por si tenemos que hacer algo dentro y se queda dentro de los limites*/
    display: block;
    font-weight: 500;
    color: var(--color-description);
    transition: all 300ms ease-in-out;
    line-height: 3rem;
    font-size: 2rem;
}

.nav__icon {
    font-size: 1rem;
    font-weight: bold;
    padding-left: 0.2rem;
    vertical-align: middle;
    /*para que se quede en medio*/
}

.nav__title:hover {
    color: var(--color-primary);
}

.nav__title::before {
    content: " ";
    height: 0.15rem;
    width: 0;
    background-color: var(--color-primary);
    position: absolute;
    /*para poder posicionar el elemento como yo quiera*/
    bottom: 0.5rem;
    /*para que la linea este debajo del texto de navegacion*/
    left: 0;
    opacity: 0;
    transition: all 300ms linear;
}

.nav__title:hover::before {
    /*esto es para que en vez de ser un elemento de subrayado, tenga un efecto de transicion*/
    width: 100%;
    opacity: 1;
}

.nav__submenu {
    /*ahora a esconder los submenus*/
    display: block;
    position: absolute;
    /*porque necesito que este de manera absoluta sobre cualquier cosa y oder controlar su posicion*/
    top: 100%;
    left: 2rem;
    min-width: 19rem;
    padding: 1.5rem 1rem;
    border-radius: 0.4px;
    background-color: var(--color-secondary);
    box-shadow: 0px 13px 48px 0px rgba(0, 0, 0, 15%);
    top: 5.5rem;

    opacity: 0;
    visibility: hidden;
    /*no puedo clicarlos*/
    transition: all 300ms ease-in-out;
}

.nav__icon {
    transition: all 400ms ease-in-out;
}

.nav__item:hover .nav__icon {
    transform: rotate(90deg);
}


/*transicion del menu*/
.submenu__item {
    opacity: 0;
    transform: translateX(2rem);
    transition: all 100ms ease-in-out;
}

.submenu__item:nth-child(1) {
    transition-delay: 100ms;
}

.submenu__item:nth-child(2) {
    transition-delay: 200ms;
}

.submenu__item:nth-child(3) {
    transition-delay: 300ms;
}

.submenu__item:nth-child(4) {
    transition-delay: 400ms;
}

.submenu__item:nth-child(5) {
    transition-delay: 500ms;
}

.submenu__item:nth-child(6) {
    transition-delay: 600ms;
}


.submenu__title {
    display: block;
    position: relative;
    /*quiero que la posicion absolute que meta dentro de este actue dentro y no se salga*/
    font-size: 1.5rem;
    text-transform: capitalize;
    text-decoration: none;
    font-weight: 100;
    color: var(--color-text-body);
    padding: 0.7rem 1.5rem;
    transition: all 300ms ease-in-out;
}

.nav__item:hover>.nav__submenu {
    /* el > solo selecciona hijos directos de nav__item*/
    opacity: 1;
    z-index: 999;
    left: 0;
    visibility: visible;
}

.nav__item:hover .submenu__item {
    /*esto es especificamente para que los elementos por si solos tambien hagan transicion*/
    opacity: 1;
    transform: translateX(0);
}

.submenu__title:hover {
    color: var(--color-primary);
}

.submenu__title::after {
    content: " ";
    top: 50%;
    left: 0;
    position: absolute;
    height: 0.2rem;
    width: 0;
    background-color: var(--color-primary);
    transition: all 300ms ease-in-out;
}

.submenu__title:hover::after {
    width: 100%;
    /*para que tache todo*/
}

/*ESTILOS COMPARTIDOS DE CSS*/

/*--------------------------------------------*/
/*HOME*/
.layout__home {
    width: 100%;
    padding: 8rem clamp(2rem, 5vw, 15rem); 
    box-sizing: border-box; /* Asegura que el padding no desborde */
}

.home__display {
    width: 100%;
    max-width: 1320px; /* Ancho máximo del contenido. ¡Esto es clave! */
    margin: 0 auto;     /* Centra el contenido cuando la pantalla es más ancha */
    display: flex;
    flex-direction: row;
    gap: 4rem; /* Un poco más de espacio */
    align-items: center;
}

/* Estado inicial (ocultas) */
.home__left,
.home__right {
    opacity: 0;
    transform: translateX(0);
    /* para reset */
    transition: all 1s ease;
}

/* Izquierda */
.home__left.hidden {
    transform: translateX(-100px);
    opacity: 0;
}

.home__left.show {
    transform: translateX(0);
    opacity: 1;
}

/* Derecha */
.home__right.hidden {
    transform: translateX(100px);
    opacity: 0;
}

.home__right.show {
    transform: translateX(0);
    opacity: 1;
}

.home__left {
    width: 100%;
    flex-basis: calc(50%);
}



.home__left-reviews {
    display: flex;
    flex-direction: row;
    margin-top: 2rem;
    align-items: center;
}

.home__reviews-row {
    display: flex;
    flex-direction: row;
    margin-top: 2rem;

}

.left-reviews__circles {
    display: flex;
    flex-direction: row;
    margin-right: 1rem;
}

.left-reviews-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-description);
    margin-left: -10px;
    z-index: 1;
    box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.1);
}

/* Asegura que el primer círculo no tenga margen negativo */
.left-reviews-img:first-child {
    margin-left: 0;
}
.left-reviews__stars{
    display: flex;
    align-items: center;
    gap: 0.5rem;

}
.left-reviews__stars-text{
    font-weight: 700;
}
.home__stars {
    color: orange;
    font-size: 1.5rem;
}

.left-reviews__text {
    font-size: 1.5rem;
}

.home__left-info {
    margin-top: 4rem;
}

/* "ALTA CALIDAD, EXCELENTE SERVICIO" */
.left-info__rating-title {
    color: var(--color-title);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Esto es Bold */
    font-size: 2.5rem; /* Ajuste ligero de tamaño */
    text-transform: uppercase; /* Para darle más fuerza */
    letter-spacing: 1px;
}

/* "PRODUCTOS Y SERVICIOS DE LIMPIEZA" */
.left-info__title {
    color: var(--color-title);
    font-family: 'Anton', sans-serif; /* Nueva fuente de alto impacto */
    font-size: 8rem;
    font-weight: 400; /* Anton solo tiene un grosor, así que normal es suficiente */
    line-height: 1.1;
    margin-top: 2rem; /* Reducimos el margen superior para compactar */
    margin-bottom: 2rem;
}
.title__highlight {
    color: var(--color-primary); /* Usa tu color azul principal */
}


.left-info__buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 5rem;
    margin-bottom: 4rem;
    gap: 2rem;
    font-size: 2.5rem;
}

.left-info__button1 {
    border-radius: 40px;
    background-color: var(--color-principal-blue);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1.8rem;
    padding: 1.4rem 2.8rem;
    box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.left-info__button1:hover {
    transform: scale(1.05);
    background-color: var(--color-background);
}

.left-info__ratings {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 6rem;
    margin-bottom: 1rem;
}

.left-info__rating {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/*TRANSFORM EN Y - HOVER=================================*/

.left-info__rating{
    transition: transform 0.4s ease;
}

.left-info__rating:hover {
    transform: translateY(-5px);
}



/* "Servicios especializados..." */
.left-info__subtitle {
    margin-top: 2rem;
    margin-right: 2rem;
    font-size: 2.3rem; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Esto es Bold */
    line-height: 1.5;
    color: var(--color-description);
}
.home__right {
    position: relative;
    flex-basis: calc(55%);
    cursor: pointer;
    
    /* Mantenemos la forma ovalada/circular */
    border-radius: 50%; 
    
    /* === CAMBIO CLAVE === */
    /* Aquí restauramos tu gradiente original para el fondo del óvalo. */
    background: linear-gradient(160deg, #eaf6ff88 0%, #d4e4f794 100%);
    
    /* Y mantenemos el resplandor azul exterior que sí te gustó */
    box-shadow: 0 0 80px 20px rgba(0, 113, 206, 0.1);
    
    /* Esto lo dejamos igual para centrar la imagen del logo */
    display: flex; 
    justify-content: center;
    align-items: center; 
    overflow: hidden;

    /* Puedes ajustar las dimensiones si lo necesitas */
    height: 450px; 
    width: 450px; 

    border: none;
    z-index: 1; 
}

.home__right__img {
    position: relative; /* Cambia a relative, ya que el padre es flexbox */
    top: auto; /* Desactiva el top anterior */
    left: auto; /* Desactiva el left anterior */
    transform: none; /* Desactiva el transform anterior para que flexbox centre */
    
    height: 35rem; /* Reduce el tamaño máximo del logo */
    width: auto; /* Asegura que no se desborde horizontalmente */
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease-in-out;
    
}

/* Puedes ajustar el hover si quieres que el logo se haga un poco más grande al pasar el ratón */
.home__right:hover .home__right__img {
    transform: scale(1.05); /* Un ligero crecimiento */
}

.enlace-div {
    display: block;
    /* Para que pueda envolver todo el div */
    color: inherit;
    /* Mantener el color del texto original */
    text-decoration: none;
    /* Quitar subrayado */
}

.enlace-div:visited {
    color: inherit;
    /* Evitar cambio de color al visitar */
}

.enlace-div:hover {
    cursor: pointer;
    /* Que se note que es clicable */
}


/* Botón a la derecha del container */
.button__go {
    position: absolute;
    bottom: 5%;
    right: 46%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border-radius: 50%;
    z-index: 2;

}

/* Círculo expansivo debajo del ícono */
.button__go::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-secondary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: -1;
    /* detrás del ícono */
}



/* --- ESTILO DE LA SECCIÓN PRINCIPAL ('products') --- */
.layout__products {
    background-image: radial-gradient(circle at 50% 30%, #0071ce2f, #ffffff 25%);
    text-align: center;
    overflow: hidden;
    width: 100%;
    /* Aplicamos la misma técnica de padding fluido */
    padding: 10rem clamp(2rem, 5vw, 15rem);
    box-sizing: border-box;
}

.products__display {
    max-width: 1200px; /* Ancho máximo del contenido. */
    margin: 0 auto;     /* Centrado automático. */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* --- ESTILO DE LA PARTE SUPERIOR (Títulos y Botón) --- */
.products__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 700px;
}

.products__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #1a1a1a;
}

.products__subtitle {
    font-size: 2.3rem;
    font-family: 'Montserrat' sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-description);
    margin: 0;
    max-width: 500px;
}

.products__button {
    background-color: var(--color-principal-blue);
    color: var(--color-secondary);
    text-decoration: none;
    padding: 1.4rem 2.8rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.products__button:hover {
    transform: scale(1.05);
    background-color: var(--color-background);
}

/* --- ESTILO DE LA GALERÍA DE TARJETAS --- */
.products__bottom {
    width: 100%;
    min-height: clamp(250px, 45vw, 400px); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.products__gallery {
    position: relative;
    /* CAMBIO: Aumentamos los valores para hacer todo el componente más grande */
    width: clamp(320px, 70vw, 700px);
    height: clamp(250px, 50vw, 450px); /* Aumentamos también la altura */
    
    perspective: 1000px;
    transform-style: preserve-3d;
}

.products__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: 1px;
    gap: 10px;
    box-sizing: border-box; /* Importante para que el padding no altere el tamaño total */
    
    display: flex;
    flex-direction: column;
    background-color: #fff;
    
    /* La animación se mantiene intacta */
    animation-name: shuffle-3d;
    animation-duration: var(--anim-duration);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    
    transform: translateZ(0); /* Promueve a su propia capa de renderizado */
}

.window-ui {
    width: 100%;
    flex-grow: 1;
    min-height: 0; 
    
    background-color: #2d2d2d; /* Volvemos al color sólido, la opacidad la maneja la animación */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;

    /* CAMBIO: Añadimos border-radius propio a la ventana para que se vea redondeada dentro del marco */
    border-radius: 8px;
}

.window-ui__header {
    width: 100%;
    height: 36px;
    background-color: #3c3c3c;
    display: flex;
    align-items: center;
    padding: 0 12px;
    flex-shrink: 0;
    /* CAMBIO: Redondeamos solo las esquinas superiores */
    border-radius: 8px 8px 0 0;
}

.item__title {
    font-family:  'Anton', sans-serif;
    font-weight: 400;
    color: var(--color-title);
    font-size: 4rem;
    line-height: 1.1;
    text-align: center;
    padding: 1.2rem 1rem;
    margin: 0;
    flex-shrink: 0;
}
.item__title-highlight {
    color: var(--color-principal-blue);
}

.window-ui__controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot:nth-child(1) { background-color: #ff5f56; }
.control-dot:nth-child(2) { background-color: #ffbd2e; }
.control-dot:nth-child(3) { background-color: #27c93f; }


.window-ui__content {
    flex-grow: 1;
    /* CAMBIO: Removemos el padding de aquí. Lo moveremos a .image-container */
    padding: 0; 
    /* Es importante que no haya overflow oculto aquí para que el .image-container se vea bien */
    overflow: visible; /* Aseguramos que nada se recorte a este nivel */

    /* Añadimos display flex para centrar el nuevo contenedor de la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- NUEVA REGLA: El contenedor blanco de la imagen --- */
.image-container {
    width: 90%; /* Ancho del contenedor blanco, puedes ajustar esto */
    height: 90%; /* Altura del contenedor blanco, puedes ajustar esto */
    background-color: #ffffff; /* Fondo blanco */
    border-radius: 8px; /* Bordes redondeados para el contenedor blanco */
    overflow: hidden; /* Importante para que la imagen respete los bordes redondeados */
    display: flex; /* Para centrar la imagen perfectamente dentro */
    justify-content: center;
    align-items: center;
}


.window-ui__image {
    width: 100%;
    height: 100%;
    
    /* CAMBIO: De 'cover' a 'contain' */
    object-fit: contain;

    /* El object-position ya no es tan necesario con 'contain', pero no hace daño dejarlo */
    object-position: center top; 
    
    border-radius: 6px;
}
/* --- Retraso de Animación (Sin cambios en la lógica) --- */
.products__item:nth-child(1) { animation-delay: calc(0 * var(--anim-duration) / -6); }
.products__item:nth-child(2) { animation-delay: calc(1 * var(--anim-duration) / -6); }
.products__item:nth-child(3) { animation-delay: calc(2 * var(--anim-duration) / -6); }
.products__item:nth-child(4) { animation-delay: calc(3 * var(--anim-duration) / -6); }
.products__item:nth-child(5) { animation-delay: calc(4 * var(--anim-duration) / -6); }
.products__item:nth-child(6) { animation-delay: calc(5 * var(--anim-duration) / -6); }
/* CAMBIO FINAL: Ajuste de Opacidad en la Animación para la Tarjeta Frontal */

@keyframes shuffle-3d {
    0% {
        transform: translateX(0) scale(0.7) translateZ(-300px);
        opacity: 0;
    }
    16.66% {
        /* CAMBIO: Aumentamos el desplazamiento para el nuevo tamaño */
        transform: translateX(200px) scale(0.8) translateZ(-200px);
        opacity: 0.8;
    }
    33.32% {
        /* CAMBIO: Aumentamos el desplazamiento para el nuevo tamaño */
        transform: translateX(100px) scale(0.9) translateZ(-100px);
        opacity: 0.9;
    }
    49.98% {
        transform: translateX(0) scale(1) translateZ(0);
        opacity: 1;
    }
    66.64% {
        /* CAMBIO: Aumentamos el desplazamiento para el nuevo tamaño */
        transform: translateX(-100px) scale(0.9) translateZ(-100px);
        opacity: 0.9;
    }
    83.3% {
        /* CAMBIO: Aumentamos el desplazamiento para el nuevo tamaño */
        transform: translateX(-200px) scale(0.8) translateZ(-200px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(0.7) translateZ(-300px);
        opacity: 0;
    }
}
/* --- AJUSTES PARA MÓVILES --- */
@media (max-width: 768px) {
    /* ... (resto de estilos de media query sin cambios) ... */
    
    @keyframes shuffle-3d {
        0% { transform: translateX(0) scale(0.7) translateZ(-200px); opacity: 0; }
        16.66% { transform: translateX(100px) scale(0.8) translateZ(-150px); opacity: 0.8; }
        33.32% { transform: translateX(50px) scale(0.9) translateZ(-100px); opacity: 0.9; }
        49.98% { transform: translateX(0) scale(1) translateZ(0); opacity: 1; } /* <-- ¡Aquí también! */
        66.64% { transform: translateX(-50px) scale(0.9) translateZ(-100px); opacity: 0.9; }
        83.3% { transform: translateX(-100px) scale(0.8) translateZ(-150px); opacity: 0.8; }
        100% { transform: translateX(0) scale(0.7) translateZ(-200px); opacity: 0; }
    }
}

/* --- ESTILO DE LA SECCIÓN DEL CATÁLOGO --- */

.layout__catalog {
    background-color: var(--color-principal-blue);
    padding: 90px 40px;
    position: relative;
    overflow: hidden; 
}
.layout__catalog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23004A87' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5; 
}

.catalog__display {
    display: flex;
    justify-content: space-around;
    align-items: center; 
    gap: 40px; 
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.catalog__1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}
.catalog__download {
    color: var(--color-light-grey);
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    font-weight: 700;
    margin: 0; 
    transition: transform 0.3s ease;
}
.catalog__download:hover {
    transform: scale(1.05);
}
.catalog__button {
    background-color: var(--color-light-grey);
    color: var(--color-principal-blue);
    border: none;
    padding: 14px 45px;
    border-radius: 50px;
    font-size: 1.8rem; 
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 100%; 
    box-sizing: border-box; 
}

.catalog__button:hover {
    color: var(--color-dark-blue);
    transform: scale(1.05);
}
.catalog__container {
    background-color: var(--color-light-blue);
    padding: 0; 
    border-radius: 30px 100px;
    max-width: 450px; 
    overflow: hidden; 
}
.catalog__img {
    display: block; 
    width: 80%;
    height: auto;
    align-self: center;
    justify-self: center;
    transition: transform 0.3s ease;
    border-radius: 30px 100px; 
}
.catalog__container:hover .catalog__img {
    transform: scale(1.05);
}
/* --- AJUSTES PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 768px) {
    .layout__catalog {
        padding: 50px 20px;
    }

    .catalog__display {
        flex-direction: column;
    }

    .catalog__download {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
}
/* --- ESTILOS GENERALES DEL FOOTER --- */
.layout__footer {
    background-color: var(--color-dark-blue);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    padding: 6rem 4rem 1rem 4rem;
    font-size: 1.5rem;
}

.footer__display {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px; /* Espacio entre las secciones principales */
}

/* --- SECCIÓN SUPERIOR: LOGO, LEMA Y EMAIL --- */
.ftop__fup {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Para responsividad en móviles */
    gap: 20px;
    margin-bottom:3rem ;
    padding-bottom: 3rem;
}

.fup__left {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.fup__logo {
    max-width: 100px; /* Ajusta el tamaño de tu logo */
    height: auto;
}
.fup__left-div{
    display: flex;
    flex-direction: column;
}
.fup__text {
    color: var(--color-text-primary);
    font-style: italic;
    margin: 0;
    line-height: 1.1;
}

.fup__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fup__mail {
    margin: 0;
    color: var(--color-text-primary);
    text-decoration: none;
    align-self: center;
}

/* --- SECCIÓN MEDIA: ENLACES Y FORMULARIO --- */
.ftop__fdown {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.fdown__left {
    display: flex;
    gap: 80px; /* Espacio entre "Compañia" y "Legal" */
    flex-wrap: wrap;
}

.fdown__item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fdown__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 5px 0;
}

.fdown__text {
    margin: 0;
    color: var(--color-text-secondary);
    cursor: pointer; /* Para que parezcan links */
    transition: color 0.2s;
}

.fdown__text:hover {
    color: var(--color-text-primary);
}

.fdown__right {
    max-width: 350px;
}

.fdown__subtitle {
    color: var(--color-text-secondary);
    margin: 10px 0 20px 0;
}

.fdown__form {
    display: flex;
}

.fdown__input {
    background-color: var(--color-text-primary);
    border: 1px solid #444;
    border-radius: 40px 0px 0px 40px;
    padding: 12px 16px;
    color: var(--color-text);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.fdown__input:focus {
    border-color: var(--color-principal-blue); 
    background-color: var(--color-text-secondary);
}

.fdown__button {
    background-color:var(--color-principal-blue); 
    color: var(--color-text-primary);
    border: 1px solid var(--color-principal-blue);
    border-radius: 40px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    margin-left: -20px; /* Efecto de superposición */
    transition: background-color 0.2s;
}

.fdown__button:hover {
    background-color:var(--color-dark-blue);
    border: 1px solid #444;
}

/* --- SECCIÓN DEL TEXTO GRANDE --- */
.footer__fbottom {
    text-align: center;
}

.fbottom__img { 
    height: 10rem;
    width: auto;
}


/* --- SECCIÓN INFERIOR: COPYRIGHT Y REDES SOCIALES --- */
.fbottom__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    font-size: 12px;
}

.copyright__text {
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.copyright__text a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.copyright__text a:hover {
    text-decoration: underline;
}

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

.fbottom__icon {
    font-size: 20px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    cursor: pointer;
}

.fbottom__icon:hover {
    color: var(--color-text-primary);
}
.fbottom__text{
    color: var(--color-description);
    transition: all 0.3s ease;
}
.fbottom__text:hover{
    color: var(--color-text-primary);
}
/* --- AJUSTES PARA MÓVILES --- */
@media (max-width: 768px) {
    .layout__footer {
        padding: 40px 20px;
    }

    .ftop__fup, .ftop__fdown, .fbottom__info {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* --------------------- */
/* POPUP OVERLAY GENERAL */
/* --------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
/* POPUP CONTENT */
.popup-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    height: 70%;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}
.popup-right {
    width: 100%; /* <--- AHORA OCUPA TODO EL ESPACIO */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* FORMULARIO DERECHA */
.popup-right h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
}

.popup-right form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-right label {
    font-weight: 600;
    text-align: left;
}

.popup-right select {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.whatsapp-btn {
    margin-top: 10px;
    background: #25D366;
    /* verde WhatsApp */
    color: #fff;
    border: none;
    padding: 12px 0;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-btn:hover {
    background: #1ebe57;
    transform: scale(1.03);
}
/* BOTÓN CERRAR */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.2);
}
