/* ==========================================================================
   HEALTH CARE GROUP VAFER - CSS SYSTEM (Pro Max & Taste Skill)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #F43B60;
    --primary-dark: #C2185B;
    --primary-light: #FF8DA1;
    --secondary: #FFF0F3;
    --secondary-dark: #FFCCD5;
    --accent: #F43B60;
    --accent-hover: #D81B60;
    --bg-main: #FFFDFD;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --text-light: #FFFFFF;
    
    /* Layout & Styling Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(244, 59, 96, 0.04), 0 2px 4px -1px rgba(244, 59, 96, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(244, 59, 96, 0.06), 0 4px 6px -2px rgba(244, 59, 96, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(244, 59, 96, 0.1), 0 10px 10px -5px rgba(244, 59, 96, 0.03);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Global Interactive Background Hover Spotlight */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(750px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(244, 59, 96, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mouse-active::after {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

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

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

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

.container-wide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION / HEADER — Modern Floating Pill Design
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

/* Inner nav wrapper floats as a pill */
.header .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--border-radius-pill);
    padding: 10px 20px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 24px rgba(244, 59, 96, 0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
    transition: var(--transition);
}

.header.scrolled .container-wide {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(244, 59, 96, 0.1), 0 1px 0 rgba(255,255,255,0.8) inset;
    border-color: rgba(244, 59, 96, 0.12);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 36px;
}

/* Nav links center group */
.nav-links-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(244, 59, 96, 0.05);
    border-radius: var(--border-radius-pill);
    padding: 4px;
}

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

.nav-menu li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    padding: 7px 16px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition);
    display: block;
    letter-spacing: 0.01em;
}

.nav-menu li a:hover {
    color: var(--accent);
    background: rgba(244, 59, 96, 0.08);
}

.nav-menu li a.active {
    color: var(--accent);
    background: rgba(244, 59, 96, 0.1);
}

/* Right actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-hover) 100%);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(244, 59, 96, 0.3);
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 59, 96, 0.4);
    color: var(--text-light);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(244, 59, 96, 0.15);
    transition: var(--transition);
}

.lang-switch:hover {
    background-color: var(--secondary-dark);
    color: var(--accent);
    border-color: rgba(244, 59, 96, 0.3);
}

.lang-flag {
    width: 18px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Status dot — live indicator */
.nav-live-dot {
    display: none;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1); }
}

/* Hamburguesa (móvil) */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
    display: block;
}

/* ==========================================================================
   HERO SECTION (SECTION TOP)
   ========================================================================== */

.section-top {
    height: 100dvh;
    min-height: 680px;
    padding-top: 110px;
    padding-bottom: 110px; /* Increased from 80px to 110px to accommodate taller waves beautifully */
    background-color: #FFFCFC;
    background-image: 
        /* Gorgeous ultra-soft glowing organic blobs (Geometric diagonal grid pattern completely removed) */
        radial-gradient(circle at 85% 30%, rgba(244, 59, 96, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 15% 75%, rgba(244, 59, 96, 0.05) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}



.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: left;
    max-width: 650px;
    position: relative;
    z-index: 15;
}

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-main);
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-family: var(--font-body);
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(44, 62, 80, 0.82);
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--accent);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 8px 24px rgba(244, 59, 96, 0.45);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.contact-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(244, 59, 96, 0.6);
    color: var(--text-light);
}

.secondary-hero-btn {
    display: inline-block;
    padding: 18px 36px;
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: var(--border-radius-pill);
    border: 2px solid rgba(244, 59, 96, 0.25);
    box-shadow: 0 4px 15px rgba(244, 59, 96, 0.02);
    transition: var(--transition);
}

.secondary-hero-btn:hover {
    background-color: rgba(244, 59, 96, 0.06);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(244, 59, 96, 0.08);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 100%;
}

.hero-img-element {
    max-width: 110%;
    height: auto;
    max-height: 82vh; /* Significantly increased to make Valeria taller and wider */
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(244, 59, 96, 0.12)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
    animation: heroFloat 6s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Wave Divider */
.hero-wave-divider {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 12;
}

.hero-wave-divider svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 205px; /* Extended to 145px to grow the waves vertically and integrate beautifully */
    transition: var(--transition);
}

.hero-wave-divider .shape-fill {
    fill: #F43B60;
}

