:root {
    --primary: #81C784; /* Verde salud */
    --primary-hover: #66BB6A;
    --secondary: #B39DDB; /* Lavanda principal */
    --accent: #4A148C; /* Morado oscuro para botones y acentos */
    --bg-light: #EDE7F6; /* Lavanda suave */
    --bg-alt: #E8F5E9; /* Verde menta */
    --white: #ffffff;
    --text-main: #3D3248; /* Texto principal */
    --text-muted: #6B7280; /* Texto secundario */
    --transition: all 0.4s ease-in-out;
    --border-radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.75;
    font-size: 1rem;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.08) contrast(1.05) saturate(1.2);
    transition: filter 0.4s ease, transform var(--transition);
}

img:hover {
    filter: brightness(1.12) contrast(1.08) saturate(1.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1002;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.logo img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--secondary);
}

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

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    width: 30px;
    height: 21px;
    flex-shrink: 0;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 0; /* Añadido padding top para el header fijo */
    background: linear-gradient(160deg, var(--bg-light) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-image {
    flex: 1;
    height: 80vh;
    max-height: 700px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(179,157,219,0.15);
    animation: fadeInRight 1.2s ease forwards;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(179,157,219,0.25) 0%, rgba(129,199,132,0.15) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero:hover .hero-image img {
    transform: scale(1.05);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--primary);
    color: #1B5E20;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(129, 199, 132, 0.2);
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(129, 199, 132, 0.3);
    background-color: var(--primary-hover);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--accent);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(179, 157, 219, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* ============================================
   ABOUT / NOSOTROS SECTION
   ============================================ */
.about {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    background-color: #f3f2ed;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   CLASSES / CLASES SECTION
   ============================================ */
.classes {
    padding: 8rem 0;
    background-color: var(--bg-alt);
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.classes-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.class-feature {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--white);
    border: 1px solid var(--bg-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(179,157,219,0.15);
    padding: 2.5rem;
}

.class-feature.reverse {
    flex-direction: row-reverse;
}

.class-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.class-text {
    flex: 1;
}

.category-tag {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.class-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.class-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   GALLERY / GALERÍA SECTION
   ============================================ */
.gallery {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.instagram-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
    transition: var(--transition);
}

.instagram-link:hover {
    color: var(--primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 8rem 0;
    background-color: var(--bg-alt);
}

.contact-card {
    background-color: var(--accent);
    color: var(--white);
    padding: 5rem 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.contact-card p {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item strong {
    opacity: 0.7;
    font-weight: 400;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contact-item a:hover {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 3rem 0;
    text-align: center;
    background-color: #3D3248;
    border-top: none;
}

footer p {
    font-size: 0.8rem;
    color: #EDE7F6;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Instagram image style */
.insta-img {
    transition: var(--transition);
}

.insta-img:hover {
    transform: scale(1.02);
}

/* Eliminado filtro opaco/desaturado, ahora el estilo global de "img" aplica el filtro vibrante y luminoso */

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   RESPONSIVE — LARGE TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        padding: 0 4%;
    }

    .hero-content {
        padding-right: 3rem;
    }

    .hero-image {
        height: 60vh;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .classes-container {
        gap: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .nav-links li {
        margin-left: 1.5rem;
    }

    .contact-card {
        padding: 4rem 3rem;
    }

    .about,
    .classes,
    .gallery,
    .contact {
        padding: 6rem 0;
    }
}

/* ============================================
   RESPONSIVE — SMALL TABLET (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 7rem 5% 3rem;
        min-height: 100vh;
        gap: 2rem;
        justify-content: center;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 100%;
        height: 45vh;
        border-radius: 20px;
        flex-shrink: 0;
    }

    .class-feature, .class-feature.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .class-image {
        width: 100%;
        height: 350px;
    }

    .class-text h3 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE — TABLET PORTRAIT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* -- Navigation Mobile -- */
    nav {
        padding: 1rem 5%;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
        z-index: 1002;
    }

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        background-color: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 1.5rem 0;
        margin-left: 0;
        opacity: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 400;
        letter-spacing: 1px;
    }

    /* Burger animation to X */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* -- Hero Mobile -- */
    .hero {
        flex-direction: column-reverse;
        padding: 6rem 5% 3rem;
        min-height: 100vh;
        min-height: 100dvh;
        gap: 2rem;
        justify-content: center;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 100%;
        height: 40vh;
        border-radius: 16px;
        flex-shrink: 0;
    }

    .hero-content .btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* -- About Mobile -- */
    .about {
        padding: 5rem 0;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 1.8rem;
    }

    /* -- Classes Mobile -- */
    .classes {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .classes-container {
        gap: 3rem;
    }

    .class-image {
        height: 280px;
        border-radius: 12px;
    }

    .class-text h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .class-text p {
        font-size: 0.95rem;
    }

    /* -- Gallery Mobile -- */
    .gallery {
        padding: 5rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .gallery-item {
        border-radius: 16px;
    }

    /* -- Contact Mobile -- */
    .contact {
        padding: 5rem 0;
    }

    .contact-card {
        padding: 3rem 1.5rem;
        border-radius: 16px;
    }

    /* -- Footer Mobile -- */
    footer {
        padding: 2rem 0;
    }

    /* -- WhatsApp Float Mobile -- */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* -- Container Mobile -- */
    .container {
        padding: 0 1.25rem;
    }

    .subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero {
        padding: 5.5rem 4% 2rem;
        gap: 1.5rem;
    }

    .hero-image {
        height: 35vh;
    }

    .hero-content .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .about,
    .classes,
    .gallery,
    .contact {
        padding: 4rem 0;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 2.5rem 1.25rem;
    }

    .gallery-grid {
        gap: 0.5rem;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .social-links a {
        font-size: 0.8rem;
    }
}

/* ============================================
   RESPONSIVE — LARGE DESKTOP (min-width: 1440px)
   ============================================ */
@media (min-width: 1440px) {
    .hero {
        padding: 0 8%;
    }

    .hero-content {
        padding-right: 6rem;
    }

    .container {
        max-width: 1300px;
    }
}
