/* ============================================
   LIBRO.CSS - Página del Libro
   Los Secretos del Trading - FlowTrading Global
   Versión 2 - Sin emojis, con imágenes personalizadas
============================================ */

/* Importar estilos base */
@import url('../main.css');
@import url('../layout.css');
@import url('../components.css');
@import url('../components/book-3d.css');
@import url('../components/scroll-animations.css');

/* ============================================
   VARIABLES LIBRO - Aliases a variables de main.css
   Modo oscuro por defecto, light-mode las sobrescribe
============================================ */
:root {
    /* Aliases para compatibilidad */
    --bg-primary: var(--bg-dark, #0a0a0a);
    --bg-secondary: var(--bg-dark-secondary, #111111);
    --bg-card: var(--card, #1a1a1a);
    --bg-hover: #222222;
    --text-primary: var(--text-light, #ffffff);
    --text-secondary: var(--text-light-secondary, rgba(255, 255, 255, 0.7));
    --border-color: var(--border, rgba(255, 255, 255, 0.1));

    /* Colores específicos */
    --green: #10b981;
    --red: #ef4444;
    --blue: #3b82f6;
}

/* Light mode - Override de aliases */
body.light-mode {
    --bg-primary: var(--bg-light, #f5f5f5);
    --bg-secondary: var(--bg-light-secondary, #ffffff);
    --bg-card: var(--bg-light-secondary, #ffffff);
    --bg-hover: var(--bg-light-tertiary, #f0f0f0);
    --text-primary: var(--text-dark, #1a1a1a);
    --text-secondary: var(--text-dark-secondary, #333333);
    --border-color: var(--border, #e0e0e0);
}

/* ============================================
   LIGHT MODE - Overrides para modo claro
============================================ */
body.light-mode .libro-hero,
body.light-mode .hero-section {
    background: var(--bg-light);
}

body.light-mode .grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body.light-mode .glow-orb {
    opacity: 0.08;
}

body.light-mode .title-main {
    color: var(--text-dark);
}

body.light-mode .hero-subtitle,
body.light-mode .hero-description {
    color: var(--text-dark-secondary);
}

body.light-mode .hero-author {
    color: var(--text-dark-muted);
}

body.light-mode .countdown-item {
    background: var(--bg-light-secondary);
    border-color: var(--border);
}

body.light-mode .countdown-unit {
    color: var(--text-dark-muted);
}

body.light-mode .btn-secondary-outline {
    border-color: var(--border);
    color: var(--text-dark);
}

body.light-mode .btn-secondary-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

body.light-mode .info-item {
    color: var(--text-dark-secondary);
}

body.light-mode .scroll-indicator {
    color: var(--text-dark-muted);
}

/* Dragon Section - Light Mode */
body.light-mode .dragon-section {
    background: var(--bg-light-secondary);
}

body.light-mode .philosophy-text p {
    color: var(--text-dark-secondary);
}

body.light-mode .text-white {
    color: var(--text-dark);
    text-shadow: none;
}

body.light-mode .paradigm-box {
    background: var(--bg-light);
    border-color: var(--border);
}

body.light-mode .paradigm-content p {
    color: var(--text-dark-secondary);
}

/* Learn Section - Light Mode */
body.light-mode .learn-section {
    background: var(--bg-light);
}

body.light-mode .learn-card {
    background: var(--bg-light-secondary);
    border-color: var(--border);
}

body.light-mode .learn-card h3 {
    color: var(--text-dark);
}

body.light-mode .learn-card p {
    color: var(--text-dark-secondary);
}

/* Independence Section - Light Mode */
body.light-mode .independence-section {
    background: var(--bg-light-secondary);
}

body.light-mode .dependency-item {
    border-bottom-color: var(--border);
    color: var(--text-dark);
}

body.light-mode .dependency-item.crossed {
    color: var(--text-dark-muted);
}

body.light-mode .freedom-message {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
}

body.light-mode .freedom-message p {
    color: var(--text-dark-secondary);
}

body.light-mode .visual-card {
    background: var(--bg-light);
    border-color: var(--border);
}

body.light-mode .before .label,
body.light-mode .after .label {
    color: var(--text-dark-muted);
}

body.light-mode .vs-symbol,
body.light-mode .vs-text {
    color: var(--text-dark-muted);
}

body.light-mode .before p,
body.light-mode .after p {
    color: var(--text-dark-secondary);
}

/* Pricing Section - Light Mode */
body.light-mode .pricing-section {
    background: var(--bg-light);
}

body.light-mode .pricing-card {
    background: var(--bg-light-secondary);
    border-color: var(--border);
}

body.light-mode .pricing-card.featured {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), var(--bg-light-secondary));
}

body.light-mode .card-header h3 {
    color: var(--text-dark);
}

body.light-mode .card-subtitle {
    color: var(--text-dark-muted);
}

body.light-mode .card-price .period {
    color: var(--text-dark-muted);
}

body.light-mode .card-features li {
    border-bottom-color: var(--border);
    color: var(--text-dark-secondary);
}

body.light-mode .card-features .muted {
    color: var(--text-dark-muted);
}

body.light-mode .pricing-note {
    background: rgba(239, 68, 68, 0.05);
}

body.light-mode .pricing-note p {
    color: var(--text-dark-secondary);
}

/* Author Section - Light Mode */
body.light-mode .author-section {
    background: var(--bg-light-secondary);
}

body.light-mode .author-bio p {
    color: var(--text-dark-secondary);
}

body.light-mode .author-quote blockquote {
    color: var(--text-dark);
}

body.light-mode .author-placeholder {
    background: var(--bg-light);
}

/* FAQ Section - Light Mode */
body.light-mode .faq-section {
    background: var(--bg-light);
}

body.light-mode .faq-item {
    background: var(--bg-light-secondary);
    border-color: var(--border);
}

body.light-mode .faq-question {
    color: var(--text-dark);
}

body.light-mode .faq-answer p {
    color: var(--text-dark-secondary);
}

/* Final CTA - Light Mode */
body.light-mode .final-cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), var(--bg-light));
}

body.light-mode .cta-content h2 {
    color: var(--text-dark);
}

body.light-mode .cta-content > p {
    color: var(--text-dark-secondary);
}

body.light-mode .cta-note {
    color: var(--text-dark-muted);
}

/* Triedge Section - Light Mode */
body.light-mode .triedge-section {
    background: var(--bg-light);
}

body.light-mode .triedge-card {
    background: var(--bg-light-secondary);
    border-color: var(--border);
}

body.light-mode .triedge-card.featured {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), var(--bg-light-secondary));
}

body.light-mode .triedge-card h3 {
    color: var(--text-dark);
}

body.light-mode .triedge-card p {
    color: var(--text-dark-secondary);
}

body.light-mode .triedge-result p {
    color: var(--text-dark-secondary);
}

/* Section Common - Light Mode */
body.light-mode .section-title {
    color: var(--text-dark);
}

body.light-mode .section-subtitle {
    color: var(--text-dark-secondary);
}

/* Modals - Light Mode */
body.light-mode .modal-content {
    background: var(--bg-light);
    border-color: var(--border);
}

body.light-mode .modal-close {
    background: var(--bg-light-secondary);
    color: var(--text-dark-secondary);
}

body.light-mode .modal-header h2 {
    color: var(--text-dark);
}

body.light-mode .modal-header p {
    color: var(--text-dark-secondary);
}

body.light-mode .product-summary {
    background: var(--bg-light-secondary);
}

body.light-mode .product-details h3 {
    color: var(--text-dark);
}

body.light-mode .product-details p {
    color: var(--text-dark-muted);
}

body.light-mode .form-group label {
    color: var(--text-dark);
}

body.light-mode .form-group input {
    background: var(--bg-light-secondary);
    border-color: var(--border);
    color: var(--text-dark);
}

body.light-mode .form-group input::placeholder {
    color: var(--text-dark-muted);
}

body.light-mode .form-note p {
    color: var(--text-dark-secondary);
}

/* ============================================
   DRAGON ICON - Imagen del dragon
============================================ */
.dragon-icon {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    vertical-align: middle;
}

.badge-icon .dragon-icon {
    width: 24px;
    height: 24px;
}

.btn-icon .dragon-icon,
button .dragon-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.dragon-symbol .dragon-icon {
    width: 80px;
    height: 80px;
}

.paradigm-icon .dragon-icon {
    width: 48px;
    height: 48px;
}

.learn-icon .dragon-icon {
    width: 40px;
    height: 40px;
}

.dragon-icon-large .dragon-icon {
    width: 60px;
    height: 60px;
}

.icons .dragon-icon {
    width: 50px;
    height: 50px;
    display: block;
    margin: 0 auto 10px;
}

.dragon-emblem .dragon-icon {
    width: 80px;
    height: 80px;
}

.modal-icon .dragon-icon {
    width: 60px;
    height: 60px;
}

/* ============================================
   BOOK DASHBOARD - IDENTICO A LA APP
   Estructura exacta de la captura de pantalla
============================================ */
.book-dashboard {
    padding: 20px 16px;
    padding-top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 1rem);
    padding-bottom: 40px;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* No access card */
.book-no-access {
    display: none;
    padding: 20px 16px;
    padding-top: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 1rem);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   BOOK COVER HEADER - Portada centrada
   Identico a la app movil
============================================ */
.book-cover-header {
    display: flex;
    justify-content: center;
    padding: 24px 0 28px;
}

.book-cover-box {
    width: 150px;
    height: 190px;
    background: #5c4d3a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-icon {
    font-size: 65px;
    color: #d4af37;
}

/* ============================================
   BOOK INFO SECTION - Titulo, autor, descripcion
   Texto centrado igual que la app
============================================ */
.book-info-section {
    text-align: center;
    padding: 0 20px 24px;
}

.book-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.book-author {
    font-size: 14px;
    color: #888888;
    margin: 0 0 8px 0;
}

.book-description {
    font-size: 13px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

/* Divider - Linea separadora sutil */
.book-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 0 20px 0;
}

/* ============================================
   CHAPTERS SECTION - Lista vertical
============================================ */
.book-chapters-section {
    padding: 0 0 40px;
}

.book-chapters-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px 0;
}

.book-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================
   CHAPTER CARD - Identico a la app
   Card oscuro con circulo dorado y flecha
============================================ */
.book-chapter-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.book-chapter-card:hover {
    background: var(--bg-hover);
}

.book-chapter-card:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Numero del capitulo - Circulo dorado solido */
.book-chapter-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
    margin-right: 12px;
}

/* Info del capitulo - titulo y paginas */
.book-chapter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.book-chapter-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.book-chapter-pages {
    font-size: 13px;
    color: #d4af37;
}

/* Flecha/chevron derecha - dorada y fina */
.book-chapter-arrow {
    font-size: 20px;
    color: #d4af37;
    flex-shrink: 0;
    margin-left: 8px;
    opacity: 0.9;
}

.book-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.book-header-author {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.book-progress-info {
    margin-top: auto;
}

.book-progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

.book-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.book-progress-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Chapters Section */
.book-chapters-section {
    margin-bottom: 20px;
}

.book-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.book-chapters-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.book-chapters-scroll::-webkit-scrollbar {
    display: none;
}

.book-chapters-scroll .book-chapter-card {
    min-width: 180px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.book-chapters-scroll .book-chapter-card:hover {
    border-color: var(--gold);
}

.book-chapter-card.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Chapter Card Structure - Igual que la app */
.book-chapter-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-chapters-scroll .book-chapter-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.book-chapter-number.completed {
    background: #4caf50;
    color: #fff;
}

.book-chapter-number.completed ion-icon {
    font-size: 14px;
    color: #fff;
}

.book-chapter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-chapter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-chapter-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.book-chapter-progress {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    margin-top: 8px;
}

/* Chapter Preview */
.book-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.book-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.book-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

/* Read Button - Igual que la app */
.book-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--gold);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.book-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.book-read-btn ion-icon {
    font-size: 16px;
    color: #000;
}

.book-preview-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quick Actions */
.book-actions {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
}

.book-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.book-action-btn:hover {
    color: var(--gold);
}

.book-action-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.book-action-btn:hover .book-action-icon {
    border-color: var(--gold);
}

.book-action-icon ion-icon {
    font-size: 24px;
    color: var(--gold);
}

.book-action-text {
    font-size: 12px;
}

/* ============================================
   RESET & BASE STYLES
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   LIBRO HERO SECTION
============================================ */
.libro-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 200px 30px 60px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--blue);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--blue);
    bottom: -100px;
    left: -100px;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

/* Launch Badge */
.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    margin-bottom: 30px;
}

