/* BATALLAS · Test de phishing — estética clara y limpia (público no TI). */
:root {
    --tinta: #14213d;
    --tinta-2: #4a5878;
    --fondo: #f6f7fb;
    --papel: #ffffff;
    --linea: #dfe4f0;
    --acento: #2b59ff;
    --acento-2: #1d3fd1;
    --rojo: #d63a2f;
    --verde: #138a52;
    --amarillo: #ffcf3f;
    --sombra: 0 10px 30px rgba(20, 33, 61, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fondo);
    color: var(--tinta);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
[hidden] { display: none !important; }

/* ---------- barra superior ---------- */
.barra {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linea);
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; }
.marca-logo {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
    background: var(--tinta); color: var(--amarillo);
    padding: 4px 8px; border-radius: 8px; letter-spacing: .05em;
}
.marca-txt { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; }
.marca:hover .marca-logo { background: var(--acento); color: #fff; }
.marca-sub { color: var(--tinta-2); font-size: 13px; margin-left: auto; }
.contador { font-size: 17px; color: var(--tinta-2); margin-left: 16px; }
.contador b { color: var(--acento); font-weight: 700; }

main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 16px 48px; }
.vista { text-align: center; }

.titulo {
    font-family: 'Space Grotesk', sans-serif; font-weight: 500;
    font-size: clamp(26px, 4.6vw, 42px); line-height: 1.18;
    margin: 18px auto 14px; max-width: 760px;
}
.texto { color: var(--tinta-2); max-width: 600px; margin: 0 auto 12px; font-size: 15px; }
.res-ok { color: var(--verde); }
.res-mal { color: var(--rojo); }

.ilustracion svg { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto; }

