body { line-height: 1.6; overflow-x: hidden; }

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar-thumb:hover { background: var(--burgundy-mid); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(123, 45, 53, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(92, 26, 32, 0.2) 0%, transparent 50%);
    animation: heroBgMove 20s ease-in-out infinite alternate;
}

@keyframes heroBgMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -1%) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(123, 45, 53, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold-pale);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--cream);
    opacity: 0.7;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--cream);
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(201, 168, 76, 0.2);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FLOATING CHART (Hero Visual) ===== */

/* ===== SECTIONS COMMON ===== */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--cream);
    opacity: 0.6;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
    background: linear-gradient(180deg, transparent 0%, rgba(61, 15, 20, 0.3) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(42, 16, 21, 0.6);
    border: 1px solid rgba(123, 45, 53, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    background: rgba(123, 45, 53, 0.2);
    border: 1px solid rgba(123, 45, 53, 0.3);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.6;
    line-height: 1.6;
}

/* ===== ASSET CLASSES ===== */
.assets {
    overflow: hidden;
}

.assets-marquee {
    display: flex;
    gap: 1rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.assets-marquee-wrapper {
    overflow: hidden;
    margin-top: 3rem;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.asset-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(42, 16, 21, 0.6);
    border: 1px solid rgba(123, 45, 53, 0.2);
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s;
}

.asset-chip:hover {
    border-color: var(--gold);
    background: rgba(123, 45, 53, 0.2);
}

.asset-chip-icon {
    font-size: 1.3rem;
}

.asset-chip-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.asset-chip-type {
    font-size: 0.75rem;
    color: var(--cream);
    opacity: 0.55;
}

/* ===== BACKTESTING DEMO ===== */
.backtesting {
    background: linear-gradient(180deg, transparent, rgba(61, 15, 20, 0.4), transparent);
}

.backtesting-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.backtesting-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.backtesting-info p {
    color: var(--cream);
    opacity: 0.6;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.backtesting-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.backtesting-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--cream);
    opacity: 0.8;
}

.backtesting-features li .check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(74, 158, 110, 0.15);
    border: 1px solid rgba(74, 158, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--success);
    flex-shrink: 0;
}

.backtesting-demo {
    background: rgba(42, 16, 21, 0.8);
    border: 1px solid rgba(123, 45, 53, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(123, 45, 53, 0.2);
}

.demo-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.demo-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(26, 10, 14, 0.5);
    border-radius: 8px;
    padding: 3px;
}

.demo-tab {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--cream);
    opacity: 0.55;
    transition: all 0.3s;
    font-family: var(--font-sans);
}

.demo-tab.active {
    background: var(--burgundy);
    opacity: 1;
    color: var(--white);
}

.demo-chart-area {
    height: 250px;
    position: relative;
    margin-bottom: 1rem;
}

.demo-chart-area canvas {
    width: 100%;
    height: 100%;
}

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.demo-metric {
    text-align: center;
    padding: 0.75rem;
    background: rgba(26, 10, 14, 0.5);
    border-radius: 8px;
}

.demo-metric-value {
    font-family: var(--font-num); font-variant-numeric: tabular-nums;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.demo-metric-value.green { color: var(--success); }
.demo-metric-value.red { color: var(--danger); }

.demo-metric-label {
    font-size: 0.7rem;
    color: var(--cream);
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* ===== COMPARISON SECTION ===== */
.comparison {
    overflow: hidden;
}

.comparison-table-wrapper {
    background: rgba(42, 16, 21, 0.6);
    border: 1px solid rgba(123, 45, 53, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cream);
    opacity: 0.55;
    font-weight: 500;
    border-bottom: 1px solid rgba(123, 45, 53, 0.2);
    background: rgba(26, 10, 14, 0.3);
}

.comparison-table tbody td {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(123, 45, 53, 0.1);
}

.comparison-table tbody tr {
    transition: background 0.3s;
}

.comparison-table tbody tr:hover {
    background: rgba(123, 45, 53, 0.1);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.asset-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(123, 45, 53, 0.2);
}

.asset-name {
    font-weight: 600;
}

.asset-type {
    font-size: 0.75rem;
    color: var(--cream);
    opacity: 0.55;
}

.table-value {
    font-family: var(--font-num); font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.table-value.positive { color: var(--success); }
.table-value.negative { color: var(--danger); }

.table-bar {
    width: 100%;
    height: 6px;
    background: rgba(123, 45, 53, 0.2);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.table-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    transition: width 1s ease;
}

/* ===== PRICING ===== */
.pricing {
    background: linear-gradient(180deg, transparent, rgba(61, 15, 20, 0.3), transparent);
}

/* Tres planes: Gratis, Plus (destacado) y Pro */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 360px));
    justify-content: center;
    gap: 1.5rem;
    align-items: stretch;
}

