/* ═══════════════════════════════════════════════
   RDI Desafío – Frontend Styles
   Fuente: Natom Pro (invocada directamente, 
   ya está instalada en el sitio)
   ═══════════════════════════════════════════════ */

:root {
    --rdi-pink:        #F25C92;
    --rdi-pink-light:  #FDE8F1;
    --rdi-pink-soft:   #FFF0F5;
    --rdi-pink-border: #FAC4D8;
    --rdi-pink-ring:   #FAC4D8;
    --rdi-pink-deep:   #D94478;
    --rdi-pink-cta:    #F25C92;
    --rdi-pink-cta-end:#FAC4D8;
    --rdi-text:        #444444;
    --rdi-text-muted:  #666666;
    --rdi-bg:          #FFFAFC;
    --rdi-white:       #FFFFFF;
    --rdi-gray-locked: #bbb;
    --rdi-shadow:      0 4px 14px rgba(0,0,0,.06);
}

/* ── Reset / Base ─────────────────────────────── */
.rdi-desafio-wrap {
    font-family: 'Natom Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--rdi-text);
    background: var(--rdi-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* Romper fuera de cualquier contenedor del tema / Elementor */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

.rdi-desafio-wrap *,
.rdi-desafio-wrap *::before,
.rdi-desafio-wrap *::after {
    box-sizing: border-box;
}

.rdi-desafio-wrap h1,
.rdi-desafio-wrap h2,
.rdi-desafio-wrap h3 {
    font-family: 'Natom Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

.rdi-desafio-wrap p {
    margin: 0 0 0.5em;
}

.rdi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rdi-inner {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

/* ── Badges ───────────────────────────────────── */
.rdi-badge {
    display: inline-flex;
    align-items: center;
    background: var(--rdi-white);
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid var(--rdi-pink-ring);
}

.rdi-badge-pink {
    display: inline-flex;
    align-items: center;
    background: var(--rdi-pink-soft);
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rdi-pink-deep);
    border: 1px solid var(--rdi-pink-ring);
}

/* ═══════════════ HERO ═══════════════ */
.rdi-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FDE8EF 0%, #FFF8FB 60%, #FFFFFF 100%);
    padding: 56px 0 60px;
}

.rdi-hero-blob-left {
    position: absolute;
    left: -80px;
    top: 0;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    background: rgba(246, 193, 201, 0.35);
    filter: blur(60px);
    pointer-events: none;
}

.rdi-hero-blob-right {
    position: absolute;
    right: 0;
    top: 64px;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    background: rgba(255, 221, 231, 0.45);
    filter: blur(60px);
    pointer-events: none;
}

.rdi-hero-content {
    position: relative;
    max-width: 900px;
}

.rdi-hero h1 {
    margin-top: 20px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
}

.rdi-highlight {
    color: var(--rdi-pink);
}

.rdi-hero-desc {
    margin-top: 20px;
    max-width: 768px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--rdi-text-muted);
}

/* Stats */
.rdi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 32px;
    max-width: 700px;
}

.rdi-stat {
    background: rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid #F9D5DF;
}

.rdi-stat-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--rdi-pink);
}

.rdi-stat-label {
    font-size: 14px;
}

/* ═══════════════ PROPUESTA ═══════════════ */
.rdi-proposal {
    padding: 64px 0;
}

.rdi-proposal h2 {
    margin-top: 16px;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
}

.rdi-proposal p {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--rdi-text-muted);
}

/* ═══════════════ BENEFICIOS ═══════════════ */
.rdi-benefits {
    padding: 0 0 64px;
}

.rdi-benefits h2 {
    margin-top: 16px;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
}

.rdi-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.rdi-benefit-card {
    background: var(--rdi-white);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--rdi-shadow);
    border: 1px solid var(--rdi-pink-border);
}

.rdi-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--rdi-pink-soft);
    font-size: 24px;
    margin-bottom: 16px;
}

.rdi-benefit-card h3 {
    font-size: 18px;
    font-weight: 900;
}