/* Responsive adjustments for Hero Grid */
@media (max-width: 991px) {
    .section-top {
        padding-top: 130px;
        padding-bottom: 100px;
        height: auto;
        min-height: 100dvh;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-container {
        max-height: 480px;
        align-items: flex-end;
    }
    
    .hero-img-element {
        max-height: 460px;
    }
    
    .hero-wave-divider svg {
        height: 95px; /* Extended to 95px on mobile for a taller, premium proportional wave */
    }
}

/* ==========================================================================
   SERVICES SECTION — Wave Cards (Premium Redesign)
   ========================================================================== */

.section-info {
    padding: 110px 0 120px;
    background: linear-gradient(180deg, #FFFDFD 0%, #FFF0F3 50%, #FFFDFD 100%);
    position: relative;
    overflow: hidden;
}

.section-info::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(244, 59, 96, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 30px;
    height: 1.5px;
    background: var(--accent);
    opacity: 0.5;
    display: inline-block;
}

.section-title-wrapper h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-title-wrapper h2 span {
    color: var(--primary);
}

.section-title-wrapper p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- Premium Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    grid-template-rows: auto auto;
    gap: 18px;
    align-items: stretch;
}

/* Standard feature card */
.feature-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 28px;
    border: 1px solid rgba(244, 59, 96, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.35s ease;
    border-radius: 0 0 0 20px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(244, 59, 96, 0.09), 0 4px 12px rgba(0,0,0,0.05);
    border-color: rgba(244, 59, 96, 0.16);
}

.feature-card:hover::after {
    width: 100%;
}

/* Card header row: num + icon */
.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-card-num {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(244, 59, 96, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.feature-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-card-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    fill: none;
}

.feature-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}

.feature-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
}

.feature-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 4px;
    align-self: flex-start;
}

/* Icon color variants */
.feature-card.c-violet .feature-card-icon { background: rgba(124, 77, 255, 0.08); }
.feature-card.c-violet .feature-card-icon svg { stroke: #7C4DFF; }
.feature-card.c-violet .feature-card-tag { background: rgba(124, 77, 255, 0.08); color: #7C4DFF; }

.feature-card.c-rose .feature-card-icon { background: rgba(244, 59, 96, 0.08); }
.feature-card.c-rose .feature-card-icon svg { stroke: var(--primary); }
.feature-card.c-rose .feature-card-tag { background: rgba(244, 59, 96, 0.08); color: var(--primary); }

.feature-card.c-teal .feature-card-icon { background: rgba(0, 137, 123, 0.08); }
.feature-card.c-teal .feature-card-icon svg { stroke: #00897B; }
.feature-card.c-teal .feature-card-tag { background: rgba(0, 137, 123, 0.08); color: #00897B; }

.feature-card.c-amber .feature-card-icon { background: rgba(245, 158, 11, 0.08); }
.feature-card.c-amber .feature-card-icon svg { stroke: #D97706; }
.feature-card.c-amber .feature-card-tag { background: rgba(245, 158, 11, 0.08); color: #D97706; }

/* ---- FEATURED CARD (spans 2 rows) ---- */
.feature-card.featured {
    grid-row: span 2;
    background: linear-gradient(165deg, #FB7DA0 0%, #F43B60 40%, #C2185B 100%);
    border-color: transparent;
    box-shadow: 0 24px 70px rgba(244, 59, 96, 0.32), 0 8px 20px rgba(194, 24, 91, 0.2);
    align-items: center;
    text-align: center;
    padding: 44px 32px;
    gap: 0;
    justify-content: flex-start;
}

.feature-card.featured:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 36px 90px rgba(244, 59, 96, 0.4), 0 12px 28px rgba(194, 24, 91, 0.25);
    border-color: transparent;
}

.feature-card.featured::after { display: none; }

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.featured-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    animation: pulse-dot 2s ease-in-out infinite;
}

.featured-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: transform 0.3s ease;
}

.feature-card.featured .featured-icon-wrap {
    width: 100%;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
}

.feature-card.featured:hover .featured-icon-wrap {
    transform: none;
}

.featured-icon-wrap svg {
    width: 36px;
    height: 36px;
    stroke: #FFFFFF;
    stroke-width: 1.5;
    fill: none;
}

.featured-icon-wrap .featured-logo-icon {
    width: 160px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card.featured:hover .featured-icon-wrap .featured-logo-icon {
    transform: scale(1.08);
}

.featured-price-block {
    margin-bottom: 6px;
}

.featured-price {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -3px;
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
}

.featured-price-sup {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 0;
}

.featured-price-sub {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.75;
    align-self: flex-end;
    margin-bottom: 8px;
    margin-left: 2px;
}

.featured-headline {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 240px;
}

.featured-divider {
    width: 40px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
    margin: 0 auto 24px;
}

.featured-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
    margin-bottom: 32px;
}

.featured-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.featured-perks li svg {
    width: 17px;
    height: 17px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
}

.featured-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.featured-cta:hover {
    background: #FFFFFF;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.featured-cta svg {
    width: 15px;
    height: 15px;
    stroke: var(--primary-dark);
    fill: none;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.featured-cta:hover svg {
    transform: translateX(3px);
}

/* Card entrance animation */
.feature-card {
    animation: featureReveal 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.14s; }
.feature-card:nth-child(3) { animation-delay: 0.08s; } /* featured loads fast */
.feature-card:nth-child(4) { animation-delay: 0.22s; }
.feature-card:nth-child(5) { animation-delay: 0.30s; }

@keyframes featureReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.feature-card.featured { animation-name: featureReveal; }

/* Wave Card Base */
.wave-card {
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(244, 59, 96, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border: 1px solid rgba(244, 59, 96, 0.08);
}

.wave-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 60px rgba(244, 59, 96, 0.15), 0 8px 20px rgba(0,0,0,0.06);
}

/* Featured center card pops up */
.wave-card.featured {
    transform: translateY(-16px) scale(1.04);
    box-shadow: 0 30px 70px rgba(244, 59, 96, 0.22), 0 10px 24px rgba(0,0,0,0.08);
    border-color: rgba(244, 59, 96, 0.2);
    z-index: 2;
}

.wave-card.featured:hover {
    transform: translateY(-24px) scale(1.05);
}

/* Card top zone — icon */
.wave-card-top {
    padding: 32px 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.wave-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    background: rgba(244, 59, 96, 0.08);
}

.wave-card:hover .wave-card-icon {
    transform: scale(1.12) rotate(-4deg);
}

.wave-card.featured .wave-card-icon {
    background: rgba(255, 255, 255, 0.25);
}

.wave-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}

.wave-card.featured .wave-card-icon svg {
    stroke: #FFFFFF;
}

.wave-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0;
    line-height: 1.3;
}

.wave-card.featured .wave-card-title {
    color: #FFFFFF;
}

.wave-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-top: 14px;
    display: none; /* visible only on featured */
}

.wave-card.featured .wave-card-desc {
    display: block;
    color: rgba(255, 255, 255, 0.88);
}

/* Arrow CTA on featured */
.wave-card-arrow {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    transition: var(--transition);
}

.wave-card.featured .wave-card-arrow {
    display: flex;
}

.wave-card.featured:hover .wave-card-arrow {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
}

.wave-card-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
}

/* Wave bottom zone */
.wave-card-wave {
    position: relative;
    margin-top: auto;
    height: 110px;
    flex-shrink: 0;
}

.wave-card-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-card.featured .wave-card-wave {
    height: 0;
    display: none;
}

/* Wave tags */
.wave-card-tags {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 2;
    padding: 0 20px;
}

.wave-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.92;
}