/* ---------- botones ---------- */
.acciones { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.btn {
    appearance: none; border: 0; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px;
    padding: 12px 26px; border-radius: 999px;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-primario { background: var(--acento); color: #fff; box-shadow: 0 6px 16px rgba(43, 89, 255, .30); }
.btn-primario:hover { background: var(--acento-2); box-shadow: 0 10px 22px rgba(43, 89, 255, .40); }
.btn-phish { background: var(--acento); color: #fff; min-width: 140px; box-shadow: 0 6px 16px rgba(43, 89, 255, .30); }
.btn-legit { background: var(--acento); color: #fff; min-width: 140px; box-shadow: 0 6px 16px rgba(43, 89, 255, .30); }
.btn-phish:hover:not(:disabled) { background: var(--rojo); box-shadow: 0 10px 22px rgba(214, 58, 47, .35); }
.btn-legit:hover:not(:disabled) { background: var(--verde); box-shadow: 0 10px 22px rgba(19, 138, 82, .35); }
.btn-sec { background: var(--papel); color: var(--tinta); border: 1.5px solid var(--linea); }
.btn-sec:hover { border-color: var(--tinta); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- formulario ---------- */
.form { max-width: 340px; margin: 26px auto 0; text-align: left; }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-size: 13px; color: var(--tinta-2); margin-bottom: 4px; }
.campo input {
    width: 100%; padding: 13px 14px; font: inherit; color: var(--tinta);
    border: 1.5px solid #b9c2d8; border-radius: 8px; background: #fff;
}
.campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(43, 89, 255, .15); }
.error { color: var(--rojo); font-size: 14px; margin: 0; }

/* ---------- escena (contenedor de la pista) ---------- */
.escena { position: relative; margin-top: 8px; text-align: left; }
.escena.explicando a[data-url] { cursor: help; }
.pista-activa {
    position: relative; z-index: 2;
    outline: 3px solid var(--amarillo); outline-offset: 3px;
    border-radius: 6px; background-color: rgba(255, 207, 63, .22);
    animation: latido 1.4s ease-in-out infinite;
}
@keyframes latido { 50% { outline-color: rgba(255, 207, 63, .35); } }
.tip {
    position: absolute; z-index: 10;
    background: #fff; border-radius: 12px; padding: 14px 16px 12px;
    box-shadow: 0 14px 40px rgba(20, 33, 61, .28);
    border: 1px solid var(--linea);
    animation: aparecer .2s ease-out;
}
.tip::before {
    content: ''; position: absolute; top: -8px; left: var(--flecha, 24px);
    width: 14px; height: 14px; background: #fff; transform: rotate(45deg);
    border-left: 1px solid var(--linea); border-top: 1px solid var(--linea);
}
.tip-txt { margin: 0 0 12px; font-size: 14px; color: var(--tinta); }
.tip-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tip-n { font-size: 12px; color: var(--tinta-2); }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } }

/* ---------- correo ---------- */
.mail {
    background: var(--papel); border: 1px solid var(--linea); border-radius: 14px;
    box-shadow: var(--sombra); padding: 20px 22px 26px;
}
.mail-cab { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.av {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #3b8c4a; color: #fff; font-weight: 700; font-size: 18px;
}
.av-sm { width: 30px; height: 30px; font-size: 14px; }
.av-morado { background: #7c4dff; }
.av-gris { background: #c7cede; }
.mail-de { flex: 1; min-width: 0; }
.mail-linea { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.mail-nombre { font-size: 14px; }
.mail-correo { font-size: 12.5px; color: var(--tinta-2); word-break: break-all; padding: 1px 2px; }
.mail-para { font-size: 12.5px; color: var(--tinta-2); }
.mail-hora { font-size: 12.5px; color: var(--tinta-2); }
.mail-cuerpo { font-size: 14.5px; color: #26324d; overflow-wrap: anywhere; }
.mail-cuerpo p { margin: 0 0 12px; }

a[data-url] { cursor: pointer; }
.enlace { color: #1a56db; text-decoration: underline; display: inline-block; margin-bottom: 12px; }
.btn-mail {
    display: inline-block; background: #1a56db; color: #fff; font-weight: 700; font-size: 14px;
    padding: 10px 22px; border-radius: 6px; margin: 6px 0 14px; text-decoration: none;
}
.btn-mail:hover { background: #1443b0; }
.btn-rojo { background: #c62828; }
.btn-rojo:hover { background: #9f1f1f; }
.doc-pie { font-size: 12px; color: #7a869e; margin-top: 16px !important; }

/* ---------- Documento de Google Drive ---------- */
.av-azul { background: #4285f4; }
.gdoc { border: 1px solid var(--linea); border-radius: 10px; padding: 24px; max-width: 580px; margin: 0 auto; }
.gdoc-h { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 24px; margin: 0 0 18px; color: #202124; }
.gdoc-quien { display: flex; gap: 10px; align-items: center; }
.gdoc-quien p { margin: 0; }
.gdoc-msg { margin: 14px 0 !important; padding-left: 40px; color: #3c4043; }
.gdoc-tarjeta { display: block; max-width: 300px; border: 1px solid #dadce0; border-radius: 8px; overflow: hidden; color: #202124; text-decoration: none; margin: 4px 0 10px 40px; }
.gdoc-tarjeta:hover { box-shadow: 0 2px 8px rgba(60, 64, 67, .25); }
.gdoc-fila { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.gdoc-ico { width: 18px; height: 22px; border-radius: 3px; background: #4285f4; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.gdoc-ico-xl { width: 54px; height: 66px; font-size: 34px; border-radius: 6px; }
.gdoc-nombre { font-size: 13.5px; font-weight: 500; flex: 1; }
.gdoc-star { color: #5f6368; }
.gdoc-prev { display: flex; align-items: center; justify-content: center; height: 120px; background: #f1f3f4; border-top: 1px solid #dadce0; }
.gdoc-meta { font-size: 12.5px; color: #5f6368; margin-left: 40px !important; }
.btn-gdoc { background: #1a73e8; margin-left: 40px; }
.btn-gdoc:hover { background: #1765cc; }
.gdoc-logo { font-size: 13px; color: #5f6368; font-weight: 500; margin-top: 10px !important; }

/* ---------- Coca-Cola (todo en imagen) ---------- */
.coke { max-width: 470px; margin: 0 auto; text-align: center; }
.coke-logo { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-style: italic; font-weight: 700; font-size: 40px; color: #e41e2b; margin: 0 0 8px !important; }
.coke-img { background: #000; color: #fff; padding: 26px 22px 30px; }
.coke-t1 { color: #e41e2b; font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.coke-t2 { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.coke-t2::before, .coke-t2::after { content: ''; flex: 1; height: 1px; background: #777; }
.coke-t3 { font-size: 28px; font-weight: 700; line-height: 1.15; }
.coke-batidora { width: 70px; height: 110px; margin: 6px auto 14px; border-radius: 10px 10px 18px 18px; background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.08)); border: 2px solid #9e9e9e; position: relative; }
.coke-batidora span { position: absolute; left: 10px; right: 10px; bottom: -10px; height: 26px; background: #e41e2b; border-radius: 6px; }
.coke-t4 { font-size: 14px; color: #ddd; }
.coke-btn { display: inline-block; background: #e41e2b; color: #fff; font-weight: 700; padding: 12px 26px; border-radius: 4px; text-decoration: none; margin-top: 6px; }
.coke-btn:hover { background: #c4141f; }
.coke-pie { font-size: 11.5px; color: #7a869e; margin-top: 12px !important; }

/* ---------- PayPal ---------- */
.paypal { max-width: 540px; margin: 0 auto; }
.pp-logo { font-family: 'DM Sans', sans-serif; font-weight: 700; font-style: italic; font-size: 26px; }
.pp-logo span:first-child { color: #003087; }
.pp-logo span:last-child { color: #009cde; }
.pp-h { font-family: 'DM Sans', sans-serif; font-size: 24px; margin: 4px 0 8px; color: #2c2e2f; }
.pp-sub { color: var(--tinta-2); font-size: 13px; }
.pp-tabla, .gcal-tabla { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.pp-tabla th { text-align: left; border-bottom: 1px solid var(--linea); padding: 8px 0; }
.pp-tabla td, .gcal-tabla td { padding: 8px 8px 8px 0; vertical-align: top; border-bottom: 1px solid #eef1f7; }
.pp-tabla td:first-child, .gcal-tabla td:first-child { color: var(--tinta-2); width: 32%; }
.pp-tel { font-weight: 700; }
.btn-pp { background: #0070ba; border-radius: 22px; }
.btn-pp:hover { background: #005ea6; }
.pp-chico { font-size: 12.5px; color: #4a5878; }
.pp-links { font-size: 12.5px; color: #4a5878; }
.pp-links a { color: #0070ba; }

/* ---------- Dropbox ---------- */
.dropbox { max-width: 540px; margin: 0 auto; }
.db-logo { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 22px; color: #0061fe; display: flex; align-items: center; gap: 8px; }
.db-caja { font-size: 26px; }
.btn-db { background: #0061fe; }
.btn-db:hover { background: #0050d4; }

/* ---------- Alerta de Google ---------- */
.galerta { max-width: 540px; margin: 0 auto; border: 1px solid #dadce0; border-radius: 8px; overflow: hidden; }
.galerta-banda { background: #db4437; color: #fff; font-size: 22px; padding: 22px 24px; }
.galerta-cuerpo { padding: 18px 24px 8px; }
.btn-galerta { background: #4285f4; }
.btn-galerta:hover { background: #3367d6; }

/* ---------- Advertencia (atacantes respaldados por un gobierno) ---------- */
.ggov { max-width: 560px; margin: 0 auto; border: 1px solid #dadce0; border-radius: 8px; padding: 22px 24px; text-align: center; }
.ggov p { text-align: left; }
.ggov-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: #d93025; color: #fff; font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.ggov-h { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 21px; margin: 0 0 14px; color: #202124; }
.ggov .btn-gdoc { margin-left: 0; }

/* ---------- Invitación de Google Calendar ---------- */
.gcal { max-width: 580px; margin: 0 auto; }
.gcal-cab { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.gcal-fecha { flex: none; width: 58px; border: 1px solid #dadce0; border-radius: 8px; text-align: center; padding: 4px 0; font-size: 12px; color: #5f6368; display: flex; flex-direction: column; }
.gcal-fecha b { font-size: 22px; color: #1a73e8; line-height: 1.15; }
.gcal-h { font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 500; margin: 0 0 4px; color: #202124; }
.gcal-ver { font-size: 13px; margin: 0 !important; }
.gcal-rsvp { font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gcal-rsvp span { border: 1px solid #dadce0; border-radius: 4px; padding: 4px 16px; color: #1a73e8; font-weight: 500; }

/* ---------- teléfono / SMS ---------- */
.telefono {
    max-width: 380px; margin: 0 auto; background: #fff;
    border: 10px solid #1d2233; border-radius: 34px; overflow: hidden;
    box-shadow: var(--sombra);
}
.tel-cab { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid var(--linea); background: #f7f8fc; }
.tel-volver { font-size: 26px; color: #1a56db; line-height: 1; }
.tel-contacto { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 4px; padding-right: 26px; }
.tel-nombre { font-size: 13.5px; font-weight: 700; word-break: break-all; text-align: center; padding: 1px 4px; }
.tel-hilo { padding: 12px 14px 18px; min-height: 260px; }
.tel-dia { text-align: center; font-size: 12px; color: var(--tinta-2); margin: 0 0 10px; }
.sms { margin-bottom: 14px; }
.sms-de { font-size: 11.5px; color: var(--tinta-2); margin: 0 0 3px 6px; }
.sms-burbuja { background: #e9ecf3; border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 14.5px; max-width: 88%; overflow-wrap: anywhere; }
.sms-burbuja a { color: #1a56db; text-decoration: underline; }
.sms-hora { font-size: 11px; color: var(--tinta-2); margin: 3px 0 0 8px; }
.tel-caja { border-top: 1px solid var(--linea); padding: 10px 14px 14px; }
.tel-input { display: block; border: 1px solid var(--linea); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: #9aa5bd; }

/* ---------- final ---------- */
.medalla {
    width: 110px; height: 110px; margin: 10px auto 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 46px; color: var(--tinta);
    border: 6px solid #fff; box-shadow: var(--sombra);
}
.medalla-oro { background: var(--amarillo); }
.medalla-plata { background: #d6dcea; }
.medalla-bronce { background: #f0b48a; }
.puntaje { font-size: 22px; font-weight: 700; margin: 0 0 16px; }

/* ---------- barra de URL y aviso ---------- */
.estado-url {
    position: fixed; left: 8px; bottom: 8px; z-index: 50; max-width: calc(100% - 16px);
    background: #eef1f8; color: #26324d; border: 1px solid #c9d1e4; border-radius: 6px;
    padding: 4px 10px; font-size: 12.5px; font-family: ui-monospace, Consolas, monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(20, 33, 61, .15);
}
.aviso {
    position: fixed; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 50;
    background: var(--tinta); color: #fff; font-size: 13.5px; padding: 8px 16px; border-radius: 999px;
}

.pie { text-align: center; font-size: 12px; color: #8a95ad; padding: 18px 16px 50px; border-top: 1px solid var(--linea); }

@media (max-width: 600px) {
    .barra { padding: 10px 16px; gap: 10px; }
    .marca-sub { display: none; }
    .contador { margin-left: auto; font-size: 15px; }
    .marca-txt { font-size: 16px; }
    .mail { padding: 16px 14px 20px; }
    .gdoc { padding: 14px; }
    .gdoc-msg, .gdoc-meta { padding-left: 0; margin-left: 0 !important; }
    .gdoc-tarjeta, .btn-gdoc { margin-left: 0; }
    .estado-url { white-space: normal; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
