/* ============================================
   RESET Y VARIABLES GLOBALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #FFFFFF;
    color: #2c2c2c;
    overflow-x: hidden;
}

:root {
    --white: #FFFFFF;
    --gray-light: #E7E5E3;
    --gray-mid: #CDCAC6;
    --gray-brown: #948A84;
    --brown-dark: #6F625A;
    --blue-accent: #5080A2;
    --green-accent: #7C9A85;
    --purple-accent: #897EA4;
    --orange-accent: #DA9067;
    --red-accent: #B36D60;
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    min-height: 60px;
    max-height: 100px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 90%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: #6F625A;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    display: inline-block;
}

.nav-links li a.active {
    border: 2px solid #6F625A;
    background: transparent;
    color: #6F625A;
}

.nav-links li a:hover {
    background-color: #6F625A;
    color: white;
    border-color: #6F625A;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    color: #6F625A;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.social-icons a:hover {
    color: #5080A2;
    transform: scale(1.1);
    background-color: rgba(111, 98, 90, 0.1);
}

/* ============================================
   HERO SLIDER - imágenes detrás del header
   ============================================ */
.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #E7E5E3;
    /* No tiene margin-top para que las imágenes lleguen al borde superior */
}

.hero-slider-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.hero-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajuste para que el contenido del slider no quede detrás del header */
.hero-item {
    padding-top: 10vh;
}

.overlay-text {
    position: absolute;
    inset: 0;
    background: rgba(111, 98, 90, 0.7);
    backdrop-filter: brightness(0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: 0;
}

.overlay-text h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto Condensed', sans-serif;
}

