/* ═══════════════════════════════════════════════
   RDI Partners – Frontend Styles
   Paleta: Rincón de Ideas (#eb5c91 / #fac4d8)
   ═══════════════════════════════════════════════ */

:root {
    --rdp-primary:      #eb5c91;
    --rdp-primary-light:#fac4d8;
    --rdp-primary-deep: #e4208c;
    --rdp-bg:           #FEFEFE;
    --rdp-bg-soft:      #FFF5F8;
    --rdp-white:        #FFFFFF;
    --rdp-text:         #4B4F58;
    --rdp-text-muted:   #6b7280;
    --rdp-text-form:    #4B4F58;
    --rdp-border:       #f3dfe5;
    --rdp-input-border: #e8d5dc;
    --rdp-input-bg:     #FFFBFC;
    --rdp-shadow:       0 4px 14px rgba(0,0,0,.06);
    --rdp-ring:         0 0 0 1px var(--rdp-border);
}

/* ── Astra Layout Override (solo partners) ───────────── */
/* Sidebar visible en el Customizer pero vacía: #primary suele quedar al ~70% y el bloque se ve corrido a la izquierda. */
body.rdi-partners-page #secondary,
body.rdi-partners-page aside#secondary,
body.rdi-partners-page .secondary.widget-area {
    display: none !important;
}

body.rdi-partners-page .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

body.rdi-partners-page .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
}

body.rdi-partners-page .site-content {
    width: 100% !important;
    max-width: 100% !important;
}

body.rdi-partners-page #primary,
body.rdi-partners-page .content-area,
body.rdi-partners-page .site-main,
body.rdi-partners-page article,
body.rdi-partners-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.rdi-partners-page #primary,
body.rdi-partners-page #primary.content-area,
body.rdi-partners-page .content-area.primary {
    flex: 1 1 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Astra + Elementor: reglas dinámicas con mayor especificidad que .ast-no-sidebar solo */
body.rdi-partners-page #primary,
body.rdi-partners-page.ast-no-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
}

/* Contenedores de builder que envuelven el contenido */
body.rdi-partners-page .entry-content .rdp-partners-wrap,
body.rdi-partners-page .site-main .rdp-partners-wrap,
body.rdi-partners-page .elementor-widget-container .rdp-partners-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.rdi-partners-page #page {
    overflow-x: hidden;
}

body.rdi-partners-page .site-content .ast-container .ast-row,
body.rdi-partners-page .ast-plain-container .site-content .ast-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

body.rdi-partners-page .elementor-section .elementor-container,
body.rdi-partners-page .e-con-inner {
    max-width: 100% !important;
}

/* ── Reset / Base ─────────────────────────────── */
/* Breakout: el wrap ocupa el ancho del viewport aunque #primary sea angosto (Astra sidebar / columnas). */
body.rdi-partners-page .rdp-partners-wrap {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    position: relative;
    isolation: isolate;
}

.rdp-partners-wrap {
    font-family: 'Natom Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--rdp-text);
    background: var(--rdp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
}

.rdp-partners-wrap *,
.rdp-partners-wrap *::before,
.rdp-partners-wrap *::after { box-sizing: border-box; }

.rdp-partners-wrap h1,
.rdp-partners-wrap h2,
.rdp-partners-wrap h3 {
    font-family: 'Natom Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    color: var(--rdp-primary);
}

.rdp-partners-wrap p {
    margin: 0 0 0.5em;
}

.rdp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    float: none !important;
    clear: both;
    box-sizing: border-box;
}

/*
 * Grillas de tarjetas: CSS Grid + justify-content:center centra el bloque cuando sobra espacio;
 * auto-fit + minmax evita la fila 2 pegada a la izquierda (problema típico con flex + líneas de distinto ancho).
 */
.rdp-partners-wrap .rdp-row-center {
    --rdp-row-gap: 16px;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.rdp-partners-wrap .rdp-row-center__track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 320px));
    justify-content: center !important;
    justify-items: stretch !important;
    align-content: start !important;
    gap: var(--rdp-row-gap);
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rdp-partners-wrap .rdp-row-center__track > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

