/* Prompi — landing. Negro, blanco y el naranja de marca. Nada más. */

:root {
    --negro: #0A0A0B;
    --negro-suave: #141416;
    --borde: #232327;
    --blanco: #FFFFFF;
    --texto: #EDEDEF;
    --texto-tenue: #9A9AA2;
    --naranja: #F77E2D;
    --naranja-claro: #FFA15C;
    --ancho: 1080px;
    --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--negro);
    color: var(--texto);
    font-family: var(--fuente);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------------------------------------------------------------- cabecera */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 11, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--borde);
}

.barra {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
}

.barra img { width: 30px; height: 30px; border-radius: 7px; }
.barra .nombre { font-weight: 600; letter-spacing: -0.01em; }
.barra nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.barra nav a { color: var(--texto-tenue); text-decoration: none; font-size: 15px; }
.barra nav a:hover { color: var(--texto); }
/* El selector del menú es más específico que .boton y le ganaba el color: el texto quedaba
   naranja sobre naranja. */
.barra nav a.boton { color: #1A0D03; }
.barra nav a.boton:hover { color: #1A0D03; }

/* ---------------------------------------------------------------- botones */

.boton {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--naranja);
    color: #1A0D03;
    font-weight: 600;
    font-size: 16px;
    padding: 13px 22px;
    border-radius: 11px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease;
}

.boton:hover { background: var(--naranja-claro); transform: translateY(-1px); }

.boton.secundario {
    background: transparent;
    color: var(--texto);
    border: 1px solid var(--borde);
    font-weight: 500;
}

.boton.secundario:hover { background: var(--negro-suave); }

.bajo-boton { color: var(--texto-tenue); font-size: 14px; margin-top: 14px; }

/* ---------------------------------------------------------------- portada */

.portada { padding: 92px 0 40px; text-align: center; }

.etiqueta {
    display: inline-block;
    font-size: 13px;
    color: var(--naranja);
    border: 1px solid rgba(247, 126, 45, 0.35);
    background: rgba(247, 126, 45, 0.08);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 26px;
}

h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 680;
    margin-bottom: 20px;
}

h1 .acento { color: var(--naranja); }

.entrada {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--texto-tenue);
    max-width: 640px;
    margin: 0 auto 34px;
}

/* ------------------------------------------------------- maqueta del panel */

