/* ==================================================
   Origen Growth Partners — Premium Dark Theme
   ================================================== */

:root {
    --bg-dark: #0a0f1c; /* Deep navy/black */
    --text-dark-main: #ffffff;
    --text-dark-sub: #94a3b8;
    --text-highlight: #f1f5f9;

    /* Brand Accents based on the infinity logo */
    --brand-pink: #e8437a;
    --brand-orange: #f5943a;
    --brand-blue: #3a8df5;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-dark);
    color: var(--text-dark-main);
    height: 100dvh; /* Force 100vh layout */
    overflow: hidden; /* Prevent scrolling */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically */
}

/* ===============================================
   Animated Background Effects
   =============================================== */
.background-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Glowing Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: drift 20s infinite alternate ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

.orb-1 {
    top: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--brand-pink);
    animation-duration: 25s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--brand-blue);
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--brand-orange);
    opacity: 0.2;
    animation: driftCenter 30s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}

@keyframes driftCenter {
    0% { transform: translate(-50px, -50px) scale(1.2); }
    100% { transform: translate(50px, 50px) scale(0.9); }
}

/* Floating Elements (Background only) */
.floating-icons {
    position: absolute;
    width: 100%; height: 100%;
}

.icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: floatIcon 18s infinite ease-in-out;
    will-change: transform;
}

.icon-1 { top: 15%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 25%; right: 15%; animation-delay: -3s; animation-duration: 22s; font-size: 2rem; }
.icon-3 { bottom: 20%; left: 20%; animation-delay: -7s; font-size: 3rem; }
.icon-4 { bottom: 35%; right: 10%; animation-delay: -11s; animation-duration: 15s; }
.icon-5 { top: 45%; left: 80%; animation-delay: -5s; font-size: 1.8rem; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(15deg); }
    66% { transform: translateY(15px) rotate(-10deg); }
}

/* ===============================================
   Main Container
   =============================================== */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    height: 100%;
    padding: 0 1.5rem 1.5rem 1.5rem; /* Remove top padding entirely */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content towards the top */
    text-align: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(-50px); /* Move everything 50px up optically */
}

.header {
    margin-bottom: 1rem; /* Logo -> badge: 16px */
    animation: fadeUp 0.8s ease-out;
}

.logo {
    height: auto;
    width: 100%;
    max-width: 200px; /* Reduced by ~20% */
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.05));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dark-main);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem; /* Badge -> titular: 24px */
    backdrop-filter: blur(5px);
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-orange);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.5; }
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem; /* Reduced to fit in 1 screen */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem; /* Titular -> subtítulo: 16px */
    letter-spacing: -0.02em;
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange), var(--brand-blue));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #cbd5e1; /* Increased contrast from the previous darker slate */
    margin-bottom: 2.5rem; /* Subtítulo -> emoji: 40px */
    max-width: 550px;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

.subtitle p {
    margin-bottom: 0.3rem;
}

.subtitle strong {
    color: var(--text-highlight);
    font-size: 1.15rem;
    font-weight: 600;
}

/* ===============================================
   Mascot & Progress Section
   =============================================== */
.mascot-progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px; /* Reduced by ~20% */
    margin-bottom: 2rem; /* Progress bar -> botón: 32px */
    animation: fadeUp 0.8s ease-out 0.5s backwards;
}

.mascot-wrapper {
    position: relative;
    margin-bottom: 1.5rem; /* Emoji -> progress bar: 24px */
}

.platform-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    padding-bottom: 140%;
    background: radial-gradient(circle, rgba(232, 67, 122, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.mascot {
    width: 100%;
    max-width: 110px; /* Reduced by ~20% */
    height: auto;
    position: relative;
    z-index: 10;
    cursor: pointer;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
}

.mascot:active {
    transform: scale(0.95);
}

/* Glassmorphism Progress Card inside Dark Theme */
.progress-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.015); /* Lowered contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04); /* Lowered contrast */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-top: 0; /* Reset since wrapper handles margin */
    position: relative;
    z-index: 20;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.progress-title {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-highlight);
    font-size: 0.95rem;
}

.progress-percent {
    font-weight: 500;
    font-size: 0.85rem; /* Reduced text size */
    color: var(--brand-orange);
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange), var(--brand-blue));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(245, 148, 58, 0.5);
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: width;
}

.progress-status {
    font-size: 0.85rem;
    color: var(--text-dark-sub);
    text-align: right;
    font-style: italic;
    transition: opacity 0.3s;
}

/* ===============================================
   Contact Box & Footer
   =============================================== */
.contact-box {
    animation: fadeUp 0.8s ease-out 0.6s backwards;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    /* WhatsApp Color Premium Glow */
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    padding: 18px 40px; /* Increased size ~15% */
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    font-size: 1.15rem; /* Increased size ~10% */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

.button:hover {
    transform: translateY(-6px) scale(1.02); /* Enhanced hover interaction */
    box-shadow: 0 18px 45px rgba(37, 211, 102, 0.35); /* Glow bump */
    background: linear-gradient(135deg, #32e073, #16a392);
}

.footer {
    margin-top: auto; /* Pushes the footer to the bottom, leaving empty space above it */
    padding-bottom: 2vh;
    color: #475569;
    font-size: 0.75rem;
    animation: fadeUp 0.8s ease-out 0.8s backwards;
}

/* Tooltip for Mascot */
.tooltip-bubble {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

@keyframes popIn {
    from { opacity: 0; transform: translate(-50%, 10px) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .logo { max-width: 160px; }
    .mascot { max-width: 90px; }
    .content { transform: translateY(0); } /* Reset optical shift on mobile */
    .subtitle { margin-bottom: 1.5rem; } /* Pulls the capybara up */
    .mascot-progress-section { margin-bottom: 1.5rem; } /* Pulls the button up */
    .footer { margin-top: 4rem !important; padding-bottom: 2rem; } /* Pushes the copyright down on scroll */
    body { overflow-y: auto; height: auto; min-height: 100dvh; } /* Allow scrolling on small phones if content cramps */
}
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .logo { max-width: 140px; }
    .button { padding: 14px 28px; font-size: 1rem; }
}