.badge-dragon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

/* Hero Title */
.hero-title {
    margin-bottom: 15px;
}

.title-main {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.title-accent {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 52px;
    font-weight: 700;
    /* Fallback color sólido */
    color: var(--gold);
    /* Gradiente con prefijos */
    background: -webkit-linear-gradient(135deg, var(--gold), var(--gold-light));
    background: -moz-linear-gradient(135deg, var(--gold), var(--gold-light));
    background: -o-linear-gradient(135deg, var(--gold), var(--gold-light));
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.hero-author {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-author strong {
    color: var(--gold);
    font-weight: 600;
}

/* Countdown */
.countdown-container {
    margin-bottom: 30px;
}

.countdown-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-item {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 18px;
    min-width: 75px;
}

.countdown-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
}

.countdown-unit {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 28px;
    color: var(--gold);
    font-weight: 700;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-cta button {
    min-width: 360px;
}

.btn-primary-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* TODO: ELIMINAR DESPUÉS DEL 15 DE FEBRERO 2026
   Estos estilos son para el botón deshabilitado antes del lanzamiento */
.btn-primary-gold.btn-disabled,
.btn-preorder.btn-disabled {
    background: linear-gradient(135deg, #555, #444);
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary-gold.btn-disabled:hover,
.btn-preorder.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-large {
    padding: 20px 40px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Hero Info */
.hero-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-item svg {
    color: var(--gold);
}

/* Hero Book - Contenedor para el componente book-3d */
.hero-book {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Los estilos del libro 3D ahora están en components/book-3d.css */

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    margin-top: 8px;
}

.scroll-arrow svg {
    color: var(--gold);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   SECTIONS COMMON STYLES
============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
    text-align: center;
}

/* ============================================
   DRAGON SECTION
============================================ */
.dragon-section {
    background: var(--bg-secondary);
}

.dragon-section .section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Convergence Animation */
.convergence-animation {
    position: relative;
    width: 350px;
    height: 380px;
    margin: 0 auto;
    padding-top: 30px;
}

.animal-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.animal-circle img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.animal-circle .animal-label {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.animal-circle.toro {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--green);
}

.animal-circle.toro .animal-label {
    color: var(--green);
}

.animal-circle.oso {
    bottom: 50px;
    left: 30px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--red);
}

.animal-circle.oso .animal-label {
    color: var(--red);
}

.ema-line {
    position: absolute;
    bottom: 50px;
    right: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ema-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
}

.dragon-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.4);
}

.dragon-center {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Dragon Content */
.dragon-content {
    text-align: left;
}

.philosophy-text p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.text-green {
    color: var(--green);
    font-weight: 600;
}
.text-red {
    color: var(--red);
    font-weight: 600;
}
.text-blue {
    color: var(--blue);
    font-weight: 600;
}
.text-white {
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.paradigm-box {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    align-items: flex-start;
}

.paradigm-icon {
    flex-shrink: 0;
}

.paradigm-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.paradigm-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gold);
}

.paradigm-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   LEARN SECTION
============================================ */
.learn-section {
    background: var(--bg-primary);
    text-align: center;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.learn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: left;
    transition: all 0.3s ease;
}

.learn-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.learn-icon {
    margin-bottom: 20px;
    color: var(--gold);
}

.learn-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--gold);
}

.learn-icon .icon-dragon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.learn-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.learn-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   INDEPENDENCE SECTION
============================================ */
.independence-section {
    background: var(--bg-secondary);
}

.independence-section .section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.dependency-list {
    margin: 30px 0;
}

.dependency-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 17px;
}

