:root {
    /* Colores extraídos de la imagen */
    --primary-teal: #009845;      /* Fondo barra superior */
    --accent-yellow: #EFE78E;     /* Botones y acentos amarillos */
    --dark-btn: #333333;          /* Botón cotización oscuro */
    --text-white: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- 1. Top Bar (Barra oscura superior) --- */
.top-bar {
    background-color: var(--primary-teal);
    color: var(--accent-yellow);
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1002;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info a {
    color: white;
    margin-right: 20px;
    font-weight: 500;
    transition: 0.3s;
}

.contact-info i {
    color: var(--accent-yellow);
    margin-right: 5px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--accent-yellow);
    color: var(--primary-teal);
    border-radius: 50%;
    margin-left: 5px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: white;
}

/* --- 2. Navbar Estilo "Pastilla" --- */
.header-area {
    position: absolute; /* Para que flote sobre el Hero */
    width: 100%;
    top: 90px; /* Debajo del topbar */
    z-index: 1000;
}

.navbar {
    background: white;
    max-width: 1100px; /* Ancho contenido */
    margin: 0 auto;    /* Centrado */
    padding: 10px 30px;
    border-radius: 50px; /* Bordes muy redondeados como la foto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
}

.logo .dot { color: var(--primary-teal); } /* Puntos decorativos */
.logo .dut { color: var(--accent-yellow); } 
.logo .subtitle {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #666;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links li a:hover { color: var(--primary-teal); }

/* Dropdown básico */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    border-radius: 10px;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
}

/* Botón Cotización (Negro/Gris Oscuro) */
.btn-quote {
    background-color: var(--dark-btn);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-quote:hover { background-color: var(--primary-teal); }

/* --- 3. Hero Section (Fondo e Imagen) --- */
.hero {
    height: 100vh;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover; /* Pon aquí tu imagen de toboganes */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Compensar navbar */
}

/* Oscurecer un poco la imagen para leer texto */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón Amarillo Principal */
.btn-yellow {
    background-color: var(--accent-yellow);
    color: #000;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-yellow:hover {
    background-color: #e5b800;
    transform: translateY(-3px);
}

/* --- 4. Servicios --- */
.section-padding { padding: 80px 20px; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 50px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--accent-yellow);
    transition: 0.3s;
}

.service-card:hover { transform: translateY(-10px); }
.icon-float {
    font-size: 3rem;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

/* --- Botón Flotante WhatsApp --- */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Color oficial WhatsApp */
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: 0.3s;
}

.float-whatsapp i {
    background: white;
    color: #25D366;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 10px;
}

.wa-text {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.2;
}

.float-whatsapp:hover { transform: scale(1.05); }

/* Footer */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* --- Responsive Móvil --- */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
    .top-bar { display: none; } /* Ocultar barra superior en móvil para ahorrar espacio */
    .header-area { top: 0; position: sticky; }
    .navbar { 
        width: 100%; 
        border-radius: 0; 
        padding: 15px;
    }
    
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background: white;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { left: 0; }
    
    .btn-quote { display: none; } /* Ocultar botón header en móvil, usar el flotante */
    
    .hero h1 { font-size: 2.2rem; }
}
/* ... Tus estilos anteriores ... */

/* --- 3. Hero Section (Modificado para Carrusel) --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden; /* Importante para que no se salga la imagen */
    background: #333; /* Fondo de respaldo */
}

/* El contenedor de las imágenes */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Al fondo del todo */
}

/* Cada imagen individual */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Oculta por defecto */
    transition: opacity 1.5s ease-in-out; /* Efecto suave de 1.5 segundos */
}

/* Clase para mostrar la imagen activa */
.slide.active {
    opacity: 1;
}

/* Capa oscura (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece al 50% */
    z-index: 1; /* Encima de las fotos */
}

/* El texto y botones */
.hero-content {
    position: relative;
    z-index: 2; /* Encima de la capa oscura */
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

/* ... Resto de tus estilos (h1, h2, botones, etc.) ... */
.hero-content h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* ... Fin de la sección Hero ... */
/* --- Hero Section & Carrusel --- */
.hero {
    position: relative;
    height: 100vh; /* Altura completa de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evita que las imágenes se salgan */
    background-color: #333; /* Color de fondo por si falla la imagen */
}

/* El contenedor de las imágenes */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Detrás del texto */
}