.rdi-benefit-card p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--rdi-text-muted);
}

/* ═══════════════ QUÉ INCLUYE ═══════════════ */
.rdi-includes {
    background: var(--rdi-white);
    padding: 64px 0;
}

.rdi-includes h2 {
    margin-top: 16px;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
}

/* Logros */
.rdi-logros-box {
    margin-top: 40px;
    border-radius: 32px;
    background: linear-gradient(to bottom right, var(--rdi-pink-soft), #FFF9FC);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid var(--rdi-pink-border);
}

.rdi-logros-box h3 {
    font-size: 24px;
    font-weight: 900;
}

.rdi-logros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--rdi-text-muted);
}

/* Días / Acordeón */
.rdi-days {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rdi-day-item {
    background: var(--rdi-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--rdi-pink-border);
}

.rdi-day-item summary {
    cursor: pointer;
    list-style: none;
}

.rdi-day-item summary::-webkit-details-marker {
    display: none;
}

.rdi-day-item summary::marker {
    display: none;
    content: '';
}

.rdi-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rdi-day-badge {
    display: inline-flex;
    border-radius: 9999px;
    background: var(--rdi-white);
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rdi-pink-deep);
    border: 1px solid var(--rdi-pink-ring);
}

.rdi-day-title {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 900;
}

.rdi-day-arrow {
    font-size: 28px;
    transition: transform .25s ease;
}

.rdi-day-item[open] .rdi-day-arrow {
    transform: rotate(180deg);
}

.rdi-day-content {
    margin-top: 20px;
    white-space: pre-line;
    line-height: 1.65;
    color: var(--rdi-text-muted);
    font-size: 16px;
}

.rdi-day-content iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* ── Día bloqueado (gris) ─────────────────────── */
.rdi-day-locked {
    background: #f0f0f0;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #ddd;
    opacity: 0.6;
    cursor: not-allowed;
    user-select: none;
}

.rdi-day-locked .rdi-day-badge {
    background: #e5e5e5;
    color: #999;
    border-color: #ccc;
}

.rdi-day-locked .rdi-day-title {
    color: #999;
}

.rdi-day-lock-icon {
    font-size: 24px;
}

/* ═══════════════ CIERRE ═══════════════ */
.rdi-end {
    background: var(--rdi-white);
    padding: 64px 0;
}

.rdi-end-box {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 32px;
    background: linear-gradient(to right, #FDE7EF, #FFF4F8);
    padding: 32px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid var(--rdi-pink-border);
}

.rdi-end h2 {
    margin-top: 16px;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
}

.rdi-end p {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--rdi-text-muted);
}

/* ═══════════════ CTA ═══════════════ */
.rdi-cta {
    padding: 64px 0;
}

.rdi-cta-box {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 36px;
    background: linear-gradient(to right, var(--rdi-pink-cta), var(--rdi-pink-cta-end));
    padding: 32px 48px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

.rdi-cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    color: var(--rdi-white);
}

.rdi-cta-box > p {
    margin: 16px auto 0;
    max-width: 600px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,.95);
}

/* Recursos */
.rdi-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rdi-resource-card {
    background: rgba(255,255,255,.95);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #C66586;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Botón */
.rdi-cta-button-wrap {
    margin-top: 40px;
}

.rdi-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rdi-white);
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 900;
    color: var(--rdi-pink-deep);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transition: transform .2s ease;
}

.rdi-cta-button:hover {
    transform: scale(1.02);
    color: var(--rdi-pink-deep);
    text-decoration: none;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    .rdi-hero {
        padding: 40px 0;
    }

    .rdi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rdi-benefits-grid {
        grid-template-columns: 1fr;
    }

    .rdi-logros-grid {
        grid-template-columns: 1fr;
    }

    .rdi-resources-grid {
        grid-template-columns: 1fr;
    }

    .rdi-end-box {
        padding: 24px 20px;
    }

    .rdi-cta-box {
        padding: 24px 20px;
    }
}
