/* ============================================
   EBOOK.CSS — Pastel Soft Retro Style
   ============================================ */

/* ========== HERO ========== */
.ebook-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 1.5rem 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .ebook-hero { grid-template-columns: 1fr; padding-top: 100px; }
}

.retro-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(126,215,166,0.2);
    color: var(--verde-oscuro);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(126,215,166,0.4);
}
[data-theme="dark"] .retro-tag { color: var(--verde-pastel); }

.tag-dot {
    width: 8px; height: 8px;
    background: var(--verde-pastel);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--verde-pastel);
}

/* Tipografía retro pixel */
.retro-title {
    font-family: 'Press Start 2P', 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.retro-title-small {
    font-family: 'Press Start 2P', 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.gradient-word {
    background: linear-gradient(135deg, var(--verde-pastel), var(--verde-oscuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.italic-em {
    font-style: italic;
    font-family: 'Poppins', serif;
    background: linear-gradient(135deg, var(--verde-pastel), var(--verde-oscuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Botones estilo retro-soft */
.btn-retro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary-retro {
    background: linear-gradient(135deg, #C4B5FD, #A78BFA);
    color: #312E81;
}
.btn-primary-retro:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(167,139,250,0.4);
}
.btn-secondary-retro {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary-retro:hover {
    border-color: var(--verde-pastel);
    color: var(--verde-oscuro);
}

.btn-full { width: 100%; justify-content: center; margin-top: 1rem; }

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ========== HERO RIGHT (Mockup) ========== */
.hero-right {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-box {
    background: linear-gradient(180deg, #E8F4FF 0%, #D6FFE8 100%);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(126,215,166,0.15);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
[data-theme="dark"] .mockup-box {
    background: linear-gradient(180deg, #152B42 0%, #0B2E25 100%);
}

.mockup-main {
    width: 100%;
    max-width: 480px;
    height: 420px;
}
.mockup-small {
    width: 100%;
    height: 160px;
    margin: 1rem 0;
    padding: 1rem;
}
.mockup-wide {
    width: 100%;
    height: 380px;
}

.mockup-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Placeholder provisional */
.placeholder {
    text-align: center;
    color: var(--text-muted);
    opacity: 0.7;
    padding: 1rem;
}
.placeholder i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.8rem;
    color: var(--verde-pastel);
}
.placeholder p {
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.5;
    display: block;
}

/* Decoraciones pastel */
.deco-cloud {
    position: absolute;
    background: #fff;
    border-radius: 50px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
    z-index: 1;
}
.dc1 { width: 60px; height: 20px; top: 10%; left: -5%; animation: floatCloud 5s infinite; }
.dc1::before, .dc1::after { content:''; position:absolute; background:#fff; border-radius:50%; }
.dc1::before { width:20px; height:20px; top:-8px; left:10px; }
.dc1::after { width:15px; height:15px; top:-6px; right:10px; }

.dc2 { width: 50px; height: 18px; bottom: 15%; right: -3%; animation: floatCloud 5s infinite; animation-delay: 2s; }
.dc2::before, .dc2::after { content:''; position:absolute; background:#fff; border-radius:50%; }
.dc2::before { width:16px; height:16px; top:-6px; left:8px; }
.dc2::after { width:14px; height:14px; top:-5px; right:8px; }

@keyframes floatCloud {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.deco-sparkle {
    position: absolute;
    font-size: 1.8rem;
    z-index: 3;
    animation: sparkleFloat 3s infinite;
}
.ds1 { top: 15%; right: 10%; animation-delay: 0s; }
.ds2 { bottom: 20%; left: 8%; font-size: 1.3rem; animation-delay: 1.5s; }
@keyframes sparkleFloat {
    0%,100% { opacity: 0.5; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* ========== SECTION HEAD CENTER ========== */
.section-head-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.section-head-center p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ========== CONTENT GRID ========== */
.ebook-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

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

.content-card {
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: .4s;
    display: flex;
    flex-direction: column;
}
.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-peach { background: linear-gradient(180deg, #FFF1E0 0%, #FFE0C4 100%); }
.card-mint  { background: linear-gradient(180deg, #E8FFF0 0%, #C4FFD9 100%); }
.card-lilac { background: linear-gradient(180deg, #F0E8FF 0%, #DDD0FF 100%); }

[data-theme="dark"] .card-peach { background: linear-gradient(180deg, #2A1F15 0%, #1F160D 100%); }
[data-theme="dark"] .card-mint  { background: linear-gradient(180deg, #0F2A1A 0%, #081F12 100%); }
[data-theme="dark"] .card-lilac { background: linear-gradient(180deg, #1F1A2E 0%, #15102A 100%); }

.card-tag {
    display: inline-block;
    background: rgba(255,255,255,0.7);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--azul-marino);
    margin-bottom: 1rem;
    width: fit-content;
}
[data-theme="dark"] .card-tag { background: rgba(0,0,0,0.3); color: var(--verde-pastel); }

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-primary);
}
.content-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== BENEFITS ========== */
.benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: .3s;
}
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.b-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.1));
}
.benefit-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ========== SHOWCASE ========== */
.showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) {
    .showcase { grid-template-columns: 1fr; }
}
.showcase-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}
.showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}
.showcase-list i {
    color: var(--verde-pastel);
    font-size: 1.1rem;
}

/* ========== PRICING ========== */
.pricing {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--verde-pastel);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(126,215,166,0.2);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF8C42, #FFB88C);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255,140,66,0.4);
}
.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}
.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.price-old {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-new {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--verde-pastel), var(--verde-oscuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price-tag {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}
.price-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.price-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
}
.price-features i {
    color: var(--verde-pastel);
}
.trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.trust-row i { color: var(--verde-pastel); margin-right: 4px; }

/* ========== FAQ ========== */
.faq {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    transition: .3s;
}
.faq-item[open] {
    border-color: var(--verde-pastel);
    box-shadow: 0 10px 30px rgba(126,215,166,0.15);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--verde-pastel);
    transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== CTA FINAL ========== */
.cta-final {
    max-width: 900px;
    margin: 3rem auto;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-dark);
    color: var(--beige);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    top: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--verde-pastel) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
}
.cta-final h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}
.cta-final h2 em {
    font-style: italic;
    color: var(--verde-pastel);
}
.cta-sub {
    opacity: 0.8;
    margin-bottom: 2rem;
    position: relative;
}