.maqueta {
    margin: 58px auto 0;
    max-width: 880px;
    background: linear-gradient(170deg, #2B2B31, #121215);
    border: 1px solid var(--borde);
    border-radius: 18px;
    padding: 0 0 54px;
    position: relative;
    overflow: hidden;
}

.panel {
    width: min(560px, 74%);
    margin: 0 auto;
    background: #000;
    border-radius: 0 0 18px 18px;
    padding: 26px 30px 16px;
    text-align: left;
    position: relative;
}

.panel .camara {
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #2E2E33;
}

.panel p {
    font-size: 19px;
    line-height: 1.5;
    color: #F2EFE9;
    margin: 0;
}

.panel .apagado { color: rgba(242, 239, 233, 0.22); }

.panel .actual {
    background: rgba(247, 126, 45, 0.3);
    border-radius: 5px;
    padding: 1px 4px;
    margin: 0 -2px;
}

.panel .pie {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.panel .onda { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.panel .onda i {
    width: 2px;
    background: var(--naranja);
    border-radius: 2px;
    animation: latir 1.1s ease-in-out infinite;
}
.panel .onda i:nth-child(1) { height: 5px; animation-delay: 0s; }
.panel .onda i:nth-child(2) { height: 11px; animation-delay: 0.15s; }
.panel .onda i:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.panel .onda i:nth-child(4) { height: 12px; animation-delay: 0.45s; }

@keyframes latir { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
    .panel .onda i { animation: none; }
}

.panel .progreso { flex: 1; height: 3px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.panel .progreso span { display: block; width: 38%; height: 100%; background: var(--naranja); border-radius: 2px; }

.pie-maqueta {
    color: var(--texto-tenue);
    font-size: 13px;
    margin-top: 26px;
}

/* ---------------------------------------------------------------- secciones */

section { padding: 86px 0; border-top: 1px solid var(--borde); }

h2 {
    font-size: clamp(27px, 3.6vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 650;
}

.subtitulo { color: var(--texto-tenue); max-width: 620px; margin-bottom: 44px; }

.rejilla { display: grid; gap: 22px; }
.rejilla.tres { grid-template-columns: repeat(3, 1fr); }
.rejilla.dos { grid-template-columns: repeat(2, 1fr); }

.tarjeta {
    background: var(--negro-suave);
    border: 1px solid var(--borde);
    border-radius: 15px;
    padding: 26px;
}

.tarjeta .numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: rgba(247, 126, 45, 0.13);
    color: var(--naranja);
    font-weight: 650;
    font-size: 15px;
    margin-bottom: 14px;
}

.tarjeta h3 { font-size: 18px; margin-bottom: 7px; font-weight: 600; letter-spacing: -0.01em; }
.tarjeta p { color: var(--texto-tenue); font-size: 15px; }

/* ---------------------------------------------------------------- precio */

.precio { text-align: center; }

.caja-precio {
    max-width: 470px;
    margin: 0 auto;
    background: var(--negro-suave);
    border: 1px solid var(--borde);
    border-radius: 18px;
    padding: 38px 30px;
}

.cifra { font-size: 58px; font-weight: 680; letter-spacing: -0.03em; line-height: 1; }
.cifra span { font-size: 19px; color: var(--texto-tenue); font-weight: 400; letter-spacing: 0; }

.lista { list-style: none; text-align: left; margin: 26px 0; display: grid; gap: 11px; }
.lista li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.lista li::before { content: "✓"; color: var(--naranja); font-weight: 700; }

/* ---------------------------------------------------------------- preguntas */

details {
    border-bottom: 1px solid var(--borde);
    padding: 19px 0;
}

details summary {
    cursor: pointer;
    font-weight: 550;
    font-size: 17px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--naranja); font-size: 21px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--texto-tenue); font-size: 15px; margin-top: 11px; max-width: 760px; }

/* ---------------------------------------------------------------- pie */

footer {
    border-top: 1px solid var(--borde);
    padding: 38px 0 60px;
    color: var(--texto-tenue);
    font-size: 14px;
}

.pie-fila { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.pie-fila nav { margin-left: auto; display: flex; gap: 22px; }
.pie-fila a { color: var(--texto-tenue); text-decoration: none; }
.pie-fila a:hover { color: var(--texto); }

/* ---------------------------------------------------------------- angosto */

@media (max-width: 820px) {
    .rejilla.tres, .rejilla.dos { grid-template-columns: 1fr; }
    .barra nav { display: none; }
    .portada { padding-top: 62px; }
    .panel { width: 88%; }
}

/* ---------------------------------------------------------------- aviso */

.aviso {
    max-width: 560px;
    margin: 26px auto 0;
    background: rgba(247, 126, 45, 0.07);
    border: 1px solid rgba(247, 126, 45, 0.28);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--texto-tenue);
    text-align: left;
    line-height: 1.55;
}

.aviso strong { color: var(--texto); }

/* ---------------------------------------------------------------- ilustraciones */

.ilustracion {
    display: block;
    width: 100%;
    height: auto;
    max-height: 86px;
    margin-bottom: 18px;
    color: var(--texto-tenue);
}

/* ---------------------------------------------------------------- monedas */

.monedas {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borde);
    border-radius: 10px;
    margin-bottom: 22px;
}

.monedas button {
    background: none;
    border: none;
    color: var(--texto-tenue);
    font: inherit;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
}

.monedas button[aria-pressed="true"] {
    background: var(--naranja);
    color: #1A0D03;
    font-weight: 600;
}

.monedas button:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; }

/* ---------------------------------------------------------------- soporte */

dialog.modal {
    max-width: 520px;
    width: calc(100% - 48px);
    background: var(--negro-suave);
    color: var(--texto);
    border: 1px solid var(--borde);
    border-radius: 16px;
    padding: 0;
}

dialog.modal::backdrop { background: rgba(0, 0, 0, 0.68); }

dialog.modal .cuerpo { padding: 28px 30px 30px; }
dialog.modal h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -0.01em; }
dialog.modal .nota { color: var(--texto-tenue); font-size: 14px; margin-bottom: 20px; }

dialog.modal label { display: block; font-size: 13px; color: var(--texto-tenue); margin-bottom: 6px; }

dialog.modal input,
dialog.modal textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borde);
    border-radius: 9px;
    color: var(--texto);
    font: inherit;
    font-size: 15px;
    padding: 10px 12px;
    margin-bottom: 15px;
}

dialog.modal textarea { min-height: 120px; resize: vertical; }
dialog.modal input:focus, dialog.modal textarea:focus { outline: none; border-color: var(--naranja); }

dialog.modal .trampa { position: absolute; left: -9999px; opacity: 0; }

dialog.modal .acciones { display: flex; gap: 12px; align-items: center; }
dialog.modal .resultado { font-size: 14px; }
dialog.modal .resultado.bien { color: #6BD68A; }
dialog.modal .resultado.mal { color: var(--naranja); }

.cerrar-modal {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: var(--texto-tenue);
    font-size: 26px; line-height: 1; cursor: pointer;
}
.cerrar-modal:hover { color: var(--texto); }

/* ---------------------------------------------------------------- botón compacto */

.boton.compacto {
    padding: 9px 17px;
    font-size: 14px;
    line-height: 1.2;
}
