/* Travel & Services by Nany — hoja de estilos principal */

:root {
    --navy: #12212E;
    --navy-soft: #1B2E3D;
    --orange: #EA9940;
    --orange-soft: #FDF1E0;
    --cream: #FBF6EC;
    --border: #E4DCC9;
    --text-muted: #5b5b5b;
    --text-faint: #8a8a8a;
    --radius: 16px;
    --shadow: 0 18px 40px rgba(18, 33, 46, 0.16);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--navy);
    background: #fff;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 14px rgba(18, 33, 46, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img { height: 80px; margin: -14px -10px -16px -9px; }

.brand-text {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.2;
}

.brand-text strong { display: block; font-size: 16px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .15s ease;
}

.nav-links a:hover { color: var(--orange); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.nav-dropdown-toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -14px;
    padding-top: 14px;
    z-index: 30;
}
.nav-dropdown-menu-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(18,33,46,.16);
    padding: 8px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-dropdown-menu a { padding: 9px 12px; border-radius: 8px; font-size: 13.8px; }
.nav-dropdown-menu a:hover { background: var(--orange-soft); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-cta {
    background: var(--orange);
    color: var(--navy) !important;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(180deg, rgba(18,33,46,0.90) 0%, rgba(18,33,46,0.80) 45%, rgba(18,33,46,0.96) 100%),
        url('/assets/img/hero-shelf.jpg');
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 72px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 12.5px;
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: 700;
}

.hero p.lead {
    font-size: 16.5px;
    color: #D9D2C3;
    max-width: 480px;
    margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(234,153,64,.35); }

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.hero-trust {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-trust div { font-size: 13px; color: #D9D2C3; }
.hero-trust strong { display: block; font-size: 22px; color: #fff; }

/* ---------- Modal del planificador ---------- */
.tsn-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 33, 46, 0.62);
    backdrop-filter: blur(2px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tsn-modal-overlay.open { display: flex; }
.tsn-modal-panel { position: relative; max-width: 420px; width: 100%; }
.tsn-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(18,33,46,.25);
    z-index: 2;
}

/* ---------- Planificador widget ---------- */
.tsn-plan-card {
    max-width: 400px;
    background: var(--cream);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: var(--shadow);
}

.tsn-plan-card * { box-sizing: border-box; }

.tsn-plan-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tsn-plan-title { margin: 0 0 6px; font-size: 21px; line-height: 1.25; color: var(--navy); font-weight: 700; }
.tsn-plan-sub { margin: 0 0 18px; font-size: 13.5px; color: var(--text-muted); }

.tsn-plan-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }

.tsn-opt {
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--navy);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
}
.tsn-opt:hover { border-color: var(--orange); background: var(--orange-soft); }

.tsn-back { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--navy); text-decoration: underline; cursor: pointer; }

.tsn-plan-summary { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; color: var(--navy); }
.tsn-plan-summary div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; border-bottom: 1px solid #F0EAD9; }
.tsn-plan-summary strong { color: var(--navy); font-weight: 700; }
.tsn-plan-summary div:last-child { border-bottom: none; }
.tsn-plan-summary span { color: var(--text-faint); }

.tsn-send-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #25D366; color: #fff; font-weight: 700; text-decoration: none;
    padding: 13px 18px; border-radius: 999px; font-size: 14.5px; border: none; cursor: pointer; width: 100%;
}

.tsn-plan-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--text-faint); }
.tsn-plan-foot a { color: var(--navy); cursor: pointer; text-decoration: underline; }

.tsn-field { margin-bottom: 12px; }
.tsn-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.tsn-field input {
    width: 100%; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--border);
    font-size: 13.5px; font-family: inherit;
}

/* ---------- Secciones generales ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--cream); }

.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { color: var(--orange); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin: 10px 0 12px; }
.section-head p { color: var(--text-muted); font-size: 15px; }

/* ---------- Destinos ---------- */
.destinos-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -12px 0 38px;
}
.destinos-tab {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--navy);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.destinos-tab:hover { border-color: var(--orange); }
.destinos-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.destinos-panel { display: none; }
.destinos-panel.is-active { display: block; }
.destinos-panel-note { text-align: center; color: var(--text-muted); font-size: 13.5px; max-width: 560px; margin: -18px auto 30px; }
.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.destino-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18,33,46,.10);
    display: flex;
    flex-direction: column;
}

.destino-img { aspect-ratio: 5 / 4; height: auto; overflow: hidden; position: relative; }
.destino-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .3s ease; }

.destino-img-custom {
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(234,153,64,.25), transparent 55%),
        linear-gradient(135deg, var(--navy), #1c3550);
}
.destino-card-custom { border: 1.5px dashed var(--orange); }
.destino-card:hover .destino-img img.is-active { transform: scale(1.06); }

