/* CSS Variables - Color Palette & Typography */
:root {
    /* Colors */
    --clr-primary: #6e7b60;
    /* Muted green */
    --clr-primary-dark: #5a644f;
    --clr-bg: #FCFBF9;
    /* Off-white / Cream */
    --clr-bg-alt: #F4F1ED;
    /* Light gray/cream for alternating sections */
    --clr-text: #333333;
    /* Dark gray */
    --clr-text-light: #666666;
    --clr-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-logo-script: 'Allison', cursive;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --nav-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    touch-action: manipulation; /* Previene el zoom por doble toque */
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--clr-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 164, 153, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-text);
}

.btn-full {
    width: 100%;
}

/* Pricing buttons adjustment */
.pricing .btn-outline {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.pricing .btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

/* Splash Screen Animation */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    perspective: 1200px;
    pointer-events: none; /* Let clicks pass through after it hides */
}

.splash-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--clr-primary);
    z-index: 10000;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform-style: preserve-3d;
}

.splash-left {
    left: 0;
    transform-origin: left center;
}

.splash-right {
    right: 0;
    transform-origin: right center;
}

.splash-content {
    position: relative;
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.splash-text-logo {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.splash-text-logo .logo-espacio {
    font-family: var(--font-body);
    font-size: 8rem;
    font-weight: 400;
    color: var(--clr-white);
    line-height: 1;
    z-index: 2;
    margin-top: -2rem;
    margin-right: 3rem;
}

.splash-text-logo .logo-sentir {
    font-family: var(--font-logo-script);
    font-size: 13rem;
    color: #e5e7df; /* Light cream to match photo */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -25%) scaleX(0.85);
    line-height: 0.8;
    z-index: 1; /* Detrás de la E */
}

@media (max-width: 768px) {
    .splash-text-logo {
        transform: scale(0.7);
    }
}

/* Animation Classes added via JS */
.splash-screen.loaded .splash-left {
    transform: rotateY(-90deg);
}

.splash-screen.loaded .splash-right {
    transform: rotateY(90deg);
}

.splash-screen.loaded .splash-content {
    opacity: 0;
}

.splash-screen.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--clr-white);
    text-decoration: none;
    text-align: left;
}

.header.scrolled .logo {
    color: var(--clr-text);
}

.logo .logo-espacio {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em; /* Reduced spacing */
    margin-bottom: -1.2rem;
    color: var(--clr-primary); /* Green color */
    position: relative;
    z-index: 2;
}

.logo .logo-sentir {
    font-family: var(--font-logo-script);
    font-size: 3.5rem;
    color: var(--clr-primary);
    font-weight: 400;
    line-height: 0.8;
    margin-left: 0.8rem;
    position: relative;
    z-index: 1;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--clr-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--clr-white);
}

.header.scrolled .bar {
    background-color: var(--clr-text);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('../images/5.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--clr-white);
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--clr-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(216, 164, 153, 0.15);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: var(--clr-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
}

/* Classes Section */
.classes-swiper {
    padding-bottom: 3rem; /* Space for pagination */
}

/* Customize Swiper Navigation & Pagination */
.swiper-pagination-bullet-active {
    background-color: var(--clr-primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--clr-primary) !important;
}

.class-card {
    background-color: var(--clr-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.class-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.class-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-card:hover .class-img-wrapper img {
    transform: scale(1.05);
    /* Hover scale effect */
}

.class-content {
    padding: 2rem;
}

/* Pricing Section */
.pricing-swiper {
    padding-bottom: 50px; /* Room for pagination dots */
    padding-top: 20px; /* Room for the scaling of popular card */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: var(--clr-white);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--clr-bg-alt);
    position: relative;
}

.pricing-card.popular {
    background-color: var(--clr-bg);
    border: 2px solid var(--clr-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(216, 164, 153, 0.1);
    z-index: 2;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-text);
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price span {
    font-size: 1.5rem;
    margin-top: 5px;
}

.price .period {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-text-light);
    align-self: flex-end;
    margin-bottom: 10px;
}

.features {
    margin-bottom: 2rem;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--clr-bg-alt);
    color: var(--clr-text-light);
}

.features li:last-child {
    border-bottom: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-container {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px; /* Específicamente 16px previene el auto-zoom en iOS al hacer foco */
    transition: var(--transition-smooth);
    background-color: var(--clr-bg-alt);
    touch-action: manipulation;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(216, 164, 153, 0.2);
}

/* Validation styles */
.form-group.error input {
    border-color: #e74c3c;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none;
}

.contact-info .info-block {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-container {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #222222;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo .logo-espacio {
    color: var(--clr-white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
}

.social-links a:hover {
    background-color: var(--clr-primary);
}

.footer-links h4 {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--clr-text);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--clr-text);
    }

    .nav {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--clr-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        color: var(--clr-text);
        font-size: 1.2rem;
    }

    /* Change header background when menu is open */
    .header.menu-open {
        background-color: var(--clr-bg);
    }

    .header.menu-open .logo {
        color: var(--clr-text);
    }

    .hero {
        background-attachment: scroll; /* Fixes iOS Safari background-size: cover zoom issue */
        min-height: 500px; /* Better fit for smaller screens */
        background-position: center center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}