.rdp-row-center--stats .rdp-row-center__track {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px));
}

.rdp-row-center--social .rdp-row-center__track,
.rdp-row-center--affinity .rdp-row-center__track {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 260px));
}

.rdp-row-center--stats {
    --rdp-row-gap: 20px;
}

.rdp-row-center--metrics {
    --rdp-row-gap: 16px;
}

.rdp-row-center--social {
    --rdp-row-gap: 16px;
    margin-top: 32px !important;
}

.rdp-row-center--affinity {
    --rdp-row-gap: 16px;
    margin-top: 32px !important;
}

body.rdi-partners-page .rdp-partners-wrap .rdp-row-center,
body.rdi-partners-page .rdp-partners-wrap .rdp-row-center__track {
    box-sizing: border-box !important;
}

/* ── Shared ───────────────────────────────────── */
.rdp-subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rdp-primary);
    margin-bottom: 12px;
    text-align: center;
}

.rdp-badge {
    display: inline-flex;
    align-items: center;
    background: var(--rdp-white);
    border-radius: 9999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

.rdp-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--rdp-primary);
    color: var(--rdp-white);
    padding: 16px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: transform .2s ease;
}
.rdp-btn-primary:hover { transform: translateY(-2px); color: var(--rdp-white); text-decoration: none; }

.rdp-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--rdp-white);
    border: 1px solid var(--rdp-border);
    color: var(--rdp-text);
    padding: 16px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: transform .2s ease;
}
.rdp-btn-secondary:hover { transform: translateY(-2px); color: var(--rdp-text); text-decoration: none; }

.rdp-btn-white {
    display: inline-flex;
    background: var(--rdp-white);
    color: var(--rdp-text);
    padding: 16px 28px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.rdp-btn-white:hover { color: var(--rdp-text); text-decoration: none; }

.rdp-btn-outline {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,.7);
    color: var(--rdp-text);
    padding: 16px 28px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.rdp-btn-outline:hover { color: var(--rdp-text); text-decoration: none; }

/* Placeholder image */
.rdp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e8d5dc;
    background: var(--rdp-bg-soft);
    border-radius: 22px;
    color: #4B4F58;
    font-size: 14px;
    text-align: center;
    aspect-ratio: 16 / 10;
    width: 100%;
}
.rdp-placeholder-sq { aspect-ratio: 1; }

/* ═══════════════ HERO ═══════════════ */
.rdp-hero {
    padding: 64px 0 40px;
}

.rdp-hero-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rdp-hero-centered h1,
.rdp-hero-centered p { text-align: center; }

.rdp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.12;
    font-family: 'Benny Black', 'Natom Pro', -apple-system, sans-serif;
}

.rdp-hero-desc {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--rdp-text-muted);
    max-width: 900px;
}

.rdp-hero-buttons {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ═══════════════ STATS ═══════════════ */
.rdp-stats {
    padding: 0 0 40px;
}

.rdp-stat-card {
    background: var(--rdp-white);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    border: 1px solid var(--rdp-border);
    text-align: center;
}

.rdp-stat-card p { text-align: center; }

.rdp-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--rdp-primary);
    margin: 0;
}

.rdp-stat-label {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--rdp-text-muted);
}

/* ═══════════════ ABOUT ═══════════════ */
.rdp-about {
    padding: 64px 0;
}

.rdp-about-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rdp-about-centered h2,
.rdp-about-centered p { text-align: center; }

.rdp-about h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 900;
    font-family: 'Benny Black', 'Natom Pro', -apple-system, sans-serif;
}

.rdp-about-text {
    width: 100%;
    max-width: 1000px;
}

.rdp-about .rdp-p-lg {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--rdp-text-muted);
}

.rdp-about-text p {
    margin-top: 16px;
    line-height: 1.8;
    color: var(--rdp-text-muted);
}

/* Slider */
.rdp-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 24px;
}

.rdp-slider-track {
    display: flex;
    transition: transform .4s ease;
}

