/* ============================================
   RENTAL SPOT PRO - style.css v3.6.0
   ============================================ */

/* ── RESET BÁSICO ───────────────────────── */
.rsp-hero-banner *, .rsp-container * { box-sizing: border-box; }

/* ═══════════════════════════════════════════
   BANNER HERO - MISMO ANCHO QUE NAVBAR/PÁGINA
   Sin romper el contenedor del tema
   ═══════════════════════════════════════════ */

.rsp-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 300px;
    margin: 0 0 40px 0;
    padding: 0;
    display: block;
    /* NO usar 100vw ni negative margins — respetar el contenedor del tema */
}

.rsp-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, #0f2d4a 0%, #0055b3 45%, #0066cc 70%, #0044a0 100%);
    z-index: 0;
}
.rsp-hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(30deg,  transparent 47%, rgba(255,255,255,0.04) 50%, transparent 53%),
        linear-gradient(150deg, transparent 47%, rgba(255,255,255,0.04) 50%, transparent 53%);
    background-size: 55px 55px;
}

.rsp-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 5%;
    min-height: 300px;
}

.rsp-hero-text {
    flex: 1;
    color: white;
    max-width: 640px;
    animation: rspLeft 0.65s ease-out;
}

.rsp-hero-title {
    display: inline-block;
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #e85d00, #ff7a25);
    padding: 13px 28px;
    border-radius: 10px;
    line-height: 1.2;
    box-shadow: 0 6px 24px rgba(232,93,0,0.4);
    color: white;
}

.rsp-hero-sub {
    font-size: 1.15rem;
    opacity: 0.88;
    margin: 0 0 26px;
    color: #d0e8ff;
    font-weight: 400;
    line-height: 1.5;
}

.rsp-hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e85d00, #ff7a25);
    color: white !important;
    text-decoration: none !important;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 5px 18px rgba(232,93,0,0.45);
    transition: all 0.25s ease;
}
.rsp-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 26px rgba(232,93,0,0.55);
    color: white !important;
    text-decoration: none !important;
}

.rsp-hero-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: rspRight 0.65s ease-out;
    padding-right: 2%;
}
.rsp-hero-img img {
    height: 260px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
    animation: rspFloat 3.5s ease-in-out infinite;
}

@keyframes rspLeft  { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes rspRight { from { opacity:0; transform:translateX(40px);  } to { opacity:1; transform:translateX(0); } }
@keyframes rspFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-16px); } }

/* Responsive */
@media (max-width: 900px) {
    .rsp-hero-inner { padding: 36px 4%; gap: 24px; }
    .rsp-hero-title  { font-size: 2rem; padding: 11px 22px; }
    .rsp-hero-img img{ height: 200px; }
    .rsp-hero-sub    { font-size: 1rem; }
}
@media (max-width: 680px) {
    .rsp-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 5%;
        min-height: auto;
    }
    .rsp-hero-img { order: -1; padding-right: 0; justify-content: center; }
    .rsp-hero-img img { height: 150px; animation: none; }
    .rsp-hero-title { font-size: 1.6rem; padding: 10px 18px; }
    .rsp-hero-sub   { font-size: 0.9rem; }
    .rsp-hero-btn   { padding: 12px 26px; font-size: 0.85rem; }
}


/* ═══════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════ */
.rsp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
}

