/* ============================================
   PÁGINA DE PRECIOS (precios.html)
   ============================================ */

html { scroll-behavior: smooth; }

body.precios {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}

.precios h1, .precios h2, .precios h3 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    border: none;
    padding: 0;
    margin: 0;
    color: #0f172a;
}

.precios a { text-decoration: none; }
.precios a:hover { text-decoration: none; }

/* ---------- Barra superior ---------- */
.pnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.plogo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
}

.plogo svg { width: 34px; height: 34px; flex-shrink: 0; }

.pnav-enlaces { display: flex; align-items: center; gap: 22px; }

.pnav-enlaces a.enlace { color: #475569; font-weight: 500; font-size: 0.95rem; }
.pnav-enlaces a.enlace:hover { color: #2563eb; }

.precios form {
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    max-width: none;
}

.precios .nav-salir {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 7px 16px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.precios .nav-salir:hover { background: #f1f5f9; }

/* ---------- Botones ---------- */
.pbtn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    margin: 0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.pbtn:hover { transform: translateY(-1px); }

.pbtn-solido {
    background: #2563eb;
    color: #ffffff;
    border: 2px solid #2563eb;
}
.pbtn-solido:hover { background: #1e40af; border-color: #1e40af; }

.pbtn-borde {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
}
.pbtn-borde:hover { background: #eff6ff; }

.pbtn-pequeno {
    display: inline-block;
    width: auto;
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* ---------- Cabecera de la sección ---------- */
.phero { text-align: center; padding: 64px 24px 30px; }

.insignia {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.phero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 760px;
    margin: 0 auto 18px;
}

.phero h1 span { color: #2563eb; }

.phero p.sub {
    max-width: 620px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1.08rem;
}

.paviso {
    max-width: 560px;
    margin: 22px auto 0;
    padding: 11px 14px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.92rem;
}

/* ---------- Conmutador mensual / anual ---------- */
.conmutador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 38px 0 44px;
    font-size: 0.95rem;
}

.conmutador .lbl { color: #64748b; font-weight: 500; cursor: pointer; }
body:not(.anual) .conmutador .lbl-m,
body.anual .conmutador .lbl-a { color: #0f172a; font-weight: 700; }

.precios .switch {
    position: relative;
    width: 52px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: #2563eb;
    cursor: pointer;
}

.precios .switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s;
}

body.anual .precios .switch::after,
body.anual .switch::after { transform: translateX(24px); }

.ahorro {
    padding: 3px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---------- Tarjetas ---------- */
.planes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 26px 26px;
}

.plan.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14);
}

.etiqueta-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.plan .nombre {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 14px;
}

.precio { min-height: 84px; }

.precio .cifra-linea { display: flex; align-items: baseline; gap: 4px; }
.precio .moneda { font-size: 1.2rem; font-weight: 600; color: #334155; }
.precio .cifra { font-size: 2.8rem; font-weight: 800; color: #0f172a; line-height: 1; }
.precio .per { color: #64748b; font-size: 0.92rem; }
.precio .equivale { margin-top: 6px; font-size: 0.82rem; color: #64748b; }

.precio-anual { display: none; }
body.anual .precio-anual { display: block; }
body.anual .precio-mensual { display: none; }

.plan hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 18px 0;
}

.caracteristicas { flex: 1; margin-bottom: 22px; }

.item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 0.93rem;
    color: #334155;
}

.item .ok {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.item.pronto { color: #94a3b8; }
.item.pronto .ok { background: #f1f5f9; color: #94a3b8; }
.item .tag-pronto {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ---------- Nota y preguntas ---------- */
.nota {
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
    margin: 44px 24px 0;
}

.nota strong { color: #0f172a; }

.faq { max-width: 680px; margin: 64px auto 0; padding: 0 24px 72px; }

.faq h2 { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 28px; }

.faq details { border-bottom: 1px solid #e2e8f0; }

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 2px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #0f172a;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #2563eb; font-size: 1.3rem; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }

.faq .respuesta { padding: 0 2px 18px; color: #475569; font-size: 0.95rem; }

/* ---------- Pie ---------- */
.ppie {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin: 0;
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

.ppie a { color: #2563eb; }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 1050px) {
    .planes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .pnav { padding: 12px 16px; }
    .pnav-enlaces a.enlace.oculto-movil { display: none; }
    .planes { grid-template-columns: 1fr; }
    .phero { padding-top: 44px; }
}

/* Texto corto del enlace de acceso: solo en móviles estrechos */
.pnav .txt-corto { display: none; }

/* Móvil: la barra cabe en una línea (solo el pin del logo, enlaces y botones sin partir) */
@media (max-width: 560px) {
    .pnav { gap: 10px; }
    .plogo span { display: none; }
    .pnav-enlaces { gap: 10px; }
    .pnav-enlaces a.enlace { font-size: 0.88rem; white-space: nowrap; }
    .pbtn-pequeno,
    .precios .nav-salir { padding: 8px 14px; white-space: nowrap; }
}

/* Móviles estrechos o con la letra del sistema agrandada */
@media (max-width: 400px) {
    .pnav { padding: 10px 12px; }
    .pnav .txt-largo { display: none; }
    .pnav .txt-corto { display: inline; }
    .pnav-enlaces { gap: 8px; }
    .pbtn-pequeno,
    .precios .nav-salir { padding: 7px 11px; font-size: 0.85rem; }
}

/* Móvil: que las tarjetas de planes no hagan la página más ancha que la pantalla */
@media (max-width: 620px) {
    .planes { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
    .plan { min-width: 0; padding: 28px 20px 22px; overflow-wrap: anywhere; }
    .conmutador { flex-wrap: wrap; gap: 10px 14px; padding: 0 16px; }
}