/* Las imágenes individuales */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Oculta por defecto */
    transition: opacity 1.5s ease-in-out; /* Efecto de desvanecimiento suave */
}

/* La imagen que se está mostrando actualmente */
.slide.active {
    opacity: 1; /* Totalmente visible */
    transform: scale(1.05); /* Opcional: un ligero zoom para efecto elegante */
    transition: opacity 1.5s ease-in-out, transform 6s linear;
}

/* La capa oscura para que el texto blanco se lea bien */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscuridad al 50% */
    z-index: 1;
}

/* El texto (debe estar encima de todo) */
.hero-content {
    position: relative;
    z-index: 2;
}

/* --- Logo CONTROLADO (más pequeño) --- */
.logo {
    display: flex;
    align-items: center;
    max-width: 220px;   /* 🔥 limita el ancho total del logo */
}

.logo img {
    max-height: 55px;   /* 🔥 tamaño real del logo */
    width: auto;
    display: block;
}

/* --- NUEVA SECCIÓN: SOBRE NOSOTROS --- */
.about-section {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Columna Izquierda */
.yellow-subtitle {
    color: #f4d03f; /* Amarillo del logo */
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.about-desc {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.features-4-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-yellow {
    font-size: 24px;
    color: #f4d03f;
    min-width: 30px;
}

.feature-item span {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
}

/* Columna Derecha (Acordeón) */
.about-faq h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.faq-desc {
    color: #777;
    margin-bottom: 25px;
    font-size: 14px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #333;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: #f4d03f;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body p {
    padding-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.accordion-item.active .accordion-body {
    max-height: 150px; /* Altura suficiente para el texto */
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Fila de Estadísticas (Iconos abajo) */
.stats-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 50px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 150px;
}

.stat-box i {
    font-size: 40px;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.stat-box .counter {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    display: block;
}

.stat-box p {
    color: #777;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        gap: 30px;
    }
}

.service-logo {
    width: 100px; /* Ajusta el tamaño aquí */
    height: 100px;
    object-fit: contain;
    transition: all 0.5s ease;
}
/* Efecto hover */
.service-box:hover .service-logo {
    filter: blur(5px);
    opacity: 0.3;
}

/* 1. EL CONTENEDOR */
.grid-card {
    position: relative;     /* Necesario para encimar los textos */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Agrega aquí altura si la necesitas, ej: height: 300px; */
}

/* 2. LA IMAGEN (LOGO) */
.service-logo {
    width: 100px;           /* Tamaño del logo */
    transition: all 0.5s ease;
    opacity: 1;             /* Visible al principio */
}

/* 3. EL CONTENIDO DE TEXTO (Oculto al principio) */
.card-content {
    position: absolute;     /* Se pone "flotando" encima */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Se centra perfectamente */
    width: 100%;
    opacity: 0;             /* Invisible al principio */
    transition: all 0.5s ease;
    text-align: center;
}

/* --- EL EFECTO MÁGICO (HOVER) --- */

/* Cuando pasas el mouse, la imagen se borra */
.grid-card:hover .service-logo {
    opacity: 0;
    transform: scale(0.5);  /* Efecto de achicarse */
}

/* Cuando pasas el mouse, el texto aparece */
.grid-card:hover .card-content {
    opacity: 1;
}

.proyecto{
    overflow: hidden; /* importante */
}

.proyecto img{
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:10px;
    transition: transform 0.4s ease;
}

.proyecto:hover img{
    transform: scale(1.1);
}

/*DESDE AQWUI EL CSS SPINNER*/
.foto-wrapper{
    position: relative;
    width: 100%;
}

.foto-wrapper img{
    width:100%;
    display:block;
    border-radius:10px;
}

.foto-loader{
    position:absolute;
    inset:0; /* ocupa exactamente el tamaño real de la imagen */
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:10px;
}

.foto-loader::after{
    content:"";
    width:35px;
    height:35px;
    border:4px solid #ddd;
    border-top:4px solid #0d2c6c;
    border-radius:50%;
    animation:spin 1s linear infinite;
}