.overlay-text p {
    font-size: 1.2rem;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    font-family: 'Roboto Condensed', sans-serif;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 10px;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.frame-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   EVENTO FLOTANTE - Slider Principal
   ============================================ */

/* Contenedor de la imagen flotante */
.evento-flotante {
    position: absolute;
    bottom: 3%;
    /* 5% arriba del margen inferior */
    left: .5%;
    /* 0=Pegado al margen izquierdo */
    z-index: 15;
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(8px 10px 12px rgba(0, 0, 0, 0.3));
}

/* Imagen dentro del contenedor */
.evento-flotante img {
    width: auto;
    height: auto;
    max-width: 45vw;
    max-height: 35vw;
    display: block;
    border-radius: 5px;
}

/* Clase para ocultar la imagen (movimiento rápido derecha a izquierda) */
.evento-flotante.hide {
    transform: translateX(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clase para mostrar la imagen */
.evento-flotante.show {
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   CARRUSEL PERPETUO
   ============================================ */
.carousel-perpetuo {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, #FFFFFF, #E7E5E3, #FFFFFF);
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollInfinito 70s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* Contenedor de la tarjeta mantiene posición relativa */
.logo-card {
    position: relative;
    background: transparent;
    border-radius: 20px;
    padding: 0.5rem;
    width: 170px;
    margin: 0 1rem;
    flex-shrink: 0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

/* Segunda imagen (hover) - inicialmente oculta */
.logo-card .hover-img {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    height: 110px;
    object-fit: contain;
    border-radius: 10px;
    background: #F9F7F5;
    padding: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Al hacer hover: ocultar imagen principal y mostrar segunda imagen */
.logo-card:hover .main-img {
    opacity: 0;
}

.logo-card:hover .hover-img {
    opacity: 1;
}

.logo-card:hover {
    transform: translateY(-6px) scale(1.08);
}

.logo-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.logo-card:hover img {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

@keyframes scrollInfinito {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   BLOQUES PDF - imágenes agrandadas 20%
   ============================================ */
.blocks-pdf {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.pdf-block {
    background: #CDCAC6;
    padding: 2rem 1.5rem;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
    min-height: 400px;
}

.pdf-block:hover {
    transform: translateY(-8px);
}

/* Imágenes de PDF agrandadas 20% (de 90px a 108px) */
.pdf-block img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.2rem;
}

.pdf-block p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem;
    max-width: 600px;
    /* font-weight: 500; */
    margin-bottom: 1.5rem;
    color: #6F625A;
}

.btn-pdf {
    background-color: transparent;
    border: 2px solid #6F625A;
    padding: 10px 20px;
    border-radius: 40px;
    color: #6F625A;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.95rem;
    margin-top: auto;
}

.btn-pdf:hover {
    background-color: #6F625A;
    color: white;
    border-color: #6F625A;
}

/* ============================================
   SERVICIOS - IMÁGENES GIRANDO
   ============================================ */
.services-section {
    text-align: center;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6F625A;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #DA9067;
    border-radius: 2px;
}

.image-rotate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.image-card {
    background: #F9F7F5;
    border-radius: 36px;
    padding: 1.5rem;
    width: 200px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    opacity: 0;
    transform: translateX(80px) rotateY(35deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.image-card.animate-image {
    opacity: 1;
    transform: translateX(0) rotateY(0);
}

.image-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.image-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #6F625A;
    margin-top: 0.5rem;
    font-family: 'Roboto Condensed', sans-serif;
}

/* ============================================
   BOTÓN VER SERVICIOS
   ============================================ */
.center-btn {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-secondary {
    background-color: #DA9067;
    color: white;
    padding: 14px 38px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Roboto Condensed', sans-serif;
}

.btn-secondary:hover {
    background-color: #6F625A;
    transform: scale(1.05);
}

/* ============================================
   FRAME 4 - TRES COLUMNAS
   ============================================ */
.three-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: #E7E5E3;
    padding: 3rem;
    border-radius: 48px;
    color: #6F625A;
}

.col-text {
    flex: 1;
    min-width: 200px;
}

.col-text h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
}

.col-text p {
    font-family: 'Roboto Condensed', sans-serif;
}

.col-img {
    flex: 1;
    text-align: center;
}

.col-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 0;
}

/* ============================================
   DIRECCIONES CON MAPAS
   ============================================ */
.directions-section {
    width: 100%;
    background: #E7E5E3;
    padding: 4rem 0;
}

.directions-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    padding: 0;
}

.direction-card {
    flex: 1;
    min-width: 280px;
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.direction-card:hover {
    transform: translateY(-8px);
}

.direction-map {
    width: 100%;
    height: 300px;
}

.direction-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.direction-info {
    padding: 1.5rem;
    text-align: center;
}

.direction-info h3 {
    font-size: 1.3rem;
    color: #6F625A;
    margin-bottom: 0.5rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

.direction-info p {
    color: #4a4a4a;
    line-height: 1.5;
    font-family: 'Roboto Condensed', sans-serif;
}

.direction-info a {
    display: inline-block;
    margin-top: 0.8rem;
    color: #5080A2;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
}

.direction-info a:hover {
    text-decoration: underline;
}

.flag-icon {
    width: 100%;
    max-width: 40px;
    height: auto;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #6F625A;
    color: #FFFFFF;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-addresses {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-address-item {
    text-align: center;
    font-size: 0.85rem;
    font-family: 'Roboto Condensed', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

.footer-address-item a {
    color: #E7E5E3;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #CDCAC6;
    font-family: 'Roboto Condensed', sans-serif;
}

.footer-address-item a:hover {
    color: white;
}

.footer-right {
    flex: 0 0 auto;
    font-size: 0.85rem;
    text-align: right;
    font-family: 'Roboto Condensed', sans-serif;
}

/* ============================================
   BOTONES FLOTANTES WHATSAPP
   ============================================ */
.whatsapp-float-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn::before {
    content: attr(data-phone);
    position: absolute;
    right: 70px;
    background: #1f2a3a;
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    font-family: 'Roboto Condensed', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Asegurar que el contenedor del slider tenga posición relativa para el posicionamiento absoluto */
.hero-slider-container {
    position: relative;
}


/* ============================================
   RESPONSIVE - MÓVILES
   ============================================ */
@media (max-width: 900px) {
    .directions-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .direction-card {
        width: 100%;
    }

    .footer-addresses {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-addresses {
        width: 100%;
        flex-direction: row;
        /* Cambia de columna a fila */
        flex-wrap: nowrap;
        /* Fuerza un solo renglón */
        justify-content: center;
        /* Centra horizontalmente */
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 800px) {

    /* HEADER - Reorganización para móviles */
    header {
        height: auto;
        min-height: 110px;
        padding: 0rem 1rem 0.5rem 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
    }

    /* Logo centrado en la parte superior */
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .logo img {
        height: 55px;
        width: auto;
    }

    /* Contenedor de navegación - centrado */
    .nav-container {
        width: 100%;
        display: flex;
        flex-direction: row;
        /* Fila para que menu e iconos estén juntos */
        justify-content: center;
        /* Centrado horizontal general */
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        /* Permite que si no hay espacio, se ajuste, pero prioriza un solo renglón */
    }

    /* Menú de opciones - centrado, un solo renglón */
    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Fuerza un solo renglón */
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    .nav-links li a {
        font-size: 0.85rem;
        /* Tamaño de fuente adaptado al Header */
        padding: 0.4rem 0.7rem;
        /* Padding reducido para móvil */
        white-space: nowrap;
        /* Evita que el texto se divida en varias líneas */
        display: inline-block;
    }

    /* Iconos sociales - centrados debajo del menú */
    .social-icons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        margin: 0;
        padding: 0;
    }

    .social-icons a {
        font-size: 1.1rem;
        /* Tamaño adaptado */
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ajustes del hero slider */
    .hero-slider-container {
        margin-top: 0;
    }

    .hero-item {
        height: 80vh;
    }

    /* Ajustes generales */
    .three-columns {
        flex-direction: column;
        text-align: center;
    }

    .logo-card {
        width: 140px;
        margin: 0 0.5rem;
    }

    /* Footer responsive */
    footer {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .footer-logo {
        justify-content: center;
        width: 100%;
    }

    .footer-addresses {
        width: 100%;
        flex-direction: row;
        /* Cambia de columna a fila */
        flex-wrap: nowrap;
        /* Fuerza un solo renglón */
        justify-content: center;
        /* Centra horizontalmente */
        align-items: center;
        gap: 1rem;
    }

    .footer-address-item {
        flex: 1;
        /* Ocupa espacio proporcional */
        justify-content: center;
        min-width: 0;
        /* Permite que se reduzca si es necesario */
    }

    .footer-right {
        text-align: center;
    }

    .pdf-block {
        min-height: 360px;
        width: 260px;
    }

    .pdf-block img {
        width: 96px;
        height: 96px;
    }

    /* Imagen dentro del contenedor */
    .evento-flotante img {
        width: auto;
        height: auto;
        max-height: 65vw;
        display: block;
        border-radius: 5px;
    }

}


@media (max-width: 600px) {
    .whatsapp-float-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn::before {
        font-size: 10px;
        right: 60px;
    }

    .image-card {
        width: 160px;
    }

    .image-card img {
        width: 80px;
        height: 80px;
    }

    .pdf-block {
        min-height: 340px;
        padding: 1.5rem 1rem;
    }

    .btn-secondary {
        padding: 12px 32px;
        font-size: 1rem;
    }

    /* Ajustes adicionales para móviles muy pequeños */
    .nav-links {
        gap: 0.3rem;
    }

    .nav-links li a {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .hero-item {
        height: 70vh;
    }

    .footer-addresses {
        gap: 0.5rem;
    }

    .footer-address-item {
        font-size: 0.7rem;
    }

    .footer-flag {
        width: 18px;
    }

    /* Imagen dentro del contenedor */
    .evento-flotante img {
        width: auto;
        height: auto;
        max-height: 65vw;
        display: block;
        border-radius: 5px;
    }

}

/* --- Ajustes adicionales para móviles muy pequeños (opcional pero recomendado) --- */
@media (max-width: 480px) {
    .nav-links li a {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .social-icons a {
        font-size: 1rem;
        width: 26px;
        height: 26px;
    }

    .nav-container {
        gap: 0.6rem;
    }

    /* Imagen dentro del contenedor */
    .evento-flotante img {
        width: auto;
        height: auto;
        max-height: 65vw;
        display: block;
        border-radius: 5px;
    }

}

@media (min-width: 1400px) {
    header {
        max-height: 100px;
    }
}