.rdp-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.rdp-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.rdp-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.85);
    border: 1px solid var(--rdp-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    color: var(--rdp-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: background .2s ease;
    z-index: 2;
}
.rdp-slider-btn:hover { background: var(--rdp-white); }
.rdp-slider-prev { left: 12px; }
.rdp-slider-next { right: 12px; }

.rdp-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.rdp-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rdp-border);
    border: none;
    cursor: pointer;
    transition: background .2s ease;
    padding: 0;
}
.rdp-slider-dot.active { background: var(--rdp-primary); }

.rdp-slider-placeholder {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    margin: 40px auto 0;
    width: 100%;
    max-width: 700px;
}

/* ═══════════════ METRICS ═══════════════ */
.rdp-metrics {
    padding: 16px 0 40px;
}

.rdp-metrics-header-top {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.rdp-metrics-header-top h2,
.rdp-metrics-header-top p { text-align: center; }

.rdp-metrics-header-top h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    font-family: 'Benny Black', 'Natom Pro', -apple-system, sans-serif;
}

.rdp-metrics-desc {
    margin-top: 16px;
    line-height: 1.8;
    color: var(--rdp-text-muted);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rdp-metric-item {
    box-sizing: border-box;
    background: var(--rdp-white);
    border-radius: 22px;
    padding: 24px;
    border: 1px solid var(--rdp-border);
    text-align: center;
}

.rdp-metric-item p { text-align: center; }

.rdp-metric-title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 0;
}

.rdp-metric-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--rdp-primary);
    margin: 8px 0 0;
}

.rdp-metric-desc {
    font-size: 14px;
    color: var(--rdp-text-muted);
    margin: 8px 0 0;
}

/* ═══════════════ SOCIAL ═══════════════ */
.rdp-social {
    padding: 64px 0;
    text-align: center;
}

.rdp-social h2,
.rdp-social p { text-align: center; }

.rdp-social h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    font-family: 'Benny Black', 'Natom Pro', -apple-system, sans-serif;
}

.rdp-social-desc {
    margin-top: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: var(--rdp-text-muted);
}

.rdp-social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--rdp-white);
    border-radius: 24px;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--rdp-text);
    text-decoration: none;
    border: 1px solid var(--rdp-border);
    transition: transform .2s ease;
}
.rdp-social-card:hover { transform: translateY(-4px); color: var(--rdp-text); text-decoration: none; }

.rdp-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--rdp-primary);
}
.rdp-social-icon svg {
    width: 24px;
    height: 24px;
}

.rdp-social-name { font-size: 16px; }

/* ═══════════════ FORM ═══════════════ */
.rdp-form-section {
    padding: 0 0 64px;
}

.rdp-form-stacked {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* Header banner */
.rdp-form-header-banner {
    background: var(--rdp-primary-light);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
}

.rdp-form-header-banner h2,
.rdp-form-header-banner p { text-align: left; }

.rdp-form-header-text {
    flex: 1;
    min-width: 200px;
}

.rdp-form-sidebar-sub {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rdp-primary-deep);
}

.rdp-form-header-banner h2 {
    margin-top: 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    font-family: 'Benny Black', 'Natom Pro', -apple-system, sans-serif;
}

.rdp-form-header-banner > .rdp-form-header-text > p {
    margin-top: 16px;
    line-height: 1.8;
    color: var(--rdp-text-form);
}

.rdp-form-important {
    margin-top: 32px;
    background: rgba(255,255,255,.7);
    border-radius: 22px;
    padding: 20px;
}

.rdp-form-important-title {
    font-weight: 700;
    margin: 0 0 8px;
}

.rdp-form-important p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--rdp-text-form);
    text-align: left;
}

/* Form card */
.rdp-form-card {
    background: var(--rdp-white);
    border-radius: 28px;
    padding: 32px;
    border: 1px solid var(--rdp-border);
    text-align: left;
}

.rdp-form-card h2,
.rdp-form-card p,
.rdp-form-card legend,
.rdp-form-card label { text-align: left; }

