/* ============================================
   Democratizando la Verdad - Page Styles
   ============================================ */

/* Global overflow fix */
html, body {
    overflow-x: hidden;
}

/* Section spacing */
.section-padding {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* ============================================
   EVENT BAR
   ============================================ */
.event-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: linear-gradient(135deg, #e7c47b 0%, #d4a84a 100%);
    color: #0a141d;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.event-bar.hidden {
    transform: translateY(-100%);
}

.event-bar-cta {
    background: #0a141d;
    color: #e7c47b;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.event-bar-cta:hover {
    background: #1a2a3a;
    transform: scale(1.05);
}

.countdown-unit {
    background: rgba(10, 20, 29, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.countdown-sep {
    font-weight: 700;
    opacity: 0.5;
}

/* Adjust header when event bar is visible */
body.has-event-bar #site-header {
    top: 36px;
}

body.has-event-bar .hero-section {
    padding-top: calc(8rem + 36px);
}

/* ============================================
   PEOPLE CAROUSEL
   ============================================ */
.people-carousel-wrapper {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.people-carousel-track {
    animation: carousel-scroll 60s linear infinite;
    width: max-content;
}

.people-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.people-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.people-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(231, 196, 123, 0.4);
}

.people-card span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* ============================================
   EVENT MODAL
   ============================================ */
#event-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#event-modal.active {
    opacity: 1;
    visibility: visible;
}

#event-modal .relative {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#event-modal.active .relative {
    transform: scale(1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #e7c47b 0%, #d4a84a 100%);
    color: #0a141d;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 196, 123, 0.3);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 196, 123, 0.45);
}

.btn-accent-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #e7c47b 0%, #d4a84a 100%);
    color: #0a141d;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(231, 196, 123, 0.3);
    text-decoration: none;
}

