/* ============================================================
   Planes de Asesoría — Visas de Turismo
   Estilos específicos de /planes.html. Reutiliza variables y
   tipografías globales de visade-pages.css.
   ============================================================ */

.planes-page {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 80vh;
}

/* ---------- Hero ---------- */
.planes-hero {
    padding: 64px 16px 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
}
.planes-hero .section-inner { max-width: 920px; margin: 0 auto; }
.planes-hero .eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
}
.planes-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 16px;
    color: #fff;
}
.planes-hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: #e2e8f0;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 18px;
}
.planes-hero-note {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(226, 201, 126, 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ---------- Sections ---------- */
.planes-section {
    padding: 56px 16px;
}
.planes-section--alt {
    background: #f1f5f9;
}
.planes-section--diagnostico {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    padding: 40px 16px;
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
}
.planes-section .section-inner {
    max-width: 1140px;
    margin: 0 auto;
}
.planes-section-header {
    text-align: center;
    margin-bottom: 36px;
}
.planes-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}
.planes-section-header p {
    font-size: 15.5px;
    color: #475569;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ---------- Diagnóstico card ---------- */
.diagnostico-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #f59e0b;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.18);
    overflow: hidden;
}
.diagnostico-card-body {
    padding: 36px 32px;
    text-align: center;
}
.diagnostico-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--navy);
    margin: 12px 0 8px;
}
.diagnostico-card-lead {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 auto 20px;
    max-width: 540px;
}
.badge-promo {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}
.badge-cupos {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    margin: 8px 0 22px;
}

/* ---------- Bloque de precio (compartido) ---------- */
.price-block {
    margin: 18px 0 6px;
}
.price-current {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.price-current small {
    font-size: 0.4em;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
    letter-spacing: 0.04em;
}
.price-compare {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

/* ---------- Grid de planes ---------- */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 980px) {
    .planes-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* ---------- Plan card ---------- */
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}
.plan-card--featured {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, #fffdf6 0%, #ffffff 60%);
    box-shadow: 0 18px 44px rgba(201, 168, 76, 0.22);
    transform: translateY(-6px);
}
.plan-card--featured:hover {
    transform: translateY(-10px);
}
.plan-ribbon {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(201, 168, 76, 0.4);
    white-space: nowrap;
}

.plan-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--navy);
    margin: 0 0 6px;
}
.plan-card-tagline {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 18px;
    line-height: 1.5;
}
.plan-card-price {
    text-align: center;
    margin: 8px 0 24px;
    padding: 14px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.plan-card-price .price-current {
    font-size: 38px;
}
.plan-card-includes {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}
.plan-card-features li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.5;
    border-bottom: 1px dashed #e2e8f0;
}
.plan-card-features li:last-child { border-bottom: none; }
.plan-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 7px;
    color: #16a34a;
    font-weight: 700;
    font-size: 16px;
}
.plan-card-summary {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-style: italic;
}
.plan-card-disclaimer {
    font-size: 12.5px;
    color: #92400e;
    background: #fef3c7;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ---------- Botones ---------- */
.btn-large {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}
.btn-full {
    width: 100%;
    display: block;
    text-align: center;
}
.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4);
}

/* ---------- Tabla comparativa ---------- */
.comparison-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.comparison-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}
.comparison-table thead .col-featured {
    background: var(--gold);
    color: #fff;
}
.comparison-table .col-feature,
.comparison-table tbody th[scope="row"] {
    text-align: left;
    color: #334155;
    font-weight: 500;
    background: #f8fafc;
}
.comparison-table .col-featured {
    background: rgba(201, 168, 76, 0.08);
}
.comparison-table tbody td {
    color: #16a34a;
    font-weight: 700;
    font-size: 18px;
}
.comparison-table .row-price td {
    font-size: 16px;
    color: var(--navy);
    background: #fffbeb;
}
.comparison-table .row-price .col-featured {
    background: rgba(201, 168, 76, 0.16);
}

/* ---------- Legal ---------- */
.planes-legal {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- Sección de contacto ---------- */
.planes-section--contact {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    color: #fff;
    text-align: center;
}
.planes-contact-inner h2 {
    color: #fff;
    margin: 0 0 12px;
}
.planes-contact-inner p {
    color: #cbd5e1;
    margin: 0 auto 24px;
    max-width: 540px;
    font-size: 15.5px;
}

/* ============================================================
   MODAL — captura de datos antes del checkout
   ============================================================ */
.lead-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 40, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.lead-modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.lead-modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 460px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(7, 20, 40, 0.4);
    animation: slideUp 0.3s ease;
}
.lead-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 36px; height: 36px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.lead-modal-close:hover { background: #e2e8f0; }

.lead-modal-body {
    padding: 32px 28px 24px;
}
.lead-modal-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin: 0 0 6px;
}
.lead-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 4px;
}
.lead-modal-amount {
    font-size: 15px;
    color: var(--navy);
    font-weight: 600;
    margin: 0 0 18px;
    padding: 10px 14px;
    background: #fffbeb;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
}

.lead-form-field {
    display: block;
    margin-bottom: 14px;
}
.lead-form-field > span {
    display: block;
    font-size: 13.5px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 6px;
}
.lead-form-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-form-field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.lead-form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

/* Phone country picker row dentro del modal */
.lead-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.lead-phone-country {
    flex: 0 0 105px;
    padding: 12px 8px 12px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%2364748b' stroke-width='1.6' d='M1 1l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-phone-country:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.lead-phone-number {
    flex: 1 1 auto;
    min-width: 0;
}
.lead-form-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin: 0 0 12px;
}
.lead-form-legal {
    display: block;
    margin-top: 10px;
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}
.lead-form-legal a { color: #64748b; text-decoration: underline; }
#leadFormSubmit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .planes-hero { padding: 44px 16px 28px; }
    .planes-section { padding: 40px 14px; }
    .diagnostico-card-body { padding: 28px 20px; }
    .price-current { font-size: 38px; }
    .plan-card { padding: 28px 22px 24px; }
    .plan-card-features li { font-size: 14px; }
    .lead-modal-body { padding: 28px 22px 20px; }
}
