/* ==========================================================================
   CSS Design System & Stylesheet for Licencia Ahora
   ========================================================================== */

/* Typography & Root Variables */
:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Colors (HSL Palettes) */
    --color-bg: hsl(222, 47%, 7%);
    --color-surface: hsl(222, 40%, 12%);
    --color-surface-hover: hsl(222, 38%, 16%);
    
    --color-primary: hsl(217, 91%, 60%); /* Electric Blue */
    --color-primary-hover: hsl(217, 91%, 65%);
    --color-primary-glow: hsla(217, 91%, 60%, 0.15);
    
    --color-amber: hsl(38, 92%, 55%); /* Gold / License yellow */
    --color-amber-hover: hsl(38, 92%, 60%);
    --color-amber-glow: hsla(38, 92%, 55%, 0.2);

    --color-text-primary: hsl(210, 40%, 98%);
    --color-text-secondary: hsl(215, 25%, 72%);
    --color-text-muted: hsl(215, 16%, 57%);
    
    --color-border: hsla(217, 30%, 20%, 0.5);
    --color-border-glow: hsla(217, 90%, 60%, 0.25);
    
    --glass-bg: hsla(222, 40%, 10%, 0.7);
    --glass-border: hsla(0, 0%, 100%, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    --container-max-width: 1200px;
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

/* Background Glow Elements */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glow-blue {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.glow-amber {
    top: 400px;
    left: -200px;
    background: radial-gradient(circle, var(--color-amber) 0%, transparent 70%);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--color-text-secondary);
}

.highlight-amber {
    color: var(--color-amber);
    background: linear-gradient(120deg, var(--color-amber) 0%, #ffc97a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Helper Components */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Button Layouts */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-amber) 0%, #e09115 100%);
    color: hsl(222, 47%, 5%);
    box-shadow: 0 4px 20px var(--color-amber-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
    background: linear-gradient(135deg, #ffb53d 0%, var(--color-amber) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, var(--color-primary) 100%);
}

.btn:active {
    transform: translateY(-1px);
}

.arrow-icon {
    transition: transform var(--transition-speed);
}

.btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(11, 15, 25, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--color-primary);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 4rem 0 6rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.pre-headline {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

/* Timer Component */
.timer-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    max-width: 480px;
    box-shadow: 0 10px 30px var(--glass-shadow);
}

.timer-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-grid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.time-divider {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

/* CTA Layout */
.cta-actions {
    margin-top: 2rem;
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Image & Stats Styling */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s;
}

.image-glass-card:hover {
    transform: translateY(-5px);
}

.hero-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    display: block;
}

.image-overlay-badge {
    position: absolute;
    top: 30px;
    left: -20px;
    background: linear-gradient(135deg, var(--color-amber) 0%, #d97706 100%);
    color: hsl(222, 47%, 5%);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.45);
    transform: rotate(-6deg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: floatBadge 3s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes floatBadge {
    0% {
        transform: rotate(-6deg) translateY(0);
    }
    100% {
        transform: rotate(-6deg) translateY(-8px);
    }
}

.hero-stats-card {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    display: flex;
    background: rgba(21, 28, 48, 0.85);
    border: 1px solid var(--color-border-glow);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.stat-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-amber);
    line-height: 1.1;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.stat-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

/* ==========================================================================
   Authority & Proof Section
   ========================================================================== */
.authority-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, hsl(222, 47%, 5%) 100%);
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.05rem;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.authority-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all var(--transition-speed);
}

.authority-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.authority-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.authority-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-speed);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    color: var(--color-amber);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Bonus Book Section
   ========================================================================== */
.bonus-section {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
}

.bonus-card {
    background: linear-gradient(135deg, hsl(222, 40%, 12%) 0%, hsl(222, 50%, 8%) 100%);
    border: 1px solid var(--color-border-glow);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.bonus-badge {
    position: absolute;
    top: 2rem;
    left: 4rem;
    background: linear-gradient(90deg, var(--color-amber) 0%, #ff8c00 100%);
    color: hsl(222, 47%, 5%);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.bonus-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-top: 1rem;
}

.bonus-details h3 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.bonus-title-es {
    font-size: 1.5rem;
    color: var(--color-amber);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.bonus-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

/* 3D Book Mockup CSS */
.bonus-mockup {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.book-cover {
    width: 200px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 15px 15px 35px rgba(0,0,0,0.6);
    cursor: pointer;
}

.book-cover:hover {
    transform: rotateY(-5deg) rotateX(5deg) translateY(-8px);
    box-shadow: 5px 25px 45px rgba(0,0,0,0.7);
}

.book-content {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cc2323 0%, #7f1d1d 100%);
    border-radius: 4px 12px 12px 4px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 5%, rgba(0,0,0,0.1) 8%, rgba(255,255,255,0.05) 10%, rgba(255,255,255,0) 100%);
    border-radius: 4px 12px 12px 4px;
    z-index: 3;
    pointer-events: none;
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px 0 0 4px;
    z-index: 4;
}

.book-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-amber);
    text-transform: uppercase;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-top: 1rem;
}

.book-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    flex-grow: 1;
}

.book-footer {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
    padding: 4rem 0 3rem;
    background-color: hsl(222, 55%, 4%);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-left {
    max-width: 600px;
}

.logo-footer {
    display: block;
    margin-bottom: 1rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.footer-right {
    text-align: right;
    align-self: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-subheadline {
        margin: 0 auto 2.5rem;
    }
    
    .timer-card {
        margin: 0 auto 2.5rem;
    }
    
    .cta-subtext {
        justify-content: center;
    }
    
    .hero-stats-card {
        width: 75%;
    }
    
    .bonus-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bonus-card {
        padding: 3rem 2rem;
    }
    
    .bonus-badge {
        left: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .countdown-grid {
        gap: 0.25rem;
    }
    
    .time-block {
        min-width: 50px;
    }
    
    .time-num {
        font-size: 1.35rem;
    }
    
    .hero-stats-card {
        width: 90%;
        bottom: -35px;
    }
}
