/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    --primary-color: #1f3d2b; /* Verde oscuro */
    --primary-light: #2c563e;
    --secondary-color: #f5f5dc; /* Beige / arena */
    --accent-color: #d4a373; /* Un tono cálido para acentos */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #fafaf5;
    --white: #ffffff;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.target-section {
    padding: 6rem 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.primary-cta {
    background-color: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.primary-cta:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

.outline-cta {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.outline-cta:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.giant-cta {
    background-color: var(--whatsapp);
    color: var(--white);
    font-size: 1.4rem;
    padding: 18px 40px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.giant-cta:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(31, 61, 43, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

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

.nav-links a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 40, 25, 0.8), rgba(31, 61, 43, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    color: var(--white);
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 .highlight {
    color: var(--secondary-color);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* ==========================================================================
   Beneficios
   ========================================================================== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.beneficio-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.beneficio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.beneficio-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.beneficio-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.beneficio-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.beneficio-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Precios
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.pricing-card.premium {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border: none;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.premium .pricing-header h3 {
    color: var(--secondary-color);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    line-height: 1;
    color: var(--primary-color);
}

.premium .pricing-price {
    color: var(--white);
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: -10px;
    margin-right: 2px;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.premium .pricing-price .period {
    color: rgba(255,255,255,0.7);
}

.pricing-details {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pricing-details .enganche {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.pricing-details .mensualidad {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.premium .pricing-features li {
    color: rgba(255,255,255,0.9);
}

.pricing-features i {
    color: var(--primary-color);
    background: var(--secondary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.premium .pricing-features i {
    color: var(--secondary-color);
    background: rgba(255,255,255,0.1);
}

.pricing-card .cta-button {
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   Galeria
   ========================================================================== */
.custom-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background-color: #eee;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 61, 43, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Ubicacion
   ========================================================================== */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-text {
    padding: 50px 50px 50px 60px;
}

.location-text h2 {
    text-align: left;
}

.loc-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.loc-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.loc-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--primary-color);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245,245,220,0.1) 0%, rgba(31,61,43,0) 70%);
    z-index: 0;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #122419;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    transform: scale(1.1);
    color: #fff;
    animation: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .target-section { padding: 4rem 0; }
    .hero h1 { font-size: 3rem; }
    .location-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .location-text { padding: 40px; }
    .grid-2 { max-width: 600px; }
    .pricing-card.premium { transform: scale(1); }
    .pricing-card.premium:hover { transform: translateY(-5px); }
    .pricing-badge { right: 20px; }
}

@media (max-width: 768px) {
    .target-section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    
    .hamburger { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .nav-links.active {
        max-height: 400px;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .grid-2, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
    
    .final-cta { padding: 60px 0; }
    .final-cta h2 { font-size: 2rem; }
    .giant-cta { padding: 15px 30px; font-size: 1.2rem; }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .hero { min-height: 500px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .target-section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }
    h2 { font-size: 2.2rem; }
    
    .hero h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-subtitle { font-size: 1.1rem; margin-bottom: 25px; }
    .cta-button { padding: 10px 20px; font-size: 1rem; width: 100%; display: flex; }
    .primary-cta { margin-bottom: 10px; }
    .giant-cta { font-size: 1.1rem; padding: 14px 20px; }
    
    .beneficio-card { padding: 30px 20px; }
    .icon-wrapper { width: 60px; height: 60px; font-size: 1.5rem; }
    
    .pricing-card { padding: 30px 20px; }
    .pricing-price { font-size: 2.8rem; }
    .pricing-header h3 { font-size: 1.5rem; }
    
    .location-text { padding: 25px 15px; }
    .loc-feature { width: 100%; justify-content: center; }
    
    .custom-gallery { gap: 10px; }
    .gallery-overlay i { transform: scale(0.4); font-size: 2rem; }
    
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-contact p { justify-content: center; }
}
