/* ========================================
   VitalCore Landing CSS - Optimizado y Sin Redundancias
   ======================================== */

/* ========== Variables CSS ========== */
:root {
    /* Colores principales */
    --vc-primary: #0066FF;
    --vc-primary-dark: #0052CC;
    --vc-primary-light: #3385FF;
    --vc-secondary: #00C896;
    --vc-accent: #FF6B35;

    /* Grises */
    --vc-neutral-50: #FAFBFC;
    --vc-neutral-100: #F4F5F7;
    --vc-neutral-200: #E4E7EC;
    --vc-neutral-300: #D0D5DD;
    --vc-neutral-500: #667085;
    --vc-neutral-600: #475467;
    --vc-neutral-700: #344054;
    --vc-neutral-800: #1D2939;
    --vc-neutral-900: #101828;
    --vc-white: #FFFFFF;

    /* Espaciado */
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Tipografía */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;

    /* Sombras */
    --shadow-md: 0 4px 6px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 10px 15px rgba(16, 24, 40, 0.1);
    --shadow-2xl: 0 25px 50px rgba(16, 24, 40, 0.15);

    /* Bordes */
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transiciones */
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== Reset Básico ========== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--vc-white);
    color: var(--vc-neutral-900);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* ========== Grid Background para Hero ========== */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    z-index: 1;
}

.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(99, 102, 241, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: 0 0, 0 0;
    animation: grid-shift 20s linear infinite;
}

.grid-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: 12px 12px, 12px 12px;
}

@keyframes grid-shift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 24px 24px, 24px 24px;
    }
}