.btn-accent-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(231, 196, 123, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #e7c47b;
    font-weight: 600;
    border: 2px solid rgba(231, 196, 123, 0.4);
    border-radius: 9999px;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    border-color: #e7c47b;
    background: rgba(231, 196, 123, 0.08);
    transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(231, 196, 123, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(231, 196, 123, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(26, 42, 58, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #0a141d 0%, #0d1b26 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e7c47b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   GLASS CARDS
   ============================================ */
.glass-card {
    background: linear-gradient(145deg, rgba(26, 42, 58, 0.5) 0%, rgba(10, 20, 29, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s;
}

.glass-card:hover {
    border-color: rgba(231, 196, 123, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 196, 123, 0.1);
    border-radius: 0.75rem;
    color: #e7c47b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ============================================
   BULLET ICONS (que es section)
   ============================================ */
.bullet-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 196, 123, 0.1);
    border-radius: 0.5rem;
    color: #e7c47b;
    font-size: 0.9rem;
}

/* ============================================
   LOGO PLACEHOLDERS
   ============================================ */
.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   TIMELINE (Avances)
   ============================================ */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -2.1rem;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 196, 123, 0.15);
    border: 2px solid #e7c47b;
    border-radius: 50%;
    color: #e7c47b;
    font-size: 0.65rem;
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

/* ============================================
   STEP CARDS (Como funciona)
   ============================================ */
.step-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 42, 58, 0.5) 0%, rgba(10, 20, 29, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: rgba(231, 196, 123, 0.25);
    transform: translateY(-3px);
}

.step-number {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7c47b, #d4a84a);
    color: #0a141d;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
}

.step-icon {
    font-size: 2rem;
    color: #e7c47b;
    margin-bottom: 1rem;
}

/* ============================================
   IMPACT CARDS
   ============================================ */
.impact-card {
    background: linear-gradient(145deg, rgba(26, 42, 58, 0.3) 0%, rgba(10, 20, 29, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.impact-card:hover {
    border-color: rgba(231, 196, 123, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   FIGURE CARDS
   ============================================ */
.figure-card {
    background: linear-gradient(145deg, rgba(26, 42, 58, 0.5) 0%, rgba(10, 20, 29, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.figure-card:hover {
    border-color: rgba(231, 196, 123, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.figure-card.figure-placeholder {
    border-style: dashed;
    opacity: 0.6;
}

.figure-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid rgba(231, 196, 123, 0.3);
}

.figure-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figure-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 196, 123, 0.1);
    color: #e7c47b;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   COUNTER
   ============================================ */
.counter-wrapper {
    position: relative;
    padding: 3rem;
}

.counter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 196, 123, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.counter-number {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    background: linear-gradient(135deg, #e7c47b 0%, #f5d89a 50%, #d4a84a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* ============================================
   VIDEO PLACEHOLDER
   ============================================ */
.video-placeholder {
    aspect-ratio: 16 / 9;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(10, 20, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-placeholder:hover {
    border-color: rgba(231, 196, 123, 0.3);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 196, 123, 0.15);
    border: 2px solid rgba(231, 196, 123, 0.4);
    border-radius: 50%;
    color: #e7c47b;
    transition: all 0.3s;
}

.video-placeholder:hover .video-play-btn {
    background: rgba(231, 196, 123, 0.25);
    transform: scale(1.05);
}

/* ============================================
   FORM
   ============================================ */
.form-card {
    background: linear-gradient(145deg, rgba(26, 42, 58, 0.5) 0%, rgba(10, 20, 29, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 20, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: rgba(231, 196, 123, 0.5);
    box-shadow: 0 0 0 3px rgba(231, 196, 123, 0.1);
}

.form-input.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #e7c47b;
    cursor: pointer;
    flex-shrink: 0;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e7c47b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
    background: rgba(10, 20, 29, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(231, 196, 123, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-cta.visible {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .mobile-cta {
        display: block;
    }
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    /* Event bar */
    .event-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }

    .event-bar .flex {
        gap: 0.4rem;
    }

    .event-bar .font-bold {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    /* Hide countdown in bar on mobile */
    #event-bar #countdown {
        display: none;
    }

    /* Header / Navbar */
    #site-header .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #site-header img[alt="Personally AI"] {
        height: 48px !important;
    }

    #site-header .text-lg {
        font-size: 0.8rem;
    }

    body.has-event-bar #site-header {
        top: 44px;
    }

    /* Modal */
    #event-modal > .relative {
        padding: 1.25rem;
        padding-top: 2.5rem;
        max-height: 95vh;
        border-radius: 1rem;
    }

    #event-modal .flex.items-center.justify-center.gap-4.mb-4 img {
        height: 2rem;
    }

    #event-modal h2 {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    #event-modal .text-accent-hover {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    #event-modal .aspect-video {
        margin-bottom: 0.75rem;
    }

    #event-modal #countdown .flex.flex-col span:first-child {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
        min-width: 2rem;
    }

    #event-modal #countdown .text-accent {
        font-size: 1rem;
    }

    #event-modal .space-y-2 {
        font-size: 0.8rem;
    }

    #event-modal .space-y-2 .flex {
        gap: 0.4rem;
    }

    #event-modal .bg-gradient-to-r {
        padding: 0.75rem;
    }

    #event-modal .bg-gradient-to-r p {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }

    #event-modal .btn-accent {
        font-size: 0.9rem;
        padding: 0.65rem 1.5rem;
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    /* Hero text sizes handled by Tailwind responsive classes */

    /* Democratizando logo in hero */
    .hero-section .mt-12 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .hero-section .mt-12 img {
        height: 3.5rem;
    }

    /* Tu firma cuenta */
    .hero-section .mb-8 h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-section .mb-8 p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* People carousel */
    .people-card img {
        width: 42px;
        height: 42px;
    }

    .people-card span {
        font-size: 0.6rem;
    }

    .people-carousel-track {
        gap: 0.6rem;
    }

    body.has-event-bar .hero-section {
        padding-top: calc(6rem + 44px);
    }

    /* Sections */
    .section-padding {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }

    /* Que es - bullet icons */
    .bullet-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    /* Institutional logos */
    .logo-placeholder.bg-white {
        padding: 0.75rem 1.25rem;
        border-radius: 0.75rem;
    }

    .logo-placeholder.bg-white img {
        height: 5rem !important;
    }

    /* Glass cards */
    .glass-card {
        padding: 1.25rem;
    }

    /* Step cards */
    .step-card {
        padding: 1.5rem 1rem;
    }

    /* Impact cards */
    .impact-card {
        padding: 1rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 2.25rem;
    }

    .timeline-icon {
        left: -1.75rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.55rem;
    }

    .timeline-content h3 {
        font-size: 0.9rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    /* Form */
    .form-card {
        padding: 1.25rem;
    }

    /* Counter in form section */
    .counter-number {
        font-size: 2.5rem !important;
    }

    /* Buttons */
    .btn-accent {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-outline {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Bubble - move up to avoid mobile CTA */
    .democratizando-bubble {
        bottom: 5rem;
        font-size: 0.7rem;
        padding: 0.5rem 0.85rem 0.5rem 0.7rem;
        transition: bottom 0.3s ease;
    }

    .democratizando-bubble.above-cta {
        bottom: 5rem;
    }

    /* Footer */
    footer {
        padding-bottom: 5rem;
    }

    /* Video section */
    #vision .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    #event-modal > .relative {
        padding: 1rem;
        padding-top: 2.25rem;
    }

    #event-modal #countdown .flex.flex-col span:first-child {
        font-size: 0.85rem;
        padding: 0.25rem 0.4rem;
        min-width: 1.8rem;
    }

    .people-card img {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   TECH TOGGLE ARROW ROTATION
   ============================================ */
#tech-arrow.rotated {
    transform: rotate(180deg);
}