/* ---------- Carrusel automático de fotos en tarjetas de destino ---------- */
.tsn-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transition: opacity 1s ease, transform .3s ease;
}
.tsn-carousel img.is-active { opacity: 1; }

.tsn-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 2;
}
.tsn-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    box-shadow: 0 0 0 1px rgba(18,33,46,.15);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.tsn-dot:hover { background: rgba(255,255,255,.85); }
.tsn-dot.is-active { background: #fff; transform: scale(1.35); }

.destino-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.destino-body h3 { margin: 0 0 6px; font-size: 19px; }
.destino-body .destino-flag { font-size: 12.5px; color: var(--orange); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.destino-body p { font-size: 13.8px; color: var(--text-muted); margin: 0 0 14px; }

.tour-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tour-tags span { background: var(--orange-soft); color: var(--navy); font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }

.destino-body .btn { margin-top: auto; justify-content: center; }

/* ---------- Catálogo nacionales/internacionales ---------- */
.catalogo-header { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.catalogo-header h1 { margin: 0 0 6px; font-size: 26px; }
.catalogo-header p { color: #D9D2C3; margin: 0; font-size: 14.5px; max-width: 560px; }

.destino-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.destino-price-badge {
    background: var(--navy); color: #fff; font-weight: 700; font-size: 12.5px;
    padding: 7px 12px; border-radius: 999px;
}
.destino-duracion {
    background: var(--orange-soft); color: var(--navy); font-weight: 600; font-size: 11.5px;
    padding: 6px 10px; border-radius: 999px;
}
.destino-price-note { font-size: 11.5px; color: var(--text-faint); margin: -6px 0 14px; }
.catalogo-footnote { text-align: center; color: var(--text-muted); font-size: 13.5px; margin-top: 40px; }

/* ---------- Nosotros / confianza ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.trust-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.trust-card h4 { margin: 0 0 8px; font-size: 16.5px; }
.trust-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); }

.nosotros-bio {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
.nosotros-bio-text .eyebrow { color: var(--orange); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.nosotros-bio-text h2 { font-size: 28px; margin: 10px 0 16px; }
.nosotros-bio-text p { font-size: 14.5px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.65; }
.nosotros-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 22px;
}
.nosotros-mv h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.nosotros-mv p { font-size: 13px; color: var(--text-muted); margin: 0; }
.nosotros-bio-avatar {
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.nosotros-bio-avatar img { width: 100%; max-width: 340px; height: auto; display: block; }

/* ---------- Testimonios ---------- */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
    max-width: 780px;
    margin: 0 auto;
}
.testimonio-card { text-align: center; }
.testimonio-video {
    aspect-ratio: 9 / 16;
    max-width: 260px;
    margin: 0 auto 18px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(18,33,46,.16);
    background: var(--navy);
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
}
.testimonio-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonio-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.testimonio-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(18,33,46,.28); transition: background .15s ease;
}
.testimonio-play::after {
    content: '▶'; width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 18px; text-indent: 2px;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.testimonio-video:hover .testimonio-play { background: rgba(18,33,46,.42); }

.testimonio-stars { color: var(--orange); font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonio-quote { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin: 0 0 10px; font-style: italic; }
.testimonio-name { font-weight: 700; font-size: 14px; color: var(--navy); }

/* ---------- Contacto ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-buttons { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

.contact-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid var(--border);
    background: #fff;
    transition: border-color .15s ease, transform .15s ease;
}
.contact-btn:hover { transform: translateY(-2px); border-color: var(--orange); }
.contact-btn .icon { width: 22px; height: 22px; flex-shrink: 0; }
.contact-btn.whatsapp { border-color: #25D366; }
.contact-btn.facebook { border-color: #1877F2; }
.contact-btn.instagram { border-color: #C13584; }

/* ---------- Formularios (login/registro/cuenta) ---------- */
.auth-wrap {
    max-width: 440px;
    margin: 60px auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
}
.auth-wrap h1 { font-size: 24px; margin: 0 0 6px; }
.auth-wrap p.sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 26px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
    font-size: 14px; font-family: inherit; background: #fff;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--orange); }

.form-error {
    background: #FDECEC; color: #B3261E; border: 1px solid #F5C2C0;
    padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px;
}
.form-success {
    background: #E9F7EF; color: #1E7E43; border: 1px solid #BFE6CE;
    padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px;
}

.auth-alt { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }
.auth-alt a { color: var(--orange); font-weight: 600; }

.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange); }
.form-check label { font-size: 12.8px; color: var(--text-muted); line-height: 1.55; }
.form-check label a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ---------- Cuenta / historial ---------- */
.cuenta-header {
    background: var(--navy); color: #fff; padding: 46px 0 40px;
}
.cuenta-header h1 { margin: 0 0 6px; font-size: 26px; }
.cuenta-header p { color: #D9D2C3; margin: 0; font-size: 14px; }

.historial-list { display: flex; flex-direction: column; gap: 14px; }
.historial-item {
    background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
    padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.historial-item .meta { font-size: 13px; color: var(--text-faint); }
.historial-item .tipo { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.estado-pill { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.estado-nueva { background: var(--orange-soft); color: var(--orange); }
.estado-contactada { background: #E4F0FB; color: #1877F2; }
.estado-cerrada { background: #E9F7EF; color: #1E7E43; }
.estado-realizado { background: #E9F7EF; color: #1E7E43; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }

/* ---------- Panel admin ---------- */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab {
    padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    border: 1.5px solid var(--border); color: var(--navy); background: #fff;
}
.admin-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.admin-panel-card {
    background: #fff; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(18,33,46,.08);
    padding: 24px 26px; margin-bottom: 28px;
}
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; align-items: end; }
.admin-form-grid .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(18,33,46,.08); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-table th {
    text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--text-faint); padding: 14px 16px; border-bottom: 1.5px solid var(--border);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13.8px; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-muted { color: var(--text-faint); font-size: 12.5px; }
.admin-row-form { display: flex; flex-direction: column; gap: 6px; }
.admin-row-form select {
    padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; font-family: inherit;
}
.admin-whatsapp {
    display: inline-flex; align-items: center; gap: 5px; color: #1E7E43; font-weight: 600; font-size: 12.5px;
}
.admin-whatsapp:hover { text-decoration: underline; }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }

.admin-table .btn-outline {
    background: transparent; border: 1.5px solid var(--border); color: var(--navy);
}
.admin-table .btn-outline:hover { border-color: var(--navy); background: var(--cream); }

.btn-outline-danger {
    background: transparent; border: 1.5px solid #B3261E; color: #B3261E;
}
.btn-outline-danger:hover { background: #FDECEC; }

/* ---------- Legal (acordeones) ---------- */
.legal-header { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.legal-header h1 { margin: 0 0 6px; font-size: 24px; }
.legal-header p { color: #D9D2C3; margin: 0; font-size: 14px; }
.legal-intro { color: var(--text-muted); font-size: 15px; margin: 30px 0 24px; line-height: 1.7; }
.legal-accordion { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.legal-item { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.legal-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}
.legal-item summary::-webkit-details-marker { display: none; }
.legal-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--orange);
    flex-shrink: 0;
    transition: transform .2s ease;
}
.legal-item[open] summary::after { transform: rotate(45deg); }
.legal-item[open] summary { border-bottom: 1px solid var(--border); }
.legal-item-body { padding: 4px 20px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.legal-item-body p { margin: 0 0 12px; }
.legal-item-body p:last-child { margin-bottom: 0; }
.legal-item-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-item-body li { margin-bottom: 6px; }
.legal-footer-note { font-size: 13px; color: var(--text-faint); margin-top: 20px; padding-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #D9D2C3; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-grid h5 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 12.5px; color: #9AA6AE; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.footer-signature { text-align: left; margin-top: 14px; }
.footer-signature a {
    display: inline-flex; align-items: center; gap: 6px;
    color: #9AA6AE; font-size: 12.5px; text-decoration: none;
}
.footer-signature a:hover { color: var(--orange); }
.footer-signature img { width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }

.whatsapp-widget { position: fixed; bottom: 24px; right: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

.whatsapp-float {
    background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
    border: none; cursor: pointer;
}

.whatsapp-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 16px 36px rgba(18,33,46,.22);
    width: 250px;
}
.whatsapp-menu.open { display: flex; }
.whatsapp-menu-title { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.whatsapp-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border);
    transition: border-color .15s ease;
}
.whatsapp-menu-item:hover { border-color: #25D366; background: #F3FBF6; }
.whatsapp-menu-item .dot { width: 9px; height: 9px; border-radius: 50%; background: #25D366; flex-shrink: 0; }
.whatsapp-menu-item strong { display: block; font-size: 13.5px; color: var(--navy); }
.whatsapp-menu-item small { display: block; font-size: 12px; color: var(--text-faint); }

@media (max-width: 900px) {
    .tsn-plan-card { max-width: 100%; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        padding: 10px 24px 18px;
        box-shadow: 0 14px 24px rgba(18,33,46,.14);
        border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .nav-cta { text-align: center; margin-top: 8px; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { border-bottom: 1px solid var(--border); padding: 12px 0; }
    .nav-dropdown-menu {
        display: block; position: static; padding: 0 0 6px 14px;
    }
    .nav-dropdown-menu-inner {
        box-shadow: none; padding: 0; min-width: 0; background: transparent;
    }
    .nav-dropdown-menu a { padding: 10px 0; font-size: 13.5px; color: var(--text-muted); }
    .nav-dropdown-menu a:hover { background: transparent; color: var(--orange); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .nosotros-bio { grid-template-columns: 1fr; gap: 28px; }
    .nosotros-bio-avatar { order: -1; }
    .nosotros-bio-avatar img { max-width: 240px; }
    .nosotros-mv { grid-template-columns: 1fr; }
    .testimonios-grid { grid-template-columns: 1fr; max-width: 300px; }
}

/* ---------- Móvil (celular) ---------- */
@media (max-width: 640px) {
    .hero {
        background-image:
            linear-gradient(180deg, rgba(18,33,46,0.68) 0%, rgba(18,33,46,0.55) 45%, rgba(18,33,46,0.78) 100%),
            url('/assets/img/hero-shelf.jpg');
        background-size: contain;
        background-position: top center;
        padding-top: 76vw;
    }
    .destino-img img, .tsn-carousel img { object-position: center 22%; }
}

/* =====================================================================
   Mi Ahorro · portal del cliente y panel administrador
   ===================================================================== */
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--navy);
    font-size: 11px; font-weight: 700; margin-left: 4px; vertical-align: 1px;
}

.ma-section { padding: 40px 0 64px; }
.ma-narrow { max-width: 860px; }
.ma-eyebrow {
    display: inline-block; color: var(--orange); font-size: 12px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px;
}
.ma-muted { color: var(--text-faint); font-size: 12.5px; }
.ma-hint { display: block; color: var(--text-faint); font-size: 12px; margin-top: 5px; min-height: 1em; }
.ma-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.ma-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ma-back { display: block; width: fit-content; color: #D9D2C3; font-size: 13px; margin-bottom: 12px; }
.ma-back:hover { color: var(--orange); }
.ma-back-dark { display: inline-block; color: var(--text-faint); font-size: 13px; margin-bottom: 6px; }
.ma-back-dark:hover { color: var(--orange); }
.ma-btn-light { background: #fff; color: var(--navy); }
.ma-btn-light:hover { background: var(--orange-soft); }
.ma-btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--navy); }
.ma-btn-ghost:hover { border-color: var(--navy); background: var(--cream); }

/* Presentación pública */
.ma-hero { padding: 64px 0 56px; }
.ma-hero h1 { font-size: 34px; max-width: 640px; line-height: 1.2; }
.ma-hero p { max-width: 560px; font-size: 15px; }
.ma-hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ma-pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ma-pasos > div { background: #fff; border-radius: var(--radius); padding: 24px; border: 1.5px solid var(--border); }
.ma-pasos strong {
    display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
    background: var(--navy); color: var(--orange); font-size: 15px; margin-bottom: 12px;
}
.ma-pasos h4 { margin: 0 0 6px; font-size: 16px; }
.ma-pasos p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* Tarjetas de plan */
.ma-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.ma-plan-card {
    background: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
    box-shadow: 0 10px 28px rgba(18,33,46,.08); border: 1.5px solid var(--border);
}
.ma-plan-card h3 { margin: 0 0 8px; font-size: 19px; }
.ma-plan-resumen { margin: 0 0 8px; font-size: 14px; }
.ma-plan-quien { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.ma-plan-datos { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.ma-plan-datos li { font-size: 13px; padding-left: 22px; position: relative; }
.ma-plan-datos li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.ma-plan-btn { margin-top: auto; justify-content: center; }
.ma-empty { text-align: center; max-width: 520px; margin: 0 auto 30px; }
.ma-empty h2 { margin: 0 0 8px; font-size: 22px; }
.ma-empty p { color: var(--text-muted); margin: 0; }

/* Contratos del cliente */
.ma-contratos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 30px; }
.ma-contrato-card {
    display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: var(--radius); padding: 22px 24px;
    border: 1.5px solid var(--border); transition: border-color .15s ease, box-shadow .15s ease;
}
.ma-contrato-card:hover { border-color: var(--orange); box-shadow: 0 12px 26px rgba(18,33,46,.10); }
.ma-contrato-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ma-contrato-top h3 { margin: 4px 0 0; font-size: 18px; }
.ma-contrato-num { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.ma-contrato-montos strong { font-size: 24px; margin-right: 6px; }
.ma-contrato-montos span { color: var(--text-muted); font-size: 13px; }
.ma-contrato-foot { font-size: 13px; color: var(--text-muted); }
.ma-cuenta-cta {
    display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--orange-soft); border: 1.5px solid #F3D9B4; border-radius: var(--radius); padding: 22px 26px;
}
.ma-cuenta-cta strong { display: block; font-size: 18px; }
.ma-cuenta-cta p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }

/* Estados */
.ma-pill {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; vertical-align: middle;
}
.ma-pill-activo, .ma-pill-pago-confirmado, .ma-pill-cuota-pagada { background: #E9F7EF; color: #1E7E43; }
.ma-pill-en_mora, .ma-pill-pago-rechazado, .ma-pill-cuota-vencida { background: #FDECEC; color: #B3261E; }
.ma-pill-pendiente_aprobacion, .ma-pill-pago-pendiente, .ma-pill-cuota-parcial { background: var(--orange-soft); color: #B86E1B; }
.ma-pill-completado, .ma-pill-convertido { background: var(--navy); color: var(--orange); }
.ma-pill-cancelado, .ma-pill-rechazado, .ma-pill-pago-anulado { background: #EFEFEF; color: #6b6b6b; }
.ma-pill-cuota-pendiente { background: #F2F4F7; color: #4A5868; }

.ma-banner { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 22px; }
.ma-banner a { text-decoration: underline; font-weight: 600; }
.ma-banner-info { background: #EEF4FA; color: #24496B; border: 1px solid #D3E2F0; }
.ma-banner-warn { background: #FDECEC; color: #8F1F18; border: 1px solid #F5C2C0; }
.ma-banner-ok { background: #E9F7EF; color: #1E6B3C; border: 1px solid #BFE6CE; }

/* Indicadores */
.ma-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.ma-kpis-5 { grid-template-columns: repeat(5, 1fr); }
.ma-kpi { background: #fff; border-radius: 14px; padding: 18px 20px; border: 1.5px solid var(--border); }
.ma-kpi span { display: block; font-size: 12px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.ma-kpi strong { display: block; font-size: 24px; margin: 6px 0 2px; line-height: 1.2; }
.ma-kpi small { font-size: 12.5px; color: var(--text-muted); }
.ma-kpi small a { text-decoration: underline; }
.ma-kpi-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.ma-kpi-dark span, .ma-kpi-dark small { color: #C9C2B3; }
.ma-kpi-dark strong { color: var(--orange); }
.ma-kpi-alert { border-color: #F5C2C0; background: #FFF7F6; }
.ma-kpi-alert strong { color: #B3261E; }

.ma-progress { position: relative; display: flex; height: 12px; background: #EEE8DC; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.ma-progress-fill { background: var(--orange); height: 100%; }
.ma-progress-verif {
    height: 100%;
    background: repeating-linear-gradient(45deg, #F3C98F, #F3C98F 6px, #F8DDB8 6px, #F8DDB8 12px);
}
.ma-progress-card { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 26px; }
.ma-progress-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ma-progress-head span { color: #B86E1B; font-weight: 600; }
.ma-progress-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.ma-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #EEE8DC; margin-right: 6px; }
.ma-dot-ok { background: var(--orange); }
.ma-dot-verif { background: #F3C98F; }

/* Bloques y tablas */
.ma-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.ma-block {
    background: #fff; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(18,33,46,.07);
    padding: 22px 24px; margin-bottom: 22px;
}
.ma-block-accent { border: 1.5px solid var(--orange); }
.ma-block-title { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.ma-block-note { margin: -6px 0 14px; font-size: 12.5px; }
.ma-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 12px;
}
.ma-table-wrap { overflow-x: auto; }
.ma-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ma-table th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint);
    padding: 10px 10px; border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
.ma-table td { padding: 10px 10px; border-bottom: 1px solid #F0EADF; white-space: nowrap; }
.ma-table td a { text-decoration: underline; }
.ma-table tr:last-child td { border-bottom: none; }

.ma-avisos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ma-avisos li {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
    border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.ma-avisos li.is-new { border-color: var(--orange); background: #FFFBF5; }
.ma-avisos strong { font-size: 14px; }
.ma-avisos strong a { text-decoration: underline; }
.ma-avisos p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.ma-avisos-admin li { align-items: center; }

.ma-instrucciones {
    background: var(--cream); border-radius: 12px; padding: 14px 16px; font-size: 13.2px;
    color: var(--text-muted); margin-bottom: 16px; line-height: 1.6;
}
.ma-asesor { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: #1E7E43; font-weight: 600; }
.ma-asesor:hover { text-decoration: underline; }

/* Formulario de nuevo plan */
.ma-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.ma-form-title { font-size: 17px; margin: 26px 0 14px; }
.ma-form-title:first-of-type { margin-top: 0; }
.ma-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.ma-span-2 { grid-column: 1 / -1; }
.ma-plan-options { display: grid; gap: 12px; }
.ma-plan-option { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 18px; cursor: pointer; }
.ma-plan-option:hover { border-color: var(--orange); }
.ma-plan-option:has(input:checked) { border-color: var(--orange); background: #FFFBF5; box-shadow: 0 0 0 3px rgba(234,153,64,.15); }
.ma-plan-option input { margin-top: 4px; accent-color: var(--orange); width: 17px; height: 17px; flex-shrink: 0; }
.ma-plan-option-body { display: flex; flex-direction: column; gap: 3px; }
.ma-plan-option-body strong { font-size: 15px; }
.ma-plan-option-body span { font-size: 13.5px; }
.ma-plan-option-body small { font-size: 12px; color: var(--text-faint); }
.ma-estimado {
    display: flex; flex-direction: column; gap: 2px; background: var(--navy); color: #fff;
    border-radius: 14px; padding: 18px 22px; margin: 10px 0 22px;
}
.ma-estimado[hidden] { display: none; }
.ma-estimado span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #C9C2B3; font-weight: 600; }
.ma-estimado strong { font-size: 26px; color: var(--orange); }
.ma-estimado small { font-size: 13px; color: #D9D2C3; }
.ma-submit { width: 100%; justify-content: center; }
.ma-form-compact .form-field { margin-bottom: 12px; }
.ma-form-compact .ma-block-note { margin: 10px 0 0; }
.ma-block .admin-table-wrap { box-shadow: none; border: 1.5px solid #F0EADF; }
.ma-block .admin-table td a { text-decoration: underline; }
.ma-form-compact input[type="file"] { padding: 9px 10px; font-size: 13px; }

/* Revisión y firma */
.ma-resumen-firma { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.ma-resumen-firma div { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ma-resumen-firma span { display: block; font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ma-resumen-firma strong { font-size: 16px; }
.ma-contrato-preview {
    background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 30px 34px; max-height: 520px; overflow-y: auto; margin-bottom: 22px;
}
.ma-firma-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.ma-firma-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Documento del contrato */
.contrato-doc { font-size: 13.5px; line-height: 1.65; color: #2a2a2a; }
.contrato-doc-head { border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 8px; }
.contrato-doc-eyebrow { margin: 0; font-size: 11.5px; color: #B86E1B; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contrato-doc h1 { font-size: 22px; margin: 4px 0; color: var(--navy); }
.contrato-doc-head p:last-child { margin: 0; color: var(--text-faint); font-size: 12.5px; }
.contrato-doc h2 { font-size: 14.5px; margin: 20px 0 6px; color: var(--navy); }
.contrato-doc p { margin: 0 0 8px; }
.contrato-doc ul { margin: 0 0 8px; padding-left: 20px; }
.contrato-cronograma { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 13px; }
.contrato-cronograma th, .contrato-cronograma td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.contrato-cronograma th { background: var(--cream); }
.contrato-cronograma tfoot td { font-weight: 700; }
.contrato-firma { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-muted); }

.contrato-page { background: #F3F0EA; }
.contrato-toolbar {
    max-width: 860px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center;
}
.contrato-toolbar a { font-size: 13.5px; color: var(--text-muted); }
.contrato-sheet { max-width: 860px; margin: 0 auto 50px; background: #fff; padding: 46px 54px; border-radius: 8px; box-shadow: 0 10px 30px rgba(18,33,46,.10); }
.contrato-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 12.5px; color: var(--text-muted); }
.contrato-brand img { height: 64px; margin: -10px -6px; }
.contrato-brand strong { color: var(--navy); font-size: 14px; }
.contrato-constancia { margin-top: 26px; background: var(--cream); border-radius: 10px; padding: 14px 18px; font-size: 12px; color: var(--text-muted); }
.contrato-constancia p { margin: 0 0 4px; }
.contrato-constancia code { word-break: break-all; font-size: 11px; }

/* Panel administrador */
.ma-subtabs { display: flex; gap: 22px; border-bottom: 1.5px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.ma-subtabs a { padding: 8px 2px 12px; font-size: 14px; font-weight: 600; color: var(--text-faint); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.ma-subtabs a.active, .ma-subtabs a:hover { color: var(--navy); border-bottom-color: var(--orange); }
.ma-review { display: flex; flex-direction: column; gap: 8px; min-width: 230px; }
.ma-inline-reject { display: flex; gap: 6px; }
.ma-inline-reject input[type="text"] {
    flex: 1; min-width: 120px; padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 12.5px; font-family: inherit;
}
.ma-wa-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
    background: #E9F7EF; color: #1E7E43; font-size: 12.5px; font-weight: 700; border: 1.5px solid #BFE6CE;
}
.ma-wa-btn:hover { background: #D6F0E0; }
.ma-filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.ma-filtros input[type="search"] { flex: 1; min-width: 240px; }
.ma-filtros input, .ma-filtros select {
    padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 13.5px; font-family: inherit; background: #fff;
}
.ma-limpiar { font-size: 13px; color: var(--text-faint); text-decoration: underline; }
.ma-row-link { cursor: pointer; }
.ma-row-link:hover td { background: #FFFBF5; }
.admin-table .ma-progress { height: 7px; margin: 6px 0 2px; min-width: 120px; }
.ma-ficha-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ma-ficha-head h2 { margin: 0 0 4px; font-size: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ma-ficha-head p { margin: 0; color: var(--text-muted); font-size: 14px; }
.ma-ficha-cliente { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; font-size: 13px; color: var(--text-muted); }
.ma-ficha-cliente strong { color: var(--navy); font-size: 15px; }
.ma-ficha-cliente .btn { margin-top: 8px; }
.ma-textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
    font-size: 13.5px; font-family: inherit; margin-bottom: 10px; resize: vertical;
}
.ma-textarea:focus { outline: none; border-color: var(--orange); }
.ma-danger-zone summary, .ma-plan-edit summary {
    cursor: pointer; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none;
}
.ma-danger-zone summary::-webkit-details-marker, .ma-plan-edit summary::-webkit-details-marker { display: none; }
.ma-danger-zone summary { color: #B3261E; }
.ma-danger-zone[open] summary, .ma-plan-edit[open] summary { margin-bottom: 16px; }
.ma-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 18px; font-size: 13.5px; }
.ma-checks label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.ma-checks input { accent-color: var(--orange); width: 16px; height: 16px; }
.ma-constancia-admin { font-size: 12px; color: var(--text-faint); padding: 4px 4px 0; line-height: 1.7; }
.ma-constancia-admin code { word-break: break-all; font-size: 11px; }

@media (max-width: 1000px) {
    .ma-kpis-5 { grid-template-columns: repeat(3, 1fr); }
    .ma-pasos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .ma-cols { grid-template-columns: 1fr; }
    .ma-kpis { grid-template-columns: 1fr 1fr; }
    .ma-resumen-firma { grid-template-columns: 1fr 1fr; }
    .ma-ficha-cliente { align-items: flex-start; }
    .nav-badge { margin-left: 6px; }
}
@media (max-width: 640px) {
    .ma-hero { padding: 44px 0 40px; }
    .ma-hero h1 { font-size: 27px; }
    .ma-kpis, .ma-kpis-5 { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ma-kpi { padding: 14px; }
    .ma-kpi strong { font-size: 19px; }
    .ma-pasos { grid-template-columns: 1fr; }
    .ma-form { padding: 22px 18px; }
    .ma-form-grid { grid-template-columns: 1fr; }
    .ma-contratos-grid { grid-template-columns: 1fr; }
    .ma-contrato-preview { padding: 20px 18px; max-height: 420px; }
    .ma-block { padding: 18px 16px; }
    .ma-inline-reject { flex-direction: column; }
    .contrato-sheet { padding: 26px 20px; border-radius: 0; }
    .ma-firma-actions .btn { width: 100%; justify-content: center; }
}

@media print {
    .contrato-page { background: #fff; }
    .contrato-toolbar { display: none; }
    .contrato-sheet { box-shadow: none; padding: 0; margin: 0; max-width: none; }
    .contrato-doc h2 { break-after: avoid; }
    .contrato-cronograma { break-inside: auto; }
}

/* =====================================================================
   Gestión comercial · alertas, cotizaciones, viajes y Mi cuenta
   ===================================================================== */
.gs-tab-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: #B3261E; color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px;
}
.admin-tab.active .gs-tab-badge { background: var(--orange); color: var(--navy); }

.gs-alertas {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #FFF7F6;
    border: 1.5px solid #F5C2C0; border-radius: 14px; padding: 12px 16px; margin-bottom: 22px; font-size: 13.2px;
}
.gs-alertas-titulo { font-weight: 700; color: #B3261E; margin-right: 4px; }
.gs-alertas a { background: #fff; border: 1px solid #F5C2C0; border-radius: 999px; padding: 5px 12px; color: #8F1F18; }
.gs-alertas a:hover { background: #FDECEC; }
.gs-alertas a strong { font-weight: 700; }
.gs-alertas-ok { background: #F1F9F4; border-color: #BFE6CE; color: #1E6B3C; }

.gs-alerta-pill {
    display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: #B3261E;
    background: #FDECEC; border-radius: 999px; padding: 3px 10px;
}
.gs-alerta-grande { margin-top: 8px; font-size: 12.5px; }
.gs-row-alerta td:first-child { box-shadow: inset 3px 0 0 #E05A50; }

.gs-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.gs-datos div { min-width: 0; }
.gs-datos dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); font-weight: 600; }
.gs-datos dd { margin: 2px 0 0; font-size: 14px; }
.gs-datos dd a { text-decoration: underline; }
.gs-datos-full { grid-column: 1 / -1; }

.gs-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.gs-timeline li { position: relative; font-size: 13.5px; }
.gs-timeline li::before {
    content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
    background: #fff; border: 2px solid var(--orange);
}
.gs-timeline-fecha { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 2px; }
.gs-timeline p { margin: 3px 0 0; color: var(--text-muted); }

.gs-registrar summary {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; font-size: 15px;
}
.gs-registrar summary::-webkit-details-marker { display: none; }
.gs-registrar[open] summary .btn { visibility: hidden; }
.gs-form-viaje { margin-top: 10px; }
.gs-form-sub { margin: 18px 0 10px; font-size: 14px; color: var(--navy); border-top: 1px solid #F0EADF; padding-top: 16px; }
.gs-form-sub:first-of-type { border-top: none; padding-top: 0; }

.gs-pill {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.gs-pill-reservado { background: #EEF4FA; color: #24496B; }
.gs-pill-realizado, .gs-pill-cot-cerrada-vendida { background: #E9F7EF; color: #1E7E43; }
.gs-pill-cancelado, .gs-pill-cot-cerrada { background: #EFEFEF; color: #6b6b6b; }
.gs-pill-cot-nueva { background: var(--orange-soft); color: #B86E1B; }
.gs-pill-cot-contactada { background: #E4F0FB; color: #1877F2; }

/* Mi cuenta: tarjetas desplegables */
.gs-detalles { display: flex; flex-direction: column; gap: 14px; }
.gs-detalle { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.gs-detalle[open] { border-color: var(--orange); }
.gs-detalle summary {
    list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between;
    align-items: center; gap: 14px; flex-wrap: wrap;
}
.gs-detalle summary::-webkit-details-marker { display: none; }
.gs-detalle summary .tipo { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.gs-detalle summary .meta { font-size: 13px; color: var(--text-faint); }
.gs-detalle summary::after {
    content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg); margin-left: 4px; transition: transform .15s ease;
}
.gs-detalle[open] summary::after { transform: rotate(-135deg); }
.gs-detalle-derecha { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gs-detalle-monto { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.gs-detalle-body { padding: 4px 22px 20px; border-top: 1px solid #F0EADF; }
.gs-detalle-desc { color: var(--text-muted); font-size: 13.8px; margin: 14px 0 16px; }
.gs-detalle-body .gs-datos { margin-bottom: 14px; }
.gs-detalle-sub { margin: 16px 0 8px; font-size: 13.5px; }
.gs-mini-lista { list-style: none; margin: 0; padding: 0; }
.gs-mini-lista li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F0EADF; font-size: 13.5px; }
.gs-mini-lista li:last-child { border-bottom: none; }
.gs-pasos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: paso; }
.gs-pasos li { border-top: 3px solid #EEE8DC; padding-top: 8px; font-size: 13px; }
.gs-pasos li.hecho { border-top-color: var(--orange); }
.gs-pasos strong { display: block; }
.gs-pasos span { color: var(--text-faint); font-size: 12px; }

@media (max-width: 640px) {
    .gs-datos { grid-template-columns: 1fr; }
    .gs-pasos { grid-template-columns: 1fr; }
    .gs-detalle summary, .gs-detalle-body { padding-left: 16px; padding-right: 16px; }
    .gs-detalle-derecha { margin-left: 0; }
}

/* Mi Ahorro · pago con Bold */
.ma-pago-resumen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.ma-pago-resumen div { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.ma-pago-resumen span { display: block; font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ma-pago-resumen strong { font-size: 17px; }
.ma-pago-resumen .ma-ref { font-size: 12px; word-break: break-all; }
.ma-pago-boton { display: flex; justify-content: center; padding: 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); min-height: 96px; }
.ma-pago-nota { text-align: center; margin-top: 16px; }
.ma-bold-modo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .ma-pago-resumen { grid-template-columns: 1fr 1fr; } }

.gs-demo-banner{background:#fff4d6;border:1px dashed #d9a300;color:#6b4e00;border-radius:10px;padding:10px 14px;margin:0 0 14px;font-size:.92rem}
.gs-demo-banner strong{margin-right:6px}
.gs-demo-banner a{color:#6b4e00;font-weight:600;margin-left:6px}