.dependency-item.crossed {
    color: var(--text-muted);
}

.cross-icon {
    flex-shrink: 0;
}

.cross-icon svg {
    color: var(--red);
}

.freedom-message {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.dragon-icon-large {
    margin-bottom: 20px;
}

.dragon-icon-large img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.freedom-message h3 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 15px;
}

.freedom-message p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Independence Visual */
.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 40px;
}

.before-after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.before,
.after {
    text-align: center;
    flex: 1;
}

.before .label,
.after .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.battle-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.battle-icons svg {
    width: 40px;
    height: 40px;
}

.vs-symbol {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.battle-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.vs-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.flow-icon {
    margin-bottom: 20px;
}

.dragon-icon-result {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.before p,
.after p {
    font-size: 14px;
    color: var(--text-secondary);
}

.arrow-container {
    flex-shrink: 0;
}

.arrow-container svg {
    color: var(--gold);
}

/* ============================================
   PRICING SECTION
============================================ */
.pricing-section {
    background: var(--bg-primary);
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    text-align: left;
}

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

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), var(--bg-card));
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-header {
    margin-bottom: 25px;
    text-align: center;
}

.card-header h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.card-price {
    margin-bottom: 30px;
    text-align: center;
}

.card-price .currency {
    font-size: 22px;
    color: var(--gold);
    vertical-align: top;
}