/* Selector Mensual / Anual */
.pricing-periodo {
    display: flex;
    width: max-content;
    margin: -1.5rem auto 2.75rem;
    padding: 4px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 50px;
    background: rgba(42, 16, 21, 0.6);
}
.pricing-periodo-op {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--cream);
    opacity: 0.7;
    font: 600 0.85rem var(--font-sans);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, opacity 0.25s;
}
.pricing-periodo-op:hover { opacity: 1; }
.pricing-periodo-op.activo {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--text-dark);
    opacity: 1;
}
.pricing-periodo-op:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.pricing-ahorro {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    background: rgba(74, 158, 110, 0.18);
    color: var(--success);
}
.pricing-periodo-op.activo .pricing-ahorro { background: rgba(26, 8, 10, 0.15); color: var(--text-dark); }

.pricing-card {
    background: rgba(42, 16, 21, 0.6);
    border: 1px solid rgba(123, 45, 53, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--gold);
    background: rgba(42, 16, 21, 0.9);
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.1);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--burgundy));
    border-radius: 20px 20px 0 0;
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.55;
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.7;
}

.pricing-features li .icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-features li .icon.check {
    color: var(--success);
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.pricing-period { font-size: 0.9rem; color: var(--cream); opacity: 0.55; }
.pricing-nota { flex-basis: 100%; font-size: 0.78rem; color: var(--gold-light); opacity: 0.8; }
.pricing-features li { align-items: flex-start; line-height: 1.45; }
.pricing-features li .icon { margin-top: 0.2rem; }
.pricing-features strong { color: var(--gold-light); font-weight: 600; }
.pricing-popular { white-space: nowrap; }

.pricing-pie {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--cream);
    opacity: 0.5;
}

@media (max-width: 1000px) {
    .pricing-grid { grid-template-columns: minmax(0, 440px); }
    .pricing-card.featured { order: -1; }
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(123, 45, 53, 0.15) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--cream);
    opacity: 0.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MOBILE NAV ===== */

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .backtesting-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .hero-stat-divider {
        display: none;
    }
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .demo-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 640px) {
    /* Simulador: título arriba y pestañas debajo, no en una columna estrecha */
    .demo-header { flex-wrap: wrap; gap: 0.75rem; }
    .backtesting-demo { padding: 1.1rem; }
    /* Tabla comparativa: se desliza de lado con el nombre fijo a la izquierda */
    .comparison-table thead th, .comparison-table tbody td { padding: 0.8rem 0.9rem; white-space: nowrap; }
    .comparison-table thead th:first-child, .comparison-table tbody td:first-child {
        position: sticky; left: 0; z-index: 1; background: #1f0b0f;
    }
    section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    /* «Tu patrimonio,» en una línea: antes «Tu» se quedaba solo arriba */
    .hero-title { font-size: 2.4rem; }
}

/* Enlace del texto de la sección Planes («escríbenos») */
.pricing .section-subtitle a { color: var(--gold-light); }

/* Prueba gratis (mejora 59) */
.pricing-probar { text-align: center; margin-top: 0.6rem; font-size: 0.95rem; color: var(--cream); opacity: 0.85; }
.pricing-probar a { color: var(--gold-light); }

