/* BitacoraBit · web · estilo "Puente de mando" (mismos colores que la app) */
@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Sora; src: url(/fonts/Sora-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Sora; src: url(/fonts/Sora-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --fondo: #0B1A2E;
  --tarjeta: #13263F;
  --elevado: #1A3150;
  --borde: #22406A;
  --acento: #39C6E6;
  --ambar: #F5B841;
  --texto: #E8F1FA;
  --suave: #A9BCD3;
  --tenue: #7891AE;
  --ancho: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--acento); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; line-height: 1.2; }

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

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.cabecera .contenedor { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-family: Sora; font-weight: 700; font-size: 20px; }
.marca img { width: 36px; height: 36px; border-radius: 9px; }
.cabecera nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cabecera nav a { color: var(--suave); text-decoration: none; font-size: 15px; }
.cabecera nav a:hover { color: var(--texto); }
.idioma { border: 1px solid var(--borde); border-radius: 8px; padding: 3px 9px; }

/* Portada */
.portada { padding: 72px 0 56px; background: radial-gradient(ellipse at 80% 0%, rgba(57,198,230,0.16), transparent 60%); }
.portada .contenedor { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.portada h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 16px; }
.portada h1 span { color: var(--acento); }
.portada p.lema { font-size: 20px; color: var(--suave); margin: 0 0 28px; }
.botones { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.boton-play img { height: 52px; width: auto; display: block; }
.prueba { display: inline-block; background: rgba(245,184,65,0.14); color: var(--ambar); border: 1px solid rgba(245,184,65,0.4); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.portada .movil { justify-self: center; max-width: 320px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); border-radius: 26px; }

/* Secciones */
section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
section p.intro { color: var(--suave); margin: 0 0 32px; max-width: 720px; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 22px; }
.tarjeta h3 { margin: 8px 0 8px; font-size: 19px; }
.tarjeta p { margin: 0; color: var(--suave); font-size: 15.5px; }
.icono { font-size: 28px; }

.capturas { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.capturas img { width: 230px; flex: 0 0 auto; border-radius: 18px; border: 1px solid var(--borde); scroll-snap-align: start; }

.destacado { background: var(--elevado); border: 1px solid var(--borde); border-radius: 20px; padding: 36px; text-align: center; }
.destacado h2 { margin-bottom: 10px; }
.destacado p { color: var(--suave); margin: 0 auto 24px; max-width: 640px; }
.destacado .botones { justify-content: center; }

/* Páginas de texto (privacidad, términos…) */
.documento { padding: 48px 0 64px; }
.documento .contenedor { max-width: 820px; }
.documento h1 { font-size: 34px; margin: 0 0 6px; }
.documento .fecha { color: var(--tenue); margin: 0 0 28px; }
.documento h2 { font-size: 21px; margin: 34px 0 10px; color: var(--acento); }
.documento h3 { font-size: 17px; margin: 22px 0 6px; }
.documento p, .documento li { color: var(--suave); }
.documento li { margin-bottom: 6px; }
.documento .aviso { background: var(--tarjeta); border-left: 4px solid var(--ambar); border-radius: 10px; padding: 14px 18px; color: var(--texto); }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 32px 0 40px; color: var(--tenue); font-size: 14px; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pie a { color: var(--suave); text-decoration: none; }
.pie a:hover { color: var(--texto); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .portada { padding: 40px 0 32px; }
  .portada .contenedor { grid-template-columns: 1fr; }
  .portada .movil { max-width: 240px; }
  .cabecera nav a.opcional { display: none; }
  section { padding: 40px 0; }
  .destacado { padding: 26px 18px; }
  /* Los dos botones de tienda, uno al lado del otro */
  .botones { gap: 10px; flex-wrap: nowrap; justify-content: center; }
  .boton-play img { height: 44px; }
  .botones .proximamente { height: 44px; padding: 0 11px; font-size: 17px; border-radius: 8px; }
  .botones .proximamente small { font-size: 9.5px; margin-bottom: 1px; }
}

/* "Próximamente en App Store": mismo tamaño y aspecto que el botón de
   Google Play (sin la insignia oficial de Apple hasta publicar) */
.proximamente {
  display: inline-flex; flex-direction: column; justify-content: center;
  height: 52px; padding: 0 16px;
  background: #000; color: #fff;
  border: 1px solid #A6A6A6; border-radius: 9px;
  font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 21px; line-height: 1.05;
  white-space: nowrap;
}
.proximamente small { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0.2px; margin-bottom: 2px; }

.idiomas-guia { font-size: 14px; color: var(--tenue); margin: 0 0 14px; }
.idiomas-guia a { margin: 0 2px; }
.idiomas-guia b { color: var(--acento); margin: 0 2px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--borde); background: #000; max-width: 960px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-portada { all: unset; cursor: pointer; display: block; position: absolute; inset: 0; }
.video-portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-portada .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(57,198,230,.92); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.video-portada .play::after { content: ""; position: absolute; left: 33px; top: 25px; border-left: 26px solid #0B1A2E; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.video-portada:hover .play, .video-portada:focus-visible .play { transform: scale(1.06); }
.nota-video { font-size: 13px; color: var(--tenue); margin-top: 10px; }

/* Sala de prensa */
.tabla-datos { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.tabla-datos th, .tabla-datos td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #22406A; }
.tabla-datos th { width: 32%; color: #39C6E6; font-weight: 600; }
a.boton { display: inline-block; background: #39C6E6; color: #062033; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; }
a.boton:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .tabla-datos th, .tabla-datos td { display: block; width: auto; } .tabla-datos th { border-bottom: none; padding-bottom: 0; } }

/* Recuadros que enlazan al manual */
a.tarjeta { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tarjeta:hover { border-color: var(--acento); transform: translateY(-2px); }
.tarjeta .ver { display: block; margin-top: 12px; color: var(--acento); font-size: 14px; font-weight: 600; }
/* Manual */
.manual-rejilla { margin: 24px 0; }
.manual-rejilla .icono { font-family: Sora, sans-serif; font-weight: 800; color: var(--acento); }
.manual-capturas { margin: 18px 0; }
.manual-video-pronto { background: var(--tarjeta); border: 1px dashed var(--borde); border-radius: 12px; padding: 14px 16px; color: var(--suave); }
.manual-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 10px; font-weight: 600; }
.manual-pie { margin-top: 28px; text-align: center; }
.manual-pdf { margin: 18px 0; }
.boton-pdf { display: inline-block; background: var(--acento); color: #062033; font-weight: 700; padding: 11px 18px; border-radius: 12px; text-decoration: none; }
.boton-pdf:hover { filter: brightness(1.08); }
