/* ==========================================================================
   Parque Lyfe v3.0 - Rediseño Definitivo y Responsivo
   ========================================================================== */

/* 1. RESET Y VARIABLES */
:root {
    --primary: #0F5132;      /* Verde bosque profundo */
    --secondary: #198754;    /* Verde esmeralda */
    --accent: #E07A5F;       /* Naranja cálido */
    --accent-hover: #D0654B;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.3s ease-in-out;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
    --white: #1a1a1a;
    --light-gray: #242424;
    --dark: #f8f9fa;
    --gray: #adb5bd;
    --primary: #28a745; /* Verde más claro para legibilidad en modo oscuro */
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll horizontal */
}

/* PROTECCIÓN ESTRICTA DE IMÁGENES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* 2. UTILIDADES DE DISEÑO */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.bg-light { background-color: var(--light-gray); }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 122, 95, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary);
}

/* 3. NAVEGACIÓN */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .brand-logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-social a,
.navbar.scrolled .mobile-toggle {
    color: var(--primary);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 15px;
}

.nav-social a {
    color: #ffffff;
    font-size: 1.2rem;
}

.nav-social a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle-btn:hover {
    color: var(--accent);
}
.navbar.scrolled .theme-toggle-btn {
    color: var(--primary);
}

/* 4. HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary); /* Fallback color */
    background-image: linear-gradient(rgba(15, 81, 50, 0.7), rgba(0, 0, 0, 0.5)), url('../img/hero-nueva.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    animation: zoomEffect 20s infinite alternate linear;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 5. SECCIONES COMUNES */
.section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 20px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--gray);
    font-size: 1.1rem;
}

/* 6. SERVICIOS (LO QUE OFRECEMOS) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(25, 135, 84, 0.1); /* Fondo verde clarito */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

/* Evitar que los íconos se desborden */
.service-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    /* Filtro para cambiar íconos negros a color verde principal */
    filter: invert(24%) sepia(85%) saturate(823%) hue-rotate(124deg) brightness(92%) contrast(92%);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-text {
    color: var(--gray);
    font-size: 0.95rem;
}

/* 7. SPLIT LAYOUT (ORÍGENES) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rounded-image {
    border-radius: 20px;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.highlight-box {
    background-color: var(--white);
    padding: 25px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--primary);
    border-radius: 0 10px 10px 0;
}

/* 8. CONTACTO Y MAPA */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden; /* Mantiene bordes redondeados */
}

.contact-info-panel {
    padding: 50px;
    background-color: var(--primary);
    color: var(--white);
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.7);
}

.info-text p, .info-text a {
    font-size: 1.1rem;
    font-weight: 500;
}

.info-text a:hover {
    color: var(--accent);
}

.schedule-card {
    background: rgba(0,0,0,0.15);
    padding: 25px;
    border-radius: 12px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.schedule-list li:last-child {
    border-bottom: none;
}

.contact-map-panel {
    min-height: 450px;
}

/* 11. INFO ÚTIL Y TARIFAS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .info-card {
    border-top-color: var(--accent);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
}

.info-card ul li i {
    margin-top: 4px;
}

.pricing-card {
    border-top-color: var(--accent);
    background: var(--light-gray);
}

[data-theme="dark"] .pricing-card {
    background: #2a2a2a;
}

.price-item {
    margin-bottom: 20px;
    text-align: center;
}

.price-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.price-item small {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 5px;
}

.eco-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    padding: 20px;
    background: rgba(15, 81, 50, 0.05);
    border-radius: 8px;
    display: inline-block;
}

[data-theme="dark"] .eco-message {
    background: rgba(40, 167, 69, 0.1);
    color: var(--primary);
}

/* 12. OPINIONES (SWIPER) */
.reviews-slider {
    padding: 20px 50px 60px; /* Espacio para las flechas laterales y puntos abajo */
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 4px solid var(--primary);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .review-card {
    border-top-color: var(--accent);
}

.review-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.review-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
}

/* 13. FOOTER */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff !important;
}

.footer-social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-copy {
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* 10. WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   EFECTOS HOVER Y TRANSICIONES ADICIONALES
   ========================================================================== */

/* Efecto subrayado animado para links del navbar */
.nav-links a {
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
[data-theme="dark"] .nav-links a:hover::after {
    background-color: var(--accent);
}

/* Efecto hover suave para todas las imágenes (Split Image) */
.split-image {
    overflow: hidden;
    border-radius: 12px;
}
.split-image img {
    transition: transform 0.6s ease;
}
.split-image:hover img {
    transform: scale(1.05);
}

/* Mejora de efecto hover en los botones principales */
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

/* Las clases antiguas reveal ya no se usan gracias a AOS */


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablets (1024px y menor) */
@media (max-width: 1024px) {
    .split-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map-panel {
        min-height: 400px;
        order: -1; /* Pone el mapa arriba en móviles si se desea, o déjalo normal */
    }
}

/* Dispositivos Móviles (768px y menor) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px;
        transition: left 0.4s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .nav-links a {
        color: var(--dark);
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    .nav-social {
        margin-top: 30px;
        border-top: 1px solid var(--light-gray);
        padding-top: 20px;
        width: 100%;
    }

    .nav-social a {
        color: var(--primary);
    }
    
    .navbar.scrolled .mobile-toggle {
        color: var(--primary);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .contact-info-panel {
        padding: 30px 20px;
    }
}
