/* ===================================
   RESET & BASE STYLES (globals.css integrado)
   =================================== */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

:root {
    /* Colors */
    --color-teal-primary: #36DBCA;
    --color-teal-dark: #1D756C;
    --color-teal-darker: #248D84;
    --color-black: #050505;
    --color-black-pure: #000000;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-text: #4a4a4a;
    
    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% 0%, #153835 0%, #000000 60%);
    --gradient-teal: linear-gradient(180deg, #36DBCA 0%, #248D84 100%);
    --gradient-teal-horizontal: linear-gradient(90deg, #36DBCA 0%, #1D756C 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    
    /* Typography - Responsive Font Sizes */
    --font-primary: 'Inter', 'Neue Haas Grotesk', Arial, sans-serif;
    --fs-hero-title: clamp(1.75rem, 4.5vw, 2.75rem);
    --fs-section-title: clamp(1.5rem, 3.5vw, 2.2rem);
    --fs-card-title: clamp(0.95rem, 2vw, 1.15rem);
    --fs-body: clamp(0.875rem, 1.5vw, 1rem);
    --fs-small: clamp(0.75rem, 1.2vw, 0.9rem);
    
    /* Spacing - Responsive */
    --spacing-xs: clamp(0.5rem, 2vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 2.5vw, 1rem);
    --spacing-md: clamp(1rem, 3vw, 2rem);
    --spacing-lg: clamp(2rem, 5vw, 4rem);
    --spacing-xl: clamp(3rem, 7vw, 6rem);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-capsule: 999px;
    
    /* Shadows */
    --shadow-card: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(54, 219, 202, 0.4);
    --shadow-glow-strong: 0 0 40px rgba(54, 219, 202, 0.5);
    
    /* Container widths */
    --container-max: 1400px;
    --container-constrained: 1100px;
    --container-narrow: 900px;
}

body {
    font-family:'Inter', 'Neue Haas Grotesk', Arial, sans-serif;
    color: var(--color-white);
    background-color: var(--color-black-pure);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family:'Inter', 'Neue Haas Grotesk', Arial, sans-serif;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.cta-button:focus-visible,
.nav:focus-visible {
    outline: 3px solid var(--color-teal-primary);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

/* Header Badge */
.header-badge {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.badge-line {
    width: clamp(150px, 40vw, 200px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #36DBCA, transparent);
    margin-bottom: 0.75rem;
}

.badge-text {
    background: linear-gradient(90deg, #ffffff 0%, #248D84 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(1.2rem, 3vw, 1.75rem);
    border-radius: var(--radius-capsule);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 90vw;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--spacing-sm);
}

/* Hero Title */
.hero-title {
    font-size:'Inter', 'Neue Haas Grotesk', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    max-width: 100%;
    position: relative;
    z-index: 10;
}

.hero-title .highlight {
    font-weight: 700;
    color: var(--color-teal-primary);
}

/* Hero Professionals Image */
.hero-professionals {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-bottom: var(--spacing-md);
}

.professionals-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
}

/* CTA Group */
.cta-group {
    position: relative;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: clamp(0.9rem, 2.2vw, 1.1rem) clamp(1.75rem, 4.5vw, 2.75rem);
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-capsule);
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: clamp(220px, 75%, 500px);
    max-width: 100%;
    text-align: center;
    position: relative;
}

.cta-button.primary {
    background: var(--color-teal-primary);
    color: #fff;
    box-shadow: 0 0 35px rgba(54, 219, 202, 0.6);
}

.cta-button.primary:hover {
    background: #fff;
    box-shadow: 0 0 40px rgba(54, 219, 202, 0.7);
    transform: translateY(-2px);
    color: #248D84;
}

.cta-subtitle {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

/* ===================================
   PROGRAM SECTION - GLASS BUBBLE EFFECT
   =================================== */
.program-section {
    position: relative;
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #0f2f2c 25%,
        #1e6f67 100%
    );
    padding: var(--spacing-xl) var(--spacing-sm) 120px;
}

.program-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(54, 219, 202, 0.3) 0%,
        rgba(36, 141, 132, 0.2) 30%,
        rgba(26, 93, 88, 0.1) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.program-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: linear-gradient(
        to top,
        #000000 0%,
        rgba(0, 0, 0, 0.55) 25%,
        rgba(30, 111, 103, 0.25) 55%,
        rgba(30, 111, 103, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.container-constrained {
    max-width: var(--container-constrained);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.section-title {
    font-size: var(--fs-section-title);
    font-weight: 700;
    text-align: center;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
    padding: 0 var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title.white {
    color: var(--color-white);
}

.section-title.left-align {
    text-align: left;
}

/* Glass Morphism Bubble */
.program-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(35px, 6vw, 60px);
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
        0 0 80px rgba(54, 219, 202, 0.2);
}

.program-wrapper::before {
    content: '';
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 35%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 100%
    );
    border-radius: clamp(35px, 6vw, 60px) clamp(35px, 6vw, 60px) 50% 50%;
    pointer-events: none;
    filter: blur(2px);
}

.program-wrapper::after {
    content: '';
    position: absolute;
    top: 15%;
    left: -1px;
    width: 4px;
    height: 40%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 80%,
        transparent 100%
    );
    border-radius: 4px;
    pointer-events: none;
    filter: blur(1px);
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: var(--spacing-lg);
}

.program-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: clamp(16px, 3vw, 20px);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(54, 219, 202, 0.3);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: var(--spacing-sm);
    padding-bottom: 1rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-teal-primary) 50%,
        transparent 100%
    );
}

.card-icon {
    flex-shrink: 0;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: var(--fs-card-title);
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.card-title-highlight {
    background: linear-gradient(90deg, var(--color-teal-dark), #4fd1c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.card-description {
    font-size: var(--fs-body);
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    padding-top: 1rem;
}

.card-footer {
    display: flex;
    justify-content: center;
}

.card-date {
    background: var(--color-teal-dark);
    color: #fff;
    font-size: clamp(0.7rem, 1.3vw, 0.75rem);
    font-weight: 700;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1rem, 2vw, 1.3rem);
    border-radius: var(--radius-capsule);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* CTA Button Container */
.button-center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.button-center-container .cta-button {
    width: clamp(240px, 65%, 420px);
    max-width: 100%;
    padding: clamp(0.9rem, 2vw, 1rem) clamp(2rem, 4vw, 3rem);
    white-space: nowrap;
}

.cta-button.large {
    position: relative;
    background: linear-gradient(135deg, #1a7a73 0%, #26b3a4 50%, #36DBCA 100%);
    border: none;
    color: #fff;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: clamp(1rem, 2vw, 1.15rem) clamp(2.25rem, 4vw, 3.25rem);
    border-radius: 22px;    
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button.large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-button.large:hover::before {
    left: 100%;
}

.cta-button.large:hover {
    background: linear-gradient(135deg, #1f8d83 0%, #2ec9b8 50%, #4de8d6 100%);
    box-shadow: 0 8px 35px rgba(54, 219, 202, 0.6),
                0 0 50px rgba(54, 219, 202, 0.4);
    transform: translateY(-3px);
}

.shadow-glow {
    box-shadow: 0 4px 30px rgba(54, 219, 202, 0.5),
                0 0 60px rgba(54, 219, 202, 0.2);
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 30px rgba(54, 219, 202, 0.5), 
                    0 0 60px rgba(54, 219, 202, 0.2); 
    }
    50% { 
        box-shadow: 0 4px 40px rgba(54, 219, 202, 0.7), 
                    0 0 80px rgba(54, 219, 202, 0.35); 
    }
}

.program-footer-links {
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.program-footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-footer-links a:hover {
    color: var(--color-teal-primary);
}

/* ===================================
   WHY SECTION
   =================================== */
.why-section {
    background: #080808;
    padding: var(--spacing-xl) var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-badge {
    border: 1px solid rgba(54, 219, 202, 0.4);
    background: rgba(54, 219, 202, 0.05);
    padding: clamp(0.6rem, 1.5vw, 0.7rem) clamp(1.75rem, 3vw, 2.25rem);
    border-radius: var(--radius-capsule);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 0 15px rgba(54, 219, 202, 0.1);
}

.badge-content {
    background: linear-gradient(to top, #248D84 50%, #36DBCA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    width: clamp(50px, 8vw, 60px);
}

.feature-text {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.85);
    max-width: 350px;
    line-height: 1.7;
}

/* ===================================
   EXPERTS SECTION
   =================================== */
.experts-section {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.experts-text {
    font-size: clamp(1.75rem, 4.5vw, 2.25rem);
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.highlight-white {
    background: linear-gradient(to right, #248D84 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight-whitex {
    background: linear-gradient(to right, #248D84 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight-teal {
    color: var(--color-teal-primary);
    font-weight: 700;
}

.experts-subtext {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

/* ===================================
   EXPERTS SLIDER
   =================================== */
.experts-slider-container {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    max-width: 100%;
}

.experts-slider-track {
    display: flex;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.expert-profiles {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1.5rem, 3vw, 2rem);
    justify-content: flex-start;
    align-items: center;
}

/* Expert Card - MOBILE FIRST */
.expert-card {
    width: 420px;
    min-height: 200px;
    height: auto;
    flex-shrink: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 35, 35, 0.95) 0%,
        rgba(10, 35, 35, 0.85) 50%,
        rgba(10, 35, 35, 0.75) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(54, 219, 202, 0.25);
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    filter: blur(1px);
    transform: scale(0.94);
    transition:
        transform 0.55s cubic-bezier(.22,.61,.36,1),
        opacity 0.45s ease,
        filter 0.45s ease,
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
}

.expert-card:hover {
    transform: translateY(-3px) scale(0.96);
    border-color: rgba(54, 219, 202, 0.35);
}

.expert-image {
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 16px;
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    transition: 
        opacity 0.4s ease,
        transform 0.4s ease;
}

.expert-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
    position: relative;
}

.expert-info h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #36DBCA 0%, #FFFFFF 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.expert-title {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.expert-description {
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Active Card */
.expert-card.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(54, 219, 202, 0.45);
    box-shadow: 
        0 20px 50px rgba(54, 219, 202, 0.3),
        0 0 60px rgba(54, 219, 202, 0.15);
}

.expert-card.active:hover {
    transform: translateY(-16px) scale(1.04);
    border-color: rgba(54, 219, 202, 0.55);
}

.expert-card.active .expert-image img {
    opacity: 0.95;
}

/* Navigation Buttons */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 20, 20, 0.8);
    border: 1px solid rgba(54, 219, 202, 0.35);
    color: #36DBCA;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition:
        transform 0.35s cubic-bezier(.22,.61,.36,1),
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.nav:hover {
    background: rgba(54, 219, 202, 0.15);
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 12px 35px rgba(54, 219, 202, 0.4),
        inset 0 0 0 1px rgba(54, 219, 202, 0.4);
}

.nav:active {
    transform: translateY(-50%) scale(1.02);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media (hover: none) and (pointer: coarse) {
    .nav {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    background: #000;
    padding: var(--spacing-xl) var(--spacing-sm);
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.contact-split {
    max-width: var(--container-constrained);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.contact-subtitle {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.form-input {
    width: 100%;
    padding: clamp(1rem, 2.2vw, 1.15rem) clamp(1.3rem, 2.8vw, 1.6rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-capsule);
    color: #fff;
    font-size: var(--fs-body);
    transition: all 0.3s ease;
}

.form-input option {
    color: #36DBCA;
    background-color: #000000;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-teal-primary);
    box-shadow: 0 0 15px rgba(54, 219, 202, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.form-error {
    display: block;
    color: #ff6b6b;
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.form-success {
    background: rgba(54, 219, 202, 0.1);
    border: 1px solid var(--color-teal-primary);
    color: var(--color-teal-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.btn-loading {
    display: none;
}

/* Certificate Preview */
.certificate-preview {
    text-align: center;
}

.certificate-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
}

.certificate-text h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

.certificate-text p {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.certificate-motto {
    margin-top: var(--spacing-md);
    font-weight: 700;
    color: #fff;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    position: relative;
    background: #030808;
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(54, 219, 202, 0.5), transparent);
}

.footer-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 80px;
    background: radial-gradient(ellipse at top, rgba(54, 219, 202, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main {
    max-width: var(--container-constrained);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.footer-logo-text {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.footer-logo-highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #36DBCA 0%, #248D84 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-teal-primary);
    border-color: rgba(54, 219, 202, 0.4);
    background: rgba(54, 219, 202, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(54, 219, 202, 0.15);
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-links-group {
    text-align: center;
}

.footer-heading {
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-teal-primary);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.footer-divider {
    max-width: var(--container-constrained);
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.08) 80%,
        transparent 100%
    );
}

.footer-bottom {
    max-width: var(--container-constrained);
    margin: 0 auto;
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-copy {
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    color: rgba(255, 255, 255, 0.4);
}

.footer-motto {
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #248D84, #36DBCA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   FLOATING WHATSAPP BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 70px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ===================================
   THANK YOU MODAL
   FIX: Usa visibility + pointer-events en vez de display:none
   para permitir transición de opacity
   =================================== */
.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thank-you-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #0a2323 0%, #153835 100%);
    border: 2px solid rgba(54, 219, 202, 0.3);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(54, 219, 202, 0.3);
    animation: modalSlideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-teal-primary);
}

.modal-icon {
    margin: 0 auto 1.5rem;
    animation: checkBounce 0.6s ease 0.2s;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    background: linear-gradient(135deg, #36DBCA 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.modal-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-highlight {
    background: rgba(54, 219, 202, 0.05);
    border: 1px solid rgba(54, 219, 202, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.modal-highlight strong {
    color: var(--color-teal-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.modal-highlight ul {
    list-style: none;
    padding: 0;
}

.modal-highlight li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-highlight li::before {
    content: '✓';
    color: var(--color-teal-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-social {
    margin-bottom: 2rem;
}

.modal-social p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-btn.whatsapp {
    background: #25D366;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-content .cta-button {
    margin-top: 0;
    width: auto;
    min-width: 200px;
}
/*Fin del Modal*/

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 219, 84, 0.6);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===================================
   TABLET BREAKPOINT (768px - 991px)
   =================================== */
@media (min-width: 768px) and (max-width: 991px) {
    
    .program-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .contact-split {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-links-group {
        text-align: left;
    }

    .expert-card {
        width: 420px;
        padding: 2rem;
        flex-direction: row;
        text-align: left;
    }

    .expert-image {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 38%;
        height: 100%;
        margin-bottom: 0;
        border-radius: 0 24px 24px 0;
    }

    .expert-info {
        padding-right: 42%;
    }
}

/* ===================================
   DESKTOP BREAKPOINT (992px+)
   =================================== */
@media (min-width: 992px) {

    .container-constrained {
        max-width: 1280px;
        margin: 0 auto;
    }

    .program-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .contact-split {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
        align-items: center;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
        text-align: left;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-links-group {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Expert cards desktop layout */
    .expert-card {
        width: 750px;
        height: 350px;        
        flex-direction: row;
        text-align: left;
        padding: 2.25rem;
    }

    .expert-image {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 38%;
        height: 100%;
        border-radius: 0 24px 24px 0;
    }

    .expert-image::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100px;
        background: linear-gradient(
            90deg,
            rgba(9, 31, 31, 0.95) 0%,
            transparent 100%
        );
        z-index: 2;
    }

    .expert-info {
        padding-right: 42%;
        justify-content: center;
    }
}

/* ===================================
   LARGE DESKTOP (1200px+)
   =================================== */
@media (min-width: 1200px) {

    .container-constrained {
        max-width: 1320px;
    }

    .program-grid,
    .features-grid {
        gap: 4rem;
    }

    .contact-split {
        gap: 5rem;
    }
    
}

/* ===================================
   MOBILE SPECIFIC FIXES
   =================================== */
@media (max-width: 767px) {
    
    .program-section {
        padding-bottom: 100px;
    }

    .program-section::after {
        height: 60px;
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .professionals-image {
        max-height: 60vh;
    }
    .whatsapp-float {
        bottom: 24px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 30px;
        z-index: 10000 !important;
        display: flex !important;
    }
}

/* ===================================
   EXTRA SMALL MOBILE (< 375px)
   =================================== */
@media (max-width: 374px) {
    
    .cta-button {
        font-size: 0.75rem;
        padding: 0.85rem 1.5rem;
    }

    .expert-card {
        width: min(380px, 90vw);
    }

    .nav {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}