.rdp-form-wide {
    width: 100%;
}

.rdp-form-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 32px;
}

.rdp-form-legend {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
    display: block;
    width: 100%;
    text-align: left;
}

.rdp-form-fields {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.rdp-field {
    display: block;
}
.rdp-field-wide { grid-column: 1 / -1; }

.rdp-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rdp-text-form);
    margin-bottom: 8px;
    text-align: left;
}
.rdp-field-label abbr {
    color: var(--rdp-primary);
    text-decoration: none;
}

.rdp-field input[type="text"],
.rdp-field input[type="email"],
.rdp-field input[type="url"],
.rdp-field select,
.rdp-field textarea {
    width: 100%;
    border: 1px solid var(--rdp-input-border);
    background: var(--rdp-input-bg);
    border-radius: 16px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--rdp-text);
    outline: none;
    transition: border-color .2s ease;
}

.rdp-field input:focus,
.rdp-field select:focus,
.rdp-field textarea:focus {
    border-color: var(--rdp-primary);
}

.rdp-field input::placeholder,
.rdp-field textarea::placeholder {
    color: var(--rdp-text-muted);
    opacity: 0.6;
}

.rdp-field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .15) !important;
}

.rdp-checkbox-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.rdp-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--rdp-input-border);
    background: var(--rdp-input-bg);
    border-radius: 16px;
    padding: 12px 16px;
    cursor: pointer;
}

.rdp-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rdp-primary);
}

.rdp-checkbox-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Conditional hidden */
.rdp-conditional {
    display: none !important;
}
.rdp-conditional.rdp-conditional-visible {
    display: block !important;
}
fieldset.rdp-conditional.rdp-conditional-visible {
    display: block !important;
}

/* Submit button */
.rdp-form-submit {
    display: block;
    width: 100%;
    margin-top: 32px;
    background: var(--rdp-primary);
    color: var(--rdp-white);
    border: none;
    border-radius: 9999px;
    padding: 18px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .2s ease;
}
.rdp-form-submit:hover { transform: translateY(-2px); }
.rdp-form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.rdp-btn-done {
    background: #4CAF50 !important;
    color: #fff !important;
}

/* ═══════════════ AFFINITY ═══════════════ */
.rdp-affinity {
    padding: 0 0 64px;
}

.rdp-affinity-box {
    background: var(--rdp-white);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--rdp-border);
    text-align: center;
}

.rdp-affinity-box h2,
.rdp-affinity-box p { text-align: center; }

.rdp-affinity h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    font-family: 'Benny Black', 'Natom Pro', -apple-system, sans-serif;
}

.rdp-affinity-item {
    background: var(--rdp-bg);
    border-radius: 22px;
    padding: 16px 20px;
    font-weight: 600;
    border: 1px solid var(--rdp-border);
}



/* ═══════════════ TOAST ═══════════════ */
.rdp-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.rdp-toast {
    pointer-events: auto;
    padding: 16px 24px;
    border-radius: 14px;
    font-family: 'Natom Pro', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--rdp-white);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    transform: translateX(120%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.22,.68,0,1.2), opacity .4s ease;
    max-width: 380px;
}
.rdp-toast-show { transform: translateX(0); opacity: 1; }
.rdp-toast-hide { transform: translateX(120%); opacity: 0; }
.rdp-toast-success { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.rdp-toast-error { background: linear-gradient(135deg, var(--rdp-primary), var(--rdp-primary-deep)); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    .rdp-hero { padding: 40px 0 24px; }
    .rdp-form-fields { grid-template-columns: 1fr; }
    .rdp-partners-wrap .rdp-row-center__track > .rdp-metric-item {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .rdp-form-header-banner { flex-direction: column; padding: 24px; }
    .rdp-affinity-box { padding: 24px; }
    .rdp-form-card { padding: 24px; }
    .rdp-toast-container { bottom: 16px; right: 16px; left: 16px; }
    .rdp-toast { max-width: 100%; }
    .rdp-slider-btn { width: 36px; height: 36px; font-size: 18px; }
}