/* Color variants for non-featured cards */
.wave-card:nth-child(1) .wave-card-wave .wave-fill { fill: #B39DDB; }
.wave-card:nth-child(1) .wave-card-icon { background: rgba(179, 157, 219, 0.12); }
.wave-card:nth-child(1) .wave-card-icon svg { stroke: #7C4DFF; }

.wave-card:nth-child(2) .wave-card-wave .wave-fill { fill: url(#waveGrad2); }
.wave-card:nth-child(2) .wave-card-icon { background: rgba(244, 59, 96, 0.1); }
.wave-card:nth-child(2) .wave-card-icon svg { stroke: var(--primary); }

.wave-card:nth-child(4) .wave-card-wave .wave-fill { fill: url(#waveGrad4); }
.wave-card:nth-child(4) .wave-card-icon { background: rgba(244, 59, 96, 0.1); }
.wave-card:nth-child(4) .wave-card-icon svg { stroke: var(--primary); }

.wave-card:nth-child(5) .wave-card-wave .wave-fill { fill: #4DB6AC; }
.wave-card:nth-child(5) .wave-card-icon { background: rgba(77, 182, 172, 0.12); }
.wave-card:nth-child(5) .wave-card-icon svg { stroke: #00897B; }

/* Featured (center) card gradient background */
.wave-card.featured {
    background: linear-gradient(160deg, #F87096 0%, #F43B60 50%, #C2185B 100%);
}

/* Stagger entrance animation */
.wave-card {
    animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.wave-card:nth-child(1) { animation-delay: 0.05s; }
.wave-card:nth-child(2) { animation-delay: 0.12s; }
.wave-card:nth-child(3) { animation-delay: 0.18s; }
.wave-card:nth-child(4) { animation-delay: 0.25s; }
.wave-card:nth-child(5) { animation-delay: 0.32s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Featured card overrides the stagger */
.wave-card.featured {
    animation-name: cardRevealFeatured;
}
@keyframes cardRevealFeatured {
    from { opacity: 0; transform: translateY(30px) scale(1.02); }
    to   { opacity: 1; transform: translateY(-16px) scale(1.04); }
}

/* ==========================================================================
   BANNER & CTA SECTION
   ========================================================================== */

.section-banner-cta {
    padding: 100px 0;
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.banner-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.banner-graphic-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.banner-graphic-wrapper::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(244, 59, 96, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.banner-img-element {
    max-height: 480px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08)) drop-shadow(0 5px 10px rgba(244, 59, 96, 0.05));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-graphic-wrapper:hover .banner-img-element {
    transform: translateY(-8px) scale(1.02);
}

/* ==========================================================================
   CONTACT FORM SECTION (GLASSMORPHISM)
   ========================================================================== */

.section-contact {
    min-height: 100vh;
    padding: 120px 0;
    background: linear-gradient(rgba(194, 24, 91, 0.85) 0%, rgba(58, 12, 21, 0.95) 100%), 
                url('../images/1.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info-text {
    color: var(--text-light);
}

.contact-info-text h2 {
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.contact-info-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-bullets li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-bullets li svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.glass-form-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-form-card h3 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 59, 96, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--accent);
    margin-top: 2px;
}

.checkbox-label-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: justify;
    line-height: 1.5;
}

.checkbox-label-text a {
    color: #FF8DA1;
    font-weight: 600;
    text-decoration: underline;
}

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

.form-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(244, 59, 96, 0.3);
    transition: var(--transition);
}

.form-submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 59, 96, 0.45);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-section {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-link {
    display: block;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   COOKIE CONSENT BOX (GLASSMORPHISM)
   ========================================================================== */

.aviso-cookies {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: calc(100% - 60px);
    max-width: 350px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 59, 96, 0.12);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    text-align: center;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: var(--transition-slow);
}

.aviso-cookies.activo {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.aviso-cookies .galleta {
    width: 64px;
    height: 64px;
    margin: -60px auto 16px auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.aviso-cookies .titulo {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.aviso-cookies .parrafo {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-btn-accept {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cookie-btn-accept:hover {
    background-color: var(--accent);
}

.cookie-link-policy {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link-policy:hover {
    color: var(--accent);
}

/* ==========================================================================
   FIXED ACTIONS (WHATSAPP & LANGUAGE TOGGLES)
   ========================================================================== */

.fixed-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.btn-fixed {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-fixed:hover {
    transform: scale(1.1) translateY(-4px);
}

.btn-whatsapp-fixed {
    background-color: #25D366;
}

.btn-whatsapp-fixed:hover {
    background-color: #20BA5A;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-fixed svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.btn-lang-fixed {
    background-color: var(--secondary);
    border: 1px solid rgba(244, 59, 96, 0.15);
}

.btn-lang-fixed:hover {
    background-color: var(--secondary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-lang-fixed img {
    width: 28px;
    height: auto;
    border-radius: 2px;
}

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

@media (max-width: 1024px) {
    /* Features grid: stack featured full width at 1024 */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-card.featured {
        grid-row: auto;
        grid-column: span 2;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-links-group {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-links-group {
        display: none;
    }
    
    .nav-cta-btn {
        display: none;
    }
    
    .header .container-wide {
        padding: 8px 14px;
        border-radius: 50px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100dvh;
        background-color: rgba(255, 253, 253, 0.97);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        transition: var(--transition-slow);
        padding: 40px 24px;
        border-left: 1px solid rgba(244, 59, 96, 0.1);
        z-index: 1099;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li a {
        font-size: 1.1rem;
        padding: 12px 20px;
        display: block;
    }
    
    /* Features grid — single column on mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.featured {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .banner-graphic-wrapper {
        order: -1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.featured {
        grid-column: span 1;
    }
    
    .contact-button, 
    .secondary-hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .glass-form-card {
        padding: 24px;
    }
    
    .aviso-cookies {
        bottom: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }
    
    .fixed-actions {
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   IN-PAGE MODAL SYSTEM
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

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

.modal-card {
    background: #FFFFFF;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(244, 59, 96, 0.15);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    box-shadow: 0 30px 60px rgba(244, 59, 96, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 32px;
    border-bottom: 1.5px solid rgba(244, 59, 96, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex-grow: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-main);
}

.modal-body h1 {
    display: none; /* Hide standard H1 inside modal as it is redundant with modal header */
}

.modal-body h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(244, 59, 96, 0.1);
    padding-bottom: 8px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    color: var(--primary);
}

.modal-body h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--primary);
}

.modal-body h4 {
    font-size: 1.05rem;
    margin-top: 16px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--primary);
}

.modal-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.modal-body a:hover {
    color: var(--primary-dark);
}

.modal-body .last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 24px;
}

.modal-body .list {
    font-family: monospace;
    font-size: 0.95rem;
    background-color: rgba(244, 59, 96, 0.03);
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.modal-footer {
    padding: 16px 32px;
    border-top: 1.5px solid rgba(244, 59, 96, 0.1);
    display: flex;
    justify-content: flex-end;
    background: #FFFFFF;
}

.modal-footer-btn {
    padding: 10px 24px;
    background-color: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-footer-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .modal-card {
        max-height: 90vh;
    }
    .modal-header {
        padding: 16px 20px;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
    .modal-body {
        padding: 20px;
    }
}