.card-price .amount {
    font-size: 60px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.card-price .period {
    font-size: 15px;
    color: var(--text-muted);
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.card-features .check svg {
    color: var(--green);
    flex-shrink: 0;
}

.card-features .muted {
    color: var(--text-muted);
    font-style: italic;
}

/* Centrar botones en pricing cards */
.pricing-card .btn-full {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Enlaces como botones en pricing cards */
.pricing-card a.btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-note {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.pricing-note svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-note p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   AUTHOR SECTION
============================================ */
.author-section {
    background: var(--bg-secondary);
}

.author-section .section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.author-role {
    font-size: 15px;
    color: var(--gold);
    margin-bottom: 30px;
}

.author-bio p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.author-quote {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

.author-quote blockquote {
    font-size: 17px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
}

.author-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 320px;
    height: 380px;
}

.image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    clip-path: inset(0 round 20px);
}

.author-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-placeholder img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 0.5;
}

.frame-decoration {
    display: none;
}

/* ============================================
   FAQ SECTION
============================================ */
.faq-section {
    background: var(--bg-primary);
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-item.active {
    border-color: var(--gold);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-icon {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   FINAL CTA
============================================ */
.final-cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), var(--bg-primary));
    text-align: center;
}

.final-cta-section .section-container {
    padding: 80px 30px;
}

.dragon-emblem {
    margin-bottom: 30px;
}

.dragon-emblem img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cta-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-content > p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cta-buttons {
    margin-bottom: 20px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
}

/* Quitar margin del footer para unir con la seccion final */
body:has(.book-landing) footer {
    margin-top: 0;
}

/* ============================================
   MODALS
============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.modal-small {
    max-width: 400px;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--red);
    color: white;
}

.modal-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.modal-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.modal-icon svg {
    color: var(--gold);
}

.modal-header h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-body {
    padding: 20px 30px 30px;
}

.product-summary {
    display: flex;
    gap: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.product-image {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.product-details p {
    font-size: 13px;
    color: var(--text-muted);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-note {
    background: rgba(212, 175, 55, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-note svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.form-note p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Payment Methods Section */
.payment-methods-section {
    margin-bottom: 25px;
}

.payment-methods-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.payment-method-buttons {
    display: flex;
    gap: 10px;
}

.payment-method-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-btn ion-icon {
    font-size: 24px;
    color: var(--gold);
}

.payment-method-btn:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.payment-method-btn.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Payment Instructions */
.payment-instructions {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.payment-instructions h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.wallet-info {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.wallet-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wallet-address {
    font-family: monospace;
    font-size: 13px;
    color: var(--gold);
    word-break: break-all;
    margin-bottom: 10px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

.payment-amount {
    text-align: center;
    margin-bottom: 15px;
}

.payment-amount p {
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-amount strong {
    color: var(--gold);
    font-size: 16px;
}

.bank-info {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.bank-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.bank-info p:last-child {
    margin-bottom: 0;
}

.bank-info strong {
    color: var(--text-primary);
}

.transfer-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.payment-instructions .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-instructions .btn-primary ion-icon {
    font-size: 18px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .dragon-section .section-container,
    .independence-section .section-container,
    .author-section .section-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

    .countdown-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .scroll-indicator {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        left: 0;
        transform: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-info {
        justify-content: center;
    }

    .hero-book {
        margin-top: 30px;
    }

    .dragon-visual {
        order: -1;
    }

    .dragon-content {
        text-align: center;
    }

    .paradigm-box {
        flex-direction: column;
        text-align: center;
    }

    .independence-content {
        text-align: center;
    }

    .dependency-item {
        justify-content: center;
    }

    .author-content {
        text-align: center;
    }

    .author-quote {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--gold);
        padding-top: 20px;
    }

    .learn-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .libro-hero {
        padding: calc(var(--ticker-height, 46px) + var(--header-height, 90px) + 1rem) 20px 50px;
    }

    .title-main,
    .title-accent {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .countdown-item {
        padding: 12px 14px;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 22px;
    }

    .countdown-separator {
        font-size: 22px;
    }

    .section-container {
        padding: 70px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    /* book-3d responsive se maneja en el componente */

    .convergence-animation {
        width: 280px;
        height: 280px;
    }

    .animal-circle {
        width: 80px;
        height: 80px;
    }

    .animal-circle img {
        width: 50px;
        height: 50px;
    }

    .dragon-result {
        width: 90px;
        height: 90px;
    }

    .dragon-center {
        width: 60px;
        height: 60px;
    }

    .learn-grid {
        grid-template-columns: 1fr;
    }

    .before-after {
        flex-direction: column;
        gap: 30px;
    }

    .arrow-container,
    .arrow {
        transform: rotate(90deg);
    }

    .image-frame {
        width: 260px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .libro-hero,
    .hero-section {
        padding: 180px 15px 40px;
    }

    .title-main,
    .title-accent {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
    }

    .launch-badge {
        padding: 8px 15px;
    }

    .badge-text {
        font-size: 12px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta button {
        min-width: auto;
    }

    .btn-primary-gold,
    .btn-secondary-outline,
    .btn-primary,
    .btn-secondary,
    .btn-large {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 14px;
        justify-content: center;
    }

    .countdown-timer {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
    }

    .countdown-item {
        padding: 10px 8px;
        min-width: 50px;
    }

    .countdown-value {
        font-size: 18px;
    }

    .countdown-unit {
        font-size: 9px;
    }

    .countdown-separator {
        font-size: 18px;
    }

    .hero-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .section-container {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 26px;
    }

    .convergence-animation {
        width: 280px;
        height: 300px;
    }

    .animal-circle,
    .color-circle {
        width: 85px;
        height: 85px;
    }

    .animal-circle img {
        width: 50px;
        height: 50px;
    }

    .animal-circle .animal-label,
    .color-circle::after {
        font-size: 10px;
    }

    /* Reposicionar círculos - separar oso y ema entre sí */
    .animal-circle.toro {
        top: 0;
    }

    .animal-circle.oso {
        bottom: 35px;
        left: 5px;
    }

    .ema-line {
        width: 85px;
        height: 85px;
        bottom: 35px;
        right: 5px;
    }

    .dragon-result,
    .color-result {
        width: 105px;
        height: 105px;
    }

    .dragon-center {
        width: 70px;
        height: 70px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .card-price .amount {
        font-size: 48px;
    }

    .modal {
        padding: 15px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-content {
        margin: auto;
        border-radius: 16px;
        max-height: none;
    }

    .modal-header {
        padding: 20px 20px 10px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-header p {
        font-size: 13px;
    }

    .modal-icon img {
        width: 50px;
        height: 50px;
    }

    .modal-body {
        padding: 15px 20px 20px;
    }

    .product-summary {
        padding: 12px;
        gap: 15px;
        margin-bottom: 20px;
    }

    .product-image {
        width: 60px;
        height: 80px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .triedge-card {
        padding: 25px 20px;
    }
}

/* ============================================
   HERO SECTION (Alias para .libro-hero)
============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 200px 30px 60px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* BUTTONS - Usar los de components.css */

/* ============================================
   TRIEDGE SECTION
============================================ */
.triedge-section {
    background: var(--bg-primary);
    text-align: center;
}

.triedge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.triedge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.triedge-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
}

.triedge-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), var(--bg-card));
}

.triedge-card .card-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.1);
    font-family: 'Inter', sans-serif;
}

.triedge-card .card-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.triedge-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.triedge-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.triedge-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.triedge-result .result-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.triedge-result p {
    text-align: left;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   COLOR CIRCLES (Dragon Section)
============================================ */
.color-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease;
}

.color-circle::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.color-circle.green {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--green);
}

.color-circle.green::after {
    color: var(--green);
    bottom: auto;
    top: -25px;
}

.color-circle.red {
    bottom: 30px;
    left: 20px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--red);
}

.color-circle.red::after {
    color: var(--red);
}

.color-circle.blue {
    bottom: 30px;
    right: 20px;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--blue);
}

.color-circle.blue::after {
    color: var(--blue);
}

.color-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.4);
}

.color-result.white .dragon-symbol {
    font-size: 60px;
}

/* ============================================
   RESPONSIVE - TRIEDGE GRID
============================================ */
@media (max-width: 1024px) {
    .triedge-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   BOOK CHECKOUT - New Compact Styles
============================================ */

/* Book Product Card - Compact */
.book-product-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.book-product-card .book-thumb {
    width: 50px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.book-product-card .book-info {
    flex: 1;
}

.book-product-card .book-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.book-product-card .book-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.book-product-card .book-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

/* Buy Button */
.btn-buy-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy-book:hover {
    background: #e5c543;
    transform: translateY(-2px);
}

.btn-buy-book ion-icon {
    font-size: 18px;
}

/* Security Note */
.book-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.book-security-note ion-icon {
    color: var(--green);
    font-size: 14px;
}

/* Card Payment Modal */
.card-modal-content {
    max-width: 420px;
    padding: 30px;
}

.card-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-modal-header ion-icon {
    font-size: 32px;
    color: var(--gold);
}

.card-modal-header h3 {
    font-size: 18px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.card-modal-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Card Form */
.card-form .form-group {
    margin-bottom: 15px;
}

.card-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.card-form .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.card-form .form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.card-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Card Error */
.card-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Card Submit Button */
#cardSubmitBtn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 5px;
}

#cardSubmitBtn:hover:not(:disabled) {
    background: #e5c543;
}

#cardSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#cardSubmitBtn .btn-text,
#cardSubmitBtn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#cardSubmitBtn .btn-loading .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Security Badges */
.card-security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.card-security-badges ion-icon {
    color: var(--green);
    font-size: 16px;
}

/* Modal responsivo */
@media (max-width: 480px) {
    .card-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .card-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAYMENT DISABLED MODAL
============================================ */
.payment-disabled-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.payment-disabled-modal.active {
    opacity: 1;
    visibility: visible;
}

.payment-disabled-content {
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.payment-disabled-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--gold, #d4af37);
}

.payment-disabled-icon svg {
    width: 100%;
    height: 100%;
}

.payment-disabled-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary, #ffffff);
    margin-bottom: 12px;
    font-weight: 600;
}

.payment-disabled-content p {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.payment-disabled-contact {
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}

.payment-disabled-contact strong {
    color: #25d366;
}

.btn-whatsapp-modal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.btn-whatsapp-modal:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-close-modal {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: var(--bg-hover, #222222);
    border-color: var(--text-secondary);
}

/* Light mode */
body.light-mode .payment-disabled-content {
    background: var(--bg-card, #ffffff);
    border-color: var(--border-color, #e0e0e0);
}

body.light-mode .payment-disabled-content h3 {
    color: var(--text-primary, #1a1a1a);
}

body.light-mode .payment-disabled-content p {
    color: var(--text-secondary, #666666);
}

body.light-mode .btn-close-modal {
    border-color: var(--border-color, #e0e0e0);
    color: var(--text-secondary, #666666);
}

body.light-mode .btn-close-modal:hover {
    background: var(--bg-hover, #f0f0f0);
}

/* Mobile */
@media (max-width: 480px) {
    .payment-disabled-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .payment-disabled-content h3 {
        font-size: 1.2rem;
    }

    .btn-whatsapp-modal {
        width: 100%;
        justify-content: center;
    }
}
