/* ============================================================================
   Marca MUELLE La Bodeguita — tema compartido del módulo de venta online
   Fuente: manual "MARCA MUELLE.pdf" (2026). Colores principales:
     Azul Muelle #073770 · Azul #0062ee · Cielo #7acaf0 · Crema #eae7d0
   Secundarios usados: verde #00ab55 · rojo #ff221d (oscurecido para texto) ·
     amarillo #ffe72d. Tipografía de marca: Banana Grotesk (autohospedada).
   La institución (CorpoTurismo) conserva su logo en el encabezado.
   ========================================================================== */

@font-face {
  font-family: 'Banana Grotesk';
  src: url('fonts/BananaGrotesk-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Banana Grotesk';
  src: url('fonts/BananaGrotesk-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Banana Grotesk';
  src: url('fonts/BananaGrotesk-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Banana Grotesk';
  src: url('fonts/BananaGrotesk-Extrabold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

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

:root {
  /* Principales del manual */
  --azul-muelle: #073770;   /* "Azul Muelle" — color insignia */
  --azul-logo:   #063772;   /* fondo exacto del JPEG del logotipo */
  --azul:        #0062ee;
  --azul-dk:     #004fc0;   /* derivado para hover */
  --cielo:       #7acaf0;
  --crema:       #eae7d0;
  /* Secundarios del manual (ajustados para contraste en texto) */
  --verde:       #00ab55;
  --verde-ink:   #00713a;
  --rojo:        #ff221d;
  --rojo-ink:    #c1150f;
  --amarillo:    #ffe72d;
  --ambar-ink:   #8a6d00;
  /* Neutros derivados de la crema */
  --paper:       #fffdf4;
  --ink:         #1c2b45;
  --muted:       #5d6a83;
  --border:      #d9d4bc;
  --campo:       #faf8ea;
  --shadow: 0 12px 40px rgba(7,55,112,.16), 0 2px 8px rgba(7,55,112,.08);
  --radius: 16px;
}

html { height: 100%; background: var(--crema); }

body {
  min-height: 100%;
  font-family: 'Banana Grotesk', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--crema);
  touch-action: manipulation;
}

/* Franja superior — plana, azul océano del logotipo */
.brandbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 6px; background: var(--azul-logo);
}

.page {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 16px 48px;
}

/* ── Tarjeta base ── */
.card {
  width: 100%; max-width: 480px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(7,55,112,.10);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: riseUp .6s cubic-bezier(.22,1,.36,1) .08s both;
}

/* Cabecera de marca: bloque plano Azul Muelle con el logotipo real */
.card-head-muelle {
  background: var(--azul-logo);
  padding: 26px 24px 30px;
  position: relative;
  text-align: center;
}
.card-head-muelle .muelle-logo {
  display: block;
  width: min(78%, 300px);
  height: auto;   /* conserva la proporción: la O del logotipo debe ser redonda */
  margin: 0 auto;
}
.card-head-muelle .wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 20px; display: block;
}

/* Chip-arco con estrella náutica: firma de la marca (arco + estrella 8 puntas) */
.tag-arco {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  padding: 5px 16px 5px 12px;
  border: 1.5px solid rgba(122,202,240,.55);
  border-radius: 999px;
  font-weight: 500; font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cielo);
}
.tag-arco .star { color: var(--amarillo); }

.card-head-sub {
  margin-top: 9px;
  font-size: .82rem; font-weight: 400;
  color: rgba(234,231,208,.75);
}

/* ── Botón principal — azul océano del logotipo, plano ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  background: var(--azul-logo);
  color: #fff;
  border: none; border-radius: 12px;
  font-family: inherit;
  font-weight: 700; font-size: .98rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(7,55,112,.35);
  transition: background .18s, box-shadow .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover  { background: #0a4a94; box-shadow: 0 8px 26px rgba(7,55,112,.45); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

:is(a, button, input, [tabindex])::selection { background: rgba(122,202,240,.5); }
:is(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid rgba(0,98,238,.45);
  outline-offset: 2px;
}

/* ── Pie de página: aquí vive el logo institucional (fondo transparente) ── */
.footer {
  width: 100%; max-width: 480px;
  text-align: center; margin-top: 26px;
  animation: fadeDown .7s ease .3s both;
}
.footer-logo {
  display: block;
  width: 132px; height: auto;
  margin: 0 auto 12px;
}
.footer-divider {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 8px;
}
.footer-divider span { width: 18px; height: 3px; border-radius: 2px; }
.footer-divider span:nth-child(1) { background: var(--azul-muelle); }
.footer-divider span:nth-child(2) { background: var(--azul); }
.footer-divider span:nth-child(3) { background: var(--cielo); }
.footer p {
  font-size: .68rem; font-weight: 400; color: var(--muted);
  letter-spacing: .05em; line-height: 1.6;
}

/* ── Animaciones ── */
@keyframes fadeDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }
@keyframes riseUp   { from{opacity:0;transform:translateY(20px)}  to{opacity:1;transform:none} }
@keyframes shake    { 0%,100%{transform:none} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
@keyframes spin     { to{transform:rotate(360deg)} }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