/* ── BARRA DE PASOS ──────────────────────── */
.rsp-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 44px;
    max-width: 640px;
    padding: 30px 0 0;
}
.rsp-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.rsp-step-num {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #dde3ea;
    color: #888;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    transition: all 0.3s;
    border: 3px solid transparent;
}
.rsp-step-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    transition: all 0.3s;
}
.rsp-step-indicator.active   .rsp-step-num { background:#0066cc; color:white; border-color:#d0e8ff; }
.rsp-step-indicator.active   .rsp-step-lbl { color:#0066cc; }
.rsp-step-indicator.completed .rsp-step-num { background:#00c853; color:white; border-color:#b9f6ca; }
.rsp-step-indicator.completed .rsp-step-lbl { color:#00a040; }
.rsp-step-divider {
    flex: 1;
    height: 2px;
    background: #dde3ea;
    margin: 0 4px;
    margin-bottom: 24px;
}

/* ── TÍTULO DE SECCIÓN ───────────────────── */
.rsp-section-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #12253a;
    margin: 0 0 32px;
}
.rsp-section-title::after {
    content: '';
    display: block;
    width: 64px; height: 3px;
    background: linear-gradient(90deg, #0066cc, #ff6600);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* ═══════════════════════════════════════════
   PASO 1 - CARDS DE PLANES
   ═══════════════════════════════════════════ */
.rsp-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.rsp-plan-card {
    position: relative;
    background: #fff;
    border: 2px solid #e4eaf2;
    border-radius: 16px;
    padding: 24px 16px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.22s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.rsp-plan-card:hover {
    border-color: #0066cc;
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,102,204,0.14);
}
.rsp-plan-card.rsp-plan-selected {
    border-color: #0066cc;
    background: linear-gradient(160deg, #f0f7ff 0%, #e4f0ff 100%);
    box-shadow: 0 8px 28px rgba(0,102,204,0.18);
}
.rsp-plan-card.rsp-plan-featured { border-color: #e85d00; }
.rsp-plan-card.rsp-plan-featured.rsp-plan-selected {
    border-color: #e85d00;
    background: linear-gradient(160deg, #fff7f2 0%, #ffeee0 100%);
    box-shadow: 0 8px 28px rgba(232,93,0,0.18);
}

.rsp-plan-badge {
    position: absolute;
    top: -11px; left: 50%; transform: translateX(-50%);
    background: #0066cc; color: white;
    padding: 3px 16px; border-radius: 20px;
    font-size: 0.68rem; font-weight: 700; white-space: nowrap;
    letter-spacing: 0.3px;
}
.rsp-badge-featured { background: #e85d00; }

.rsp-plan-icon { font-size: 2.2rem; margin-bottom: 8px; line-height: 1; }
.rsp-plan-name {
    font-size: 1rem; font-weight: 800;
    color: #12253a; margin: 0 0 6px;
}
.rsp-plan-duration {
    display: inline-block;
    background: #f0f4f8;
    color: #555;
    font-size: 0.8rem; font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.rsp-price-large {
    font-size: 2rem; font-weight: 900;
    color: #0066cc; margin-bottom: 14px;
    line-height: 1;
}
.rsp-plan-card.rsp-plan-featured .rsp-price-large { color: #e85d00; }

.rsp-plan-features {
    list-style: none;
    margin: 0; padding: 0;
    text-align: left;
}
.rsp-plan-features li {
    font-size: 0.78rem;
    color: #555;
    padding: 3px 0;
    line-height: 1.4;
}

@media (max-width: 900px)  { .rsp-plans-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px)  { .rsp-plans-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   PASO 2 - FECHAS
   ═══════════════════════════════════════════ */
.rsp-dates-wrapper {
    max-width: 560px;
    margin: 0 auto 24px;
}
.rsp-plan-info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0f7ff, #e4f0ff);
    border: 1.5px solid #b3d4f8;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    color: #0052a3;
    font-weight: 600;
}
.rsp-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.rsp-date-locked-msg {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.rsp-availability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   PASO 3 - FORMULARIO
   ═══════════════════════════════════════════ */
.rsp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    max-width: 820px;
    margin: 0 auto 28px;
    /* Crítico: permite que los hijos crezcan correctamente */
    align-items: start;
}
.rsp-field-full { grid-column: 1 / -1; }

.rsp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Permitir que el contenido se expanda */
    min-width: 0;
    width: 100%;
    overflow: visible;
}
.rsp-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
}
.rsp-input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1.5px solid #d5dde8;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #222;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    /* Solo para inputs de texto */
    -webkit-appearance: none;
    appearance: none;
}
.rsp-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* ── SELECT: NO se corta, flecha custom ───── */
select.rsp-input {
    /* Resetear apariencia nativa del browser para poder customizar */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Flecha custom con SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23555' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 9px;
    /* Espacio para la flecha */
    padding-right: 40px;
    /* Tamaño */
    height: 48px;
    line-height: 1.4;
    cursor: pointer;
    /* El texto NO se corta */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ancho */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}
select.rsp-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}
/* Select provincia — NO se corta */
select.rsp-input {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    /* Crítico: evitar que el texto se corte */
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    /* Forzar tamaño mínimo */
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Altura suficiente */
    height: auto;
    min-height: 46px;
}

/* Contenedor del campo provincia — no restringir ancho */
.rsp-field:has(select.rsp-input) {
    min-width: 0;
    overflow: visible;
}

@media (max-width: 600px) {
    .rsp-form-grid { grid-template-columns: 1fr; }
    .rsp-field-full { grid-column: 1; }
    .rsp-dates-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PASO 4 - PAGO
   ═══════════════════════════════════════════ */

/* Resumen */
.rsp-summary-box {
    background: linear-gradient(135deg, #f0f7ff, #e4f0ff);
    border: 2px solid #b3d4f8;
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 560px;
    margin: 0 auto 32px;
}
.rsp-summary-box h3 {
    margin: 0 0 16px;
    color: #0052a3;
    font-size: 1.1rem;
    font-weight: 800;
}
.rsp-summary-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    font-size: 0.95rem;
}
.rsp-summary-grid span { color: #555; font-weight: 600; }
.rsp-summary-grid strong { color: #12253a; }
.rsp-total-price {
    color: #e85d00 !important;
    font-size: 1.3rem;
    font-weight: 900 !important;
}

/* Selector método pago */
.rsp-payment-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #12253a;
    margin-bottom: 16px;
}
.rsp-payment-methods {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.rsp-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid #dde3ea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    min-width: 210px;
    position: relative;
    color: #222;
}
.rsp-payment-option:hover { border-color: #0066cc; box-shadow: 0 4px 14px rgba(0,102,204,0.12); }
.rsp-payment-option.rsp-payment-selected {
    border-color: #0066cc;
    background: linear-gradient(135deg, #f0f7ff, #e4f0ff);
}
.rsp-payment-info strong { display:block; font-size:0.9rem; color:#12253a; }
.rsp-payment-info small  { color:#888; font-size:0.76rem; }
.rsp-payment-check {
    position: absolute; top:10px; right:12px;
    color: #0066cc; font-size: 1rem;
    opacity: 0; transition: opacity 0.2s;
}
.rsp-payment-option.rsp-payment-selected .rsp-payment-check { opacity: 1; }

/* Logo MP */
.rsp-logo-mp {
    width: 36px; height: 36px;
    background: #009EE3;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 0.75rem;
    flex-shrink: 0;
}
.rsp-logo-pp {
    width: 36px; height: 36px;
    background: #003087;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 0.75rem;
    flex-shrink: 0;
}

/* Términos */
.rsp-terms {
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: #555;
}
.rsp-terms a { color: #0066cc; }
.rsp-terms input { margin-right: 6px; cursor: pointer; }

/* Botón pagar principal */
.rsp-btn-pay-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,102,204,0.35);
    transition: all 0.25s;
    letter-spacing: 0.3px;
}
.rsp-btn-pay-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,102,204,0.45);
    color: white !important;
    text-decoration: none;
}
.rsp-btn-pay-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Estado cargando */
.rsp-btn-pay-main.loading {
    opacity: 0.7;
    pointer-events: none;
}
.rsp-btn-pay-main.loading::after {
    content: '⟳';
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Contenedor PayPal */
#paypal-button-container {
    max-width: 420px;
    margin: 0 auto;
}

/* ── BOTONES GENERALES ───────────────────── */
.rsp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.22s;
    white-space: nowrap;
}
.rsp-btn-primary {
    background: linear-gradient(135deg,#0066cc,#0052a3);
    color: white;
    box-shadow: 0 4px 14px rgba(0,102,204,0.3);
}
.rsp-btn-primary:hover  { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,102,204,0.4); }
.rsp-btn-primary:disabled { opacity:0.5; cursor:not-allowed; transform:none; }
.rsp-btn-secondary {
    background: #f0f3f7;
    color: #555;
    border: 1.5px solid #dde3ea;
}
.rsp-btn-secondary:hover { background:#e4e8f0; }

.rsp-step-nav { text-align:center; margin-top:24px; }
.rsp-step-nav-2 {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 560px;
    margin: 24px auto 0;
}

/* ── ALERTAS ─────────────────────────────── */
.rsp-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 4px solid;
}
.rsp-alert-error   { background:#fff5f5; border-color:#e53e3e; color:#c53030; }
.rsp-alert-warning { background:#fffaf0; border-color:#dd6b20; color:#c05621; }
.rsp-alert-success { background:#f0fff4; border-color:#38a169; color:#276749; }
.rsp-alert-info    { background:#ebf8ff; border-color:#3182ce; color:#2b6cb0; }

/* ── PANTALLA ÉXITO ──────────────────────── */
.rsp-success-screen {
    text-align: center;
    padding: 60px 20px;
    animation: rspLeft 0.5s ease-out;
}
.rsp-success-icon { font-size: 5rem; margin-bottom: 16px; }
.rsp-success-screen h2 { color: #38a169; font-size: 2.2rem; margin-bottom: 10px; }
.rsp-success-screen p  { color: #555; font-size: 1.05rem; max-width: 440px; margin: 0 auto; }

/* ── CHECKOUT CONTAINER ──────────────────── */
#mp-checkout-container {
    max-width: 680px;
    margin: 30px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}
