:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary-accent: #D4AF37;
    /* Metallic Gold */
    --primary-glow: rgba(212, 175, 55, 0.4);
    --secondary-accent: #7B2CBF;
    /* Deep Royal Purple */
    --secondary-glow: rgba(123, 44, 191, 0.4);
    --text-main: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base for REMs */
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Animaciones --- */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 30px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

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

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

/* --- Fondo Dinámico --- */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Más suavidad */
    opacity: 0.25;
}

.globe-1 {
    width: 60vw;
    height: 60vw;
    background: var(--secondary-accent);
    top: -10%;
    left: -10%;
    animation: float 15s infinite ease-in-out;
}

.globe-2 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--primary-accent), transparent);
    bottom: -20%;
    right: -10%;
    animation: float 18s infinite ease-in-out reverse;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* --- Header Minimalista --- */
.main-header {
    position: absolute;
    /* Integrate with hero */
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 100;
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
}

/* --- Tipografía y Estilos Generales --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

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

.highlight-text {
    color: var(--primary-accent);
    font-style: italic;
    position: relative;
    white-space: nowrap;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-accent);
    opacity: 0.6;
}

/* --- Botones --- */
.cta-button-small {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cta-button-small:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

.cta-button-primary {
    background: linear-gradient(135deg, var(--primary-accent), #B8860B);
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 4px;
    /* Slightly squarer for premium feel */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button-primary.pulsing {
    animation: pulse-glow 2s infinite;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-button-block {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-accent);
    border: none;
    color: #050507;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border-radius: 4px;
}

.cta-button-block:hover {
    background: #FFD700;
    box-shadow: var(--shadow-glow);
}

.btn-text {
    font-size: 1.1rem;
}

.btn-subtext {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: none;
}

.cta-button-secondary {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    padding: 6rem 5% 2rem;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fade-in-up 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    opacity: 0.9;
}

.micro-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* --- Book Mockup (CSS Pure) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-mockup {
    width: 300px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5);
    animation: float 6s infinite ease-in-out;
}

.book-mockup:hover {
    transform: rotateY(-15deg) translateY(-10px);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    background-image: radial-gradient(circle at 50% 30%, #2a2a2a, #0a0a0f);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 2px 5px 5px 2px;
}

.cover-content h2 {
    font-size: 3rem;
    color: var(--primary-accent);
    border-top: 1px solid var(--primary-accent);
    border-bottom: 1px solid var(--primary-accent);
    padding: 1rem 0;
    margin: 1rem 0;
}

.cover-subtitle {
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
}

.cover-author {
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: #888;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: #000;
    transform: rotateY(90deg) translateZ(-20px);
}

/* --- Credibility Bar --- */
.credibility-bar {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 0 auto 4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Features Section --- */
.features-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* --- Capture Section --- */
.capture-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}

.capture-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    min-height: 400px;
    /* Pre-reserve space */
}

/* Footer */
.main-footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.separator {
    color: var(--glass-border);
}

.capture-container,
.success-container {
    background: #0e0e12;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.capture-header {
    text-align: center;
    margin-bottom: 2rem;
}

.capture-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

.capture-form input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    /* Space for icon */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.capture-form input:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Success State */
.success-container {
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(5, 5, 10, 0.95));
    border: 1px solid var(--primary-accent);
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    visibility: hidden;
}

.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
    z-index: 10;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s infinite ease-in-out;
}

.email-check-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.check-steps {
    list-style: none;
    margin-top: 1rem;
}

.check-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Mobile Specifics --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        /* Visual on top? Or bottom. Let's keep Standard: Text Top, Visual Bottom for conversion flow, or visual top for impact. Let's do Standard Flow */
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .book-mockup {
        width: 220px;
        height: 330px;
        margin: 0 auto;
    }

    .capture-container {
        padding: 2rem 1.5rem;
    }
}