/* ========== Botones ========== */
.btn-primary-pro {
    background: var(--vc-primary);
    border: 1px solid var(--vc-primary);
    color: var(--vc-white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-pro:hover {
    background: var(--vc-primary-dark);
    border-color: var(--vc-primary-dark);
    color: var(--vc-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}

.btn-secondary-pro {
    background: transparent;
    border: 1px solid var(--vc-neutral-300);
    color: var(--vc-neutral-700);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-secondary-pro:hover {
    background: var(--vc-neutral-50);
    border-color: var(--vc-neutral-400);
    color: var(--vc-neutral-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========== Títulos y Texto ========== */
.hero-title-pro {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--vc-neutral-900);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle-pro {
    font-size: var(--font-size-xl);
    color: var(--vc-neutral-700);
    margin-bottom: var(--spacing-xl);

}

.highlight-text {
    background: linear-gradient(90deg, var(--vc-primary), var(--vc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-pro {
    padding: var(--spacing-3xl) 0;
}

.section-title-pro {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--vc-neutral-900);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle-pro {
    font-size: var(--font-size-lg);
    color: var(--vc-neutral-700);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
}

/* ========== Feature Cards ========== */
.feature-content {
    padding: 2rem 0;
}

.feature-icon-pro {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-white);
    font-size: 1.5rem;
}

.feature-title-pro {
    font-family: 'Geist', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vc-neutral-900);
    letter-spacing: -0.01em;
}

.feature-description-pro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--vc-neutral-600);
    font-weight: 400;
}

/* ========== Stats Section ========== */
.stats-pro {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--vc-white);
    padding: var(--spacing-3xl) 0;
}

.stat-number-pro {
    font-size: 3rem;
    font-weight: 800;
    color: var(--vc-primary-light);
    margin-bottom: 0.5rem;
}

/* ========== How It Works - Animaciones Infinitas ========== */

/* Optimización para mejor performance */
.how-it-works-card,
.connection-step,
.connection-line,
.success-badge,
.ai-message-1,
.ai-message-2,
.ai-conclusion,
.ai-avatar-1,
.ai-avatar-2,
.dynamic-progress,
.pulse-indicator {
    will-change: transform, opacity;
}

.how-it-works-card {
    transition: all 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* CAJA 1: GARMIN - Círculos que se llenan secuencialmente INFINITO */
@keyframes fillProgressInfinite {

    0%,
    20% {
        background: var(--vc-neutral-300);
        transform: scale(1);
    }

    25%,
    45% {
        transform: scale(1.1);
    }

    50%,
    100% {
        background: var(--vc-primary);
        transform: scale(1);
    }
}

@keyframes fillLineInfinite {

    0%,
    50% {
        width: 30px;
        background: var(--vc-neutral-300);
    }

    75%,
    100% {
        width: 30px;
        background: var(--vc-primary);
    }
}

.connection-step:nth-child(1) {
    animation: fillProgressInfinite 6s ease infinite;
}

.connection-step:nth-child(3) {
    animation: fillProgressInfinite 6s ease .5s infinite;
}

.connection-step:nth-child(5) {
    animation: fillProgressInfinite 6s ease 2s infinite;
}

.connection-line:nth-child(2) {
    animation: fillLineInfinite 6s ease .5s infinite;
}

.connection-line:nth-child(4) {
    animation: fillLineInfinite 6s ease 1.5s infinite;
}

@keyframes slideInSuccessInfinite {

    0%,
    60% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    70%,
    95% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
}

.success-badge {
    animation: slideInSuccessInfinite 6s ease .3s infinite;
}

/* CAJA 2: SYNC - Barra de progreso dinámica INFINITA */
@keyframes progressFillInfinite {
    0% {
        width: 0%;
    }

    20% {
        width: 20%;
    }

    40% {
        width: 45%;
    }

    60% {
        width: 65%;
    }

    80% {
        width: 85%;
    }

    90% {
        width: 100%;
    }

    95%,
    100% {
        width: 0%;
    }
}

.dynamic-progress {
    animation: progressFillInfinite 5s ease-in-out infinite;
}

/* Spinner infinito para sync */
@keyframes spinInfinite {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.how-it-works-card .bi-arrow-clockwise {
    animation: spinInfinite 2s linear infinite;
}

/* Animación para actividades que aparecen */
@keyframes activityFadeIn {

    0%,
    25% {
        opacity: 0;
        transform: translateX(-10px);
    }

    50%,
    75% {
        opacity: 1;
        transform: translateX(0);
    }

    90%,
    100% {
        opacity: 0.7;
        transform: translateX(0);
    }
}

.how-it-works-card .d-flex.flex-column.gap-3>div:nth-child(1) {
    animation: activityFadeIn 6s ease infinite;
}

.how-it-works-card .d-flex.flex-column.gap-3>div:nth-child(2) {
    animation: activityFadeIn 6s ease .5s infinite;
}

.how-it-works-card .d-flex.flex-column.gap-3>div:nth-child(3) {
    animation: activityFadeIn 6s ease 1s infinite;
}

/* CAJA 3: IA - Mensajes secuenciales INFINITOS */
@keyframes fadeInMessageInfinite {

    0%,
    10% {
        opacity: 0;
        transform: translateX(-20px);
    }

    20%,
    70% {
        opacity: 1;
        transform: translateX(0);
    }

    80%,
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes fadeInMessageRightInfinite {

    0%,
    30% {
        opacity: 0;
        transform: translateX(20px);
    }

    40%,
    70% {
        opacity: 1;
        transform: translateX(0);
    }

    80%,
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes slideUpConclusionInfinite {

    0%,
    50% {
        opacity: 0;
        transform: translateY(30px);
    }

    60%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }

    95%,
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

.ai-message-1 {
    animation: fadeInMessageInfinite 8s ease infinite;
}

.ai-message-2 {
    animation: fadeInMessageRightInfinite 8s ease infinite;
}

.ai-conclusion {
    animation: slideUpConclusionInfinite 8s ease infinite;
}

/* Avatares con glow INFINITO */
@keyframes avatarGlowInfinite {

    0%,
    20%,
    80%,
    100% {
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
        transform: scale(1);
    }

    40%,
    60% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
        transform: scale(1.05);
    }
}

@keyframes avatarGlowSecondaryInfinite {

    0%,
    20%,
    80%,
    100% {
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }

    40%,
    60% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

.ai-avatar-1 {
    animation: avatarGlowInfinite 8s ease infinite;
}

.ai-avatar-2 {
    animation: avatarGlowSecondaryInfinite 8s ease infinite;
}

/* Pulso mejorado INFINITO */
@keyframes pulseEnhancedInfinite {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.pulse-indicator {
    animation: pulseEnhancedInfinite 2s ease-in-out infinite;
}

/* ========== Animaciones Básicas para Features ========== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    from {
        width: 0%;
    }

    to {
        width: var(--width, 100%);
    }
}
.text-left{
    text-align: left;
}
/* ========== Responsive ========== */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
        --spacing-xl: 2rem;
    }

    .hero-title-pro {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle-pro {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }

    .section-pro {
        padding: var(--spacing-2xl) 0;
    }

    .feature-content {
        padding: var(--spacing-lg) 0;
    }

    .btn-primary-pro,
    .btn-secondary-pro {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .how-it-works-card:hover {
        transform: translateY(-2px);
    }
}

/* ========== Reduced Motion Support ========== */
@media (prefers-reduced-motion: reduce) {

    .connection-step,
    .connection-line,
    .success-badge,
    .ai-message-1,
    .ai-message-2,
    .ai-conclusion,
    .ai-avatar-1,
    .ai-avatar-2,
    .dynamic-progress,
    .pulse-indicator,
    .how-it-works-card .bi-arrow-clockwise {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .how-it-works-card:hover {
        transform: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================================
   VitalCore Enhanced Footer Styles
   ======================================== */

/* ========== Footer Principal ========== */
.footer-enhanced {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--vc-white);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efectos de fondo */
.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid pattern sutil */
.footer-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.5;
}

/* Contenido del footer */
.footer-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

/* ========== Logo y Descripción ========== */
.footer-brand {
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vc-white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, var(--vc-primary-light), var(--vc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-base);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-description {
    color: var(--vc-neutral-400);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: var(--spacing-lg);
}

/* ========== Redes Sociales ========== */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-neutral-300);
    text-decoration: none;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--vc-primary-light);
    color: var(--vc-white);
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
}

.social-link.github:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* ========== Columnas de Enlaces ========== */
.footer-links {
    margin-bottom: var(--spacing-xl);
}

.footer-column h6 {
    color: var(--vc-white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--vc-primary), var(--vc-secondary));
    border-radius: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--vc-neutral-400);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vc-primary-light);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--vc-primary-light);
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

/* ========== Newsletter Signup ========== */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-signup:hover::before {
    opacity: 1;
}

.newsletter-title {
    color: var(--vc-white);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.newsletter-subtitle {
    color: var(--vc-neutral-400);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--vc-white);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.newsletter-input::placeholder {
    color: var(--vc-neutral-500);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--vc-primary-light);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-secondary));
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: var(--vc-white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* ========== Footer Bottom ========== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--vc-neutral-500);
    font-size: 0.9rem;
}

.footer-love {
    color: var(--vc-neutral-500);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heart {
    color: #ef4444;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    50%,
    100% {
        transform: scale(1);
    }

    25%,
    75% {
        transform: scale(1.1);
    }
}

/* ========== Scroll to Top Button ========== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-secondary));
    border: none;
    border-radius: 16px;
    color: var(--vc-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .footer-content {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }

    .footer-brand {
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }

    .footer-social {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-description {
        font-size: 1rem;
    }

    .newsletter-signup {
        padding: var(--spacing-md);
    }

    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* ========== Animaciones Adicionales ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-animate:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-animate:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .footer-animate {
        animation: none;
        opacity: 1;
    }

    .footer-heart {
        animation: none;
    }

    .social-link:hover {
        transform: none;
    }

    .scroll-to-top:hover {
        transform: none;
    }
}



/* ========================================
   VitalCore Navbar - Estilo WHOOP Layout
   ======================================== */

/* ========== Navbar Principal ========== */
.navbar-professional {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-professional.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========== Container Layout WHOOP Style ========== */
.navbar-professional .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ========== Logo (Izquierda Fija) ========== */
.navbar-brand-pro {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--vc-neutral-900) !important;
    text-decoration: none;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-brand-pro:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ========== Menú Central (Absolutamente Centrado) ========== */
.navbar-collapse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.navbar-nav {
    display: flex;
    gap: 0.5rem;
    margin: 0 !important;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* ========== Enlaces del Menú ========== */
.nav-link-pro {
    font-weight: 500;
    color: var(--vc-neutral-700) !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link-pro.active,
.nav-link-pro.highlighted {
    border: 1px solid var(--vc-primary);
    color: var(--vc-primary) !important;
    background: rgba(99, 102, 241, 0.05);
}

.nav-link-pro:hover {
    color: var(--vc-neutral-900) !important;
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.nav-link-pro::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vc-primary), var(--vc-secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link-pro:hover::after {
    width: 80%;
}

/* ========== Botones (Derecha Pegada) ========== */
.navbar-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    /* Esto los empuja completamente a la derecha */
}

/* Botón Secundario */
.btn-secondary-pro {
    background: transparent;
    border: 1.5px solid var(--vc-neutral-300);
    color: var(--vc-neutral-700);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-secondary-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-secondary-pro:hover::before {
    left: 100%;
}

.btn-secondary-pro:hover {
    background: var(--vc-neutral-50);
    border-color: var(--vc-primary);
    color: var(--vc-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

/* Botón Primario */
.btn-primary-pro {
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-secondary));
    border: 1.5px solid transparent;
    color: var(--vc-white);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--vc-primary-dark), var(--vc-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-pro:hover::before {
    opacity: 1;
}

.btn-primary-pro:hover {
    color: var(--vc-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary-pro span,
.btn-primary-pro i {
    position: relative;
    z-index: 2;
}

/* ========== Navbar Toggler (Mobile) ========== */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    order: 3;
    /* Asegurar que esté al final */
    background: var(--vc-secondary);
        transform: scale(1.05);
        width: 38px;
        text-align: center;
        justify-content: center;
        display: flex;
        height: 38px;
        align-items: center;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

.navbar-toggler:hover { 
    transform: scale(1.05);
}

/* Icono hamburguesa personalizado */
.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 18px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    background: white;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    display: block;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
}

.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ========== Responsive Design ========== */
@media (max-width: 991.98px) {

    /* En mobile, cambiar a layout vertical */
    .navbar-professional .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Ocultar el menú centrado en mobile */
    .navbar-collapse {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        margin-top: 1rem;
    }

    .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.show {
        display: block;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-link-pro {
        padding: 1rem 1.5rem !important;
        text-align: center;
        font-size: 1rem;
        width: 100%;
    }

    .navbar-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1.5rem;
        margin-left: 0;
        padding-top: 1.5rem;
        border-top: 1px solid var(--vc-neutral-200);
    }

    .btn-secondary-pro,
    .btn-primary-pro {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand-pro {
        font-size: 1.5rem;
    }

    .navbar-collapse.show {
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .nav-link-pro {
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem;
    }

    .btn-secondary-pro,
    .btn-primary-pro {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ========== Fix para evitar overflow en desktop ========== */
@media (min-width: 992px) {
    .navbar-professional .container {
        margin: 0 auto;
        padding: 0 1rem;
        min-height: 60px;
        /* Altura mínima para mantener consistencia */
    }

    /* Asegurar que el menú no se superponga con los botones */
    .navbar-collapse {
        max-width: calc(100% - 400px);
        /* Dejar espacio para logo y botones */
    }
}

/* ========== Estados de focus ========== */
.nav-link-pro:focus,
.btn-secondary-pro:focus,
.btn-primary-pro:focus,
.navbar-brand-pro:focus {
    outline: 2px solid var(--vc-primary);
    outline-offset: 2px;
}

/* ========== Animación inicial ========== */
.navbar-professional {
    opacity: 0;
    animation: slideDown 0.6s ease 0.2s forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Performance ========== */
.navbar-professional,
.nav-link-pro,
.btn-secondary-pro,
.btn-primary-pro {
    will-change: transform;
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {

    .navbar-professional,
    .nav-link-pro,
    .btn-secondary-pro,
    .btn-primary-pro,
    .navbar-toggler-icon,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        transition: none;
        animation: none;
    }

    .nav-link-pro:hover,
    .btn-secondary-pro:hover,
    .btn-primary-pro:hover {
        transform: none;
    }
}


/* ========== Cookie Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(300px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 auto;
    
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--vc-neutral-900);
    font-size: 1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--vc-neutral-600);
    line-height: 1.4;
}

.cookie-link {
    color: var(--vc-primary);
    text-decoration: none;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--vc-neutral-600);
    border: 1px solid var(--vc-neutral-300);
}

.cookie-btn-secondary:hover {
    background: var(--vc-neutral-100);
    color: var(--vc-neutral-800);
}

.cookie-btn-primary {
    background: var(--vc-primary);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--vc-primary-dark);
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}




















































/* ========== Health Overview Section ========== */
.vc-health-overview {
    padding: var(--spacing-3xl) 0;
    background: var(--vc-white);
    position: relative;
    overflow: hidden;
}

.vc-overview-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vc-overview-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--vc-neutral-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.vc-overview-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--vc-neutral-600);
    font-weight: 400;
}

/* ========== Cards Container ========== */
 
.swiper-slide {
    width: auto !important;
    flex-shrink: 0;
}

.vc-health-card {
    width: 350px;
    height: 100%;
    display: block;
}
.vc-cards-scroll {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.vc-cards-scroll:active {
    cursor: grabbing !important;
}
.vc-cards-container {
    position: relative;
    margin-bottom: var(--spacing-2xl);
}

.vc-cards-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vc-cards-scroll::-webkit-scrollbar {
    display: none;
}

/* ========== Individual Cards ========== */
.vc-health-card {
    flex: 0 0 auto;
    width: 33%;
    height: 750px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    background: var(--vc-neutral-100);
}

.vc-health-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.vc-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vc-health-card:hover .vc-card-image {
    transform: scale(1.05);
}

/* ========== Card Overlay ========== */
.vc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: white;
}

/* ========== Card Content ========== */
.vc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vc-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.vc-card-expand {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.vc-card-expand:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.vc-card-content {
    margin-top: auto;
}

.vc-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: white;
}

.vc-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* ========== Card Metrics ========== */
.vc-card-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.vc-metric {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    text-align: center;
}

.vc-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.vc-metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== CTA Button ========== */
.vc-overview-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.vc-cta-button {
    background: var(--vc-neutral-900);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.vc-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.vc-cta-button:hover::before {
    left: 100%;
}

.vc-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--vc-primary);
}

/* ========== Navigation Dots ========== */
.vc-nav-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.vc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vc-neutral-300);
    cursor: pointer;
    transition: var(--transition-base);
}

.vc-dot.active {
    background: var(--vc-neutral-900);
    transform: scale(1.2);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .vc-health-overview {
        padding: var(--spacing-2xl) 0;
    }

    .vc-overview-title {
        font-size: 2.5rem;
    }

    .vc-overview-subtitle {
        font-size: 1.1rem;
    }

     

    .vc-card-overlay {
        padding: 1.5rem;
    }

    .vc-card-title {
        font-size: 1.25rem;
    }

    .vc-card-description {
        font-size: 0.9rem;
    }

    .vc-cards-scroll {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .vc-health-card {
        width: 260px;
        height: 380px;
    }

    .vc-cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* ========== Scroll Animations ========== */
.vc-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========== Card Specific Styles ========== */
.vc-card-recovery .vc-card-icon {
    background: linear-gradient(135deg, var(--vc-secondary), #34d399);
}

.vc-card-performance .vc-card-icon {
    background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-light));
}

.vc-card-strain .vc-card-icon {
    background: linear-gradient(135deg, var(--vc-accent), #fbbf24);
}

.vc-card-heart .vc-card-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.vc-card-insights .vc-card-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.swiper {
    width: 100%;
    overflow: visible;
}

.swiper-wrapper {
    align-items: stretch;
    display: flex;
}
.mb-60{margin-bottom: 60px;}
.swiper-slide {
    width: 35% !important;
    height: auto;
    flex-shrink: 0;
}

.vc-health-card {
    width: 100%; 
    display: block;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body .gx-5-5{
    --bs-gutter-x: 5.5rem;
}
.vc-health-card:active {
    cursor: grabbing;
}




























/* Overlay */
.preregister-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.preregister-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.preregister-modal {
    background: white;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.preregister-overlay.active .preregister-modal {
    transform: translateY(0) scale(1);
    overflow: hidden;
}

/* Botón cerrar */
.preregister-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.preregister-close:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

/* Contenedor del formulario */
.preregister-form-container {
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.preregister-form-container.hiding {
    opacity: 0;
    transform: translateX(-30px);
    height: 649px;
}

/* Header */
.preregister-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preregister-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066FF, #00C896);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.preregister-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.preregister-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Formulario */
.preregister-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Checkbox personalizado */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #0066FF;
    border-color: #0066FF;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Botón principal con animaciones */
.preregister-btn {
    background: linear-gradient(135deg, #0066FF, #00C896);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.preregister-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.preregister-btn .btn-text,
.preregister-btn .btn-loading,
.preregister-btn .btn-success {
    transition: all 0.3s ease;
}

.preregister-btn .btn-loading,
.preregister-btn .btn-success {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preregister-btn.loading .btn-text {
    opacity: 0;
}

.preregister-btn.loading .btn-loading {
    opacity: 1;
}

.preregister-btn.success {
    background: #00C896;
    transform: scale(1.05);
}

.preregister-btn.success .btn-text,
.preregister-btn.success .btn-loading {
    opacity: 0;
}

.preregister-btn.success .btn-success {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Beneficios */
.preregister-benefits {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.preregister-benefits h6 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.preregister-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preregister-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.preregister-benefits li i {
    color: #00C896;
    font-size: 1rem;
}

/* Pantalla de éxito */
.preregister-success {
    padding: 3rem 2.5rem;
    position: absolute;
    top: 0;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    z-index: -1;
}

.preregister-success.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 99999999999;
}

/* Animación de éxito */
.success-animation {
    position: relative;
    margin-bottom: 2rem;
}

.success-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #00C896, #34d399);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    font-size: 3rem;
    color: white;
    animation: checkmarkDraw 0.8s ease-out 0.3s both;
}

@keyframes checkmarkDraw {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Confetti */
.success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #0066FF, #00C896, #FF6B35);
    border-radius: 2px;
    animation: confettiFall 3s ease-out infinite;
}

.confetti-piece:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: #0066FF;
}

.confetti-piece:nth-child(2) {
    left: 20%;
    animation-delay: 0.2s;
    background: #00C896;
}

.confetti-piece:nth-child(3) {
    left: 30%;
    animation-delay: 0.4s;
    background: #FF6B35;
}

.confetti-piece:nth-child(4) {
    left: 70%;
    animation-delay: 0.6s;
    background: #0066FF;
}

.confetti-piece:nth-child(5) {
    left: 80%;
    animation-delay: 0.8s;
    background: #00C896;
}

.confetti-piece:nth-child(6) {
    left: 90%;
    animation-delay: 1s;
    background: #FF6B35;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Títulos de éxito */
.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    animation: slideUp 0.6s ease-out 0.5s both;
}

.success-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease-out 0.7s both;
}

@keyframes slideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estadísticas */
.success-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease-out 0.9s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0066FF;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* Botón de cierre */
.success-btn {
    background: #1e293b;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out 1.1s both;
}

.success-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .preregister-modal {
        margin: 1rem;
        max-height: 85vh;
    }

    .preregister-form-container{
        position: relative;
        z-index: 99999;

    }
    .preregister-form-container,
    .preregister-success {
        padding: 2rem 1.5rem;
    }

    .preregister-title {
        font-size: 1.5rem;
    }

    .success-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .success-circle {
        width: 100px;
        height: 100px;
    }

    .success-checkmark {
        font-size: 2.5rem;
    }
}