/* ===== POR DENTRO: capturas reales (mejora 40) ===== */
.capturas { padding: 7rem 2rem; position: relative; }
.cap-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 auto 2rem; }
.cap-tab {
    font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.3px;
    padding: 0.55rem 1.1rem; border: 1px solid rgba(212, 185, 106, 0.28); border-radius: 0;
    background: transparent; color: rgba(245, 237, 228, 0.72); cursor: pointer; transition: all 0.25s ease;
}
.cap-tab:hover, .cap-tab:focus-visible { color: #F5EDE4; border-color: rgba(212, 185, 106, 0.6); outline: none; }
.cap-tab.activo { background: #D4B96A; border-color: #D4B96A; color: #2A1015; }
/* La lámina: la captura dentro de un doble filete dorado con esquinas, como un grabado. */
.cap-lamina { max-width: 1080px; margin: 0 auto; }
.cap-marco { position: relative; padding: 14px; border: 1px solid rgba(212, 185, 106, 0.55); background: rgba(20, 5, 10, 0.55); }
.cap-marco::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(212, 185, 106, 0.25); pointer-events: none; }
.cap-marco::after {
    content: ''; position: absolute; inset: -5px; pointer-events: none;
    background:
        linear-gradient(#D4B96A, #D4B96A) top left / 11px 1px no-repeat, linear-gradient(#D4B96A, #D4B96A) top left / 1px 11px no-repeat,
        linear-gradient(#D4B96A, #D4B96A) top right / 11px 1px no-repeat, linear-gradient(#D4B96A, #D4B96A) top right / 1px 11px no-repeat,
        linear-gradient(#D4B96A, #D4B96A) bottom left / 11px 1px no-repeat, linear-gradient(#D4B96A, #D4B96A) bottom left / 1px 11px no-repeat,
        linear-gradient(#D4B96A, #D4B96A) bottom right / 11px 1px no-repeat, linear-gradient(#D4B96A, #D4B96A) bottom right / 1px 11px no-repeat;
}
.cap-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; position: relative; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.cap-lamina figcaption { display: flex; align-items: baseline; justify-content: center; gap: 0.9rem; margin-top: 1.25rem; text-align: center; color: rgba(245, 237, 228, 0.72); font-size: 0.9rem; line-height: 1.5; }
.cap-num { font-family: var(--font-display); font-style: italic; color: #D4B96A; white-space: nowrap; }
html[data-tema="claro"] .cap-tab { border-color: rgba(110, 31, 42, 0.28); color: rgba(42, 16, 21, 0.72); }
html[data-tema="claro"] .cap-tab:hover, html[data-tema="claro"] .cap-tab:focus-visible { color: #2A1015; border-color: rgba(110, 31, 42, 0.6); }
html[data-tema="claro"] .cap-tab.activo { background: #6E1F2A; border-color: #6E1F2A; color: #FBF8F2; }
html[data-tema="claro"] .cap-marco { border-color: rgba(138, 106, 31, 0.6); background: rgba(251, 248, 242, 0.7); }
html[data-tema="claro"] .cap-marco::before { border-color: rgba(138, 106, 31, 0.28); }
html[data-tema="claro"] .cap-marco::after { filter: brightness(0.62) saturate(1.2); }
html[data-tema="claro"] .cap-img { box-shadow: 0 14px 40px rgba(42, 16, 21, 0.16); }
html[data-tema="claro"] .cap-lamina figcaption { color: rgba(42, 16, 21, 0.72); }
html[data-tema="claro"] .cap-num { color: #8A6A1F; }
@media (max-width: 700px) {
    .capturas { padding: 4.5rem 1rem; }
    .cap-marco { padding: 8px; }
    .cap-marco::before { inset: 3px; }
    .cap-lamina figcaption { flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
}

/* Las 4 cifras de la portada en una sola línea (19-nov, petición de Pau) */
@media (min-width: 769px) {
    .hero-stats { flex-wrap: nowrap; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
    .hero-stat-label { white-space: nowrap; }
}
/* En el móvil, de dos en dos */
@media (max-width: 768px) {
    .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
}

/* ── Cómo funciona en 3 pasos (pulir 39) ── */
.pasos-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.paso { padding-top: 2.4rem; }
.paso-num {
    position: absolute; top: 1.1rem; right: 1.4rem;
    font-family: var(--font-display); font-style: italic; font-size: 3rem; line-height: 1; color: var(--gold); opacity: 0.35;
}
.paso h3 { margin-top: 0; }
@media (max-width: 900px) { .pasos-grid { grid-template-columns: 1fr; } }

/* ── Comparativa honesta (pulir 40) ── */
.frente-tabla tbody th {
    padding: 1rem 1.5rem; text-align: left; font-weight: 500; font-size: 0.9rem; color: var(--cream);
    border-bottom: 1px solid rgba(123, 45, 53, 0.1);
}
.frente-tabla tbody tr:last-child th { border-bottom: none; }
.frente-tabla td { color: var(--cream); opacity: 0.85; }
.frente-tabla td.frente-no { opacity: 0.55; }
.frente-tabla .frente-df { color: var(--gold-light); opacity: 1; }
.frente-tabla thead th.frente-df { font-family: var(--font-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; opacity: 1; }
.frente-tabla td.frente-df { background: rgba(201, 168, 76, 0.05); }
.frente-nota { text-align: center; margin: 1rem auto 0; max-width: 640px; font-size: 0.82rem; color: var(--cream); opacity: 0.55; }
.frente-quien { display: none; }
/* En el móvil, cada fila es una ficha: la pregunta arriba y las tres respuestas debajo, con su nombre. */
@media (max-width: 640px) {
    .frente .comparison-table-wrapper { overflow: visible; }
    .frente-tabla thead { display: none; }
    .frente-tabla, .frente-tabla tbody, .frente-tabla tr, .frente-tabla tbody th, .frente-tabla tbody td { display: block; width: 100%; }
    .frente-tabla tr { padding: 0.9rem 1rem; border-bottom: 1px solid rgba(123, 45, 53, 0.2); }
    .frente-tabla tbody tr:last-child { border-bottom: none; }
    .frente-tabla tbody th { padding: 0 0 0.45rem; border: 0; font-family: var(--font-display); font-size: 1.02rem; white-space: normal; }
    .frente-tabla tbody td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border: 0; white-space: normal; text-align: right; font-size: 0.86rem; }
    .frente-tabla td.frente-df { background: none; }
    .frente-quien { display: inline; flex-shrink: 0; text-align: left; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); opacity: 0.55; padding-top: 0.15rem; }
    .frente-df .frente-quien { font-family: var(--font-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--gold-light); opacity: 1; padding-top: 0; }
}

/* ── Preguntas rápidas (pulir 39) ── */
.preguntas-lista { max-width: 760px; margin: 0 auto; border-top: 1px solid rgba(201, 168, 76, 0.18); }
.pregunta { border-bottom: 1px solid rgba(201, 168, 76, 0.18); }
.pregunta summary {
    list-style: none; cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
    font-family: var(--font-display); font-size: 1.12rem; color: var(--cream);
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: '+'; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-size: 1.3rem; color: var(--gold); transition: transform 0.2s; }
.pregunta[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pregunta summary:hover, .pregunta summary:focus-visible { color: var(--gold-light); outline: none; }
.pregunta p { margin: 0 0 1.2rem; max-width: 680px; font-size: 0.95rem; line-height: 1.65; color: var(--cream); opacity: 0.8; }
.preguntas-mas { text-align: center; margin-top: 1.6rem; }
.preguntas-mas a { color: var(--gold-light); font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid rgba(201, 168, 76, 0.4); padding-bottom: 2px; }
.preguntas-mas a:hover { border-color: var(--gold); }
