/* Tema negro estilo gótico, con los colores del logo de la marca */
:root {
  --amarillo: #FEDD00;
  --rojo: #ED3024;
  --verde: #1FA855;
  --negro: #0A0A0B;
  --panel: var(--negro);
  --borde: transparent;
  --texto: #F4F1E8;
  --gris: #A3A09A;
  --sombra: none;
  --gotica: "Arial Black", "Arial Bold", Gadget, sans-serif;
  --titulos: "Cinzel", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
}

.tarjeta {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: var(--negro);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* Encabezado amarillo de orilla a orilla: Elektra a todo lo ancho y Banco Azteca abajo a la derecha */
.cabecera {
  position: relative;
  background: var(--amarillo);
  padding: calc(26px + env(safe-area-inset-top)) 22px 26px;
  box-shadow: 0 12px 40px rgba(254, 221, 0, .16);
}
.logo { display: block; width: 100%; height: auto; }
/* Banco Azteca en placa negra, encimada sobre la orilla inferior del amarillo */
.placa-banco {
  position: absolute;
  right: 16px;
  bottom: -38px;
  padding: 9px 14px;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .6);
}
.placa-banco img { display: block; width: 104px; height: auto; }

/* Perfil */
.perfil { text-align: center; padding: 56px 20px 0; }
.marco {
  display: inline-block;
  padding: 6px;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7);
}
.foto {
  display: block;
  width: 176px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 17px;
  border: 3px solid var(--negro);
  background: var(--panel);
}
.iniciales {
  display: grid;
  place-items: center;
  font-family: var(--gotica);
  font-size: 72px;
  color: var(--amarillo);
}
.perfil h1 {
  margin: 20px 0 0;
  font-family: var(--gotica);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  color: var(--texto);
  text-shadow: 0 2px 18px rgba(237, 48, 36, .45);
}
.ornamento { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 10px; max-width: 260px; }
.ornamento span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--amarillo)); }
.ornamento span:last-child { transform: scaleX(-1); }
.ornamento img { width: 26px; height: auto; }
.puesto {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rojo);
}
.sucursal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 6px 14px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  color: var(--gris);
  font-size: 14px;
  font-weight: 600;
}
.sucursal svg { width: 16px; height: 16px; fill: none; stroke: var(--rojo); stroke-width: 2; }
.ejemplo {
  margin: 12px auto 0;
  padding: 6px 10px;
  max-width: 280px;
  border: 2px dashed var(--rojo);
  border-radius: 10px;
  color: var(--rojo);
  font-weight: 700;
  font-size: 13px;
}

/* Cuatro recuadros con logo */
.cuadros { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 26px 16px 0; }
.cuadro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 16px 10px;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: var(--panel);
  color: var(--texto);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--sombra);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.cuadro:active { transform: scale(.97); }
.cuadro:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.cuadro img { width: auto; height: 72px; max-width: 100%; object-fit: contain; }
.cuadro-credito img { height: auto; width: 100%; max-width: 140px; border-radius: 8px; }
.cuadro span { white-space: nowrap; }
.cuadro.falta { opacity: .6; cursor: not-allowed; border: 2px dashed var(--rojo); box-shadow: none; }
.cuadro.falta small { color: var(--rojo); font-size: 12px; }

/* Botones chicos */
.botones { display: flex; justify-content: center; padding: 12px 16px 8px; }
.botones .boton { width: auto; padding-right: 20px; }
.botones .texto { white-space: nowrap; }
.botones .boton { min-width: 0; gap: 10px; }
.botones .flecha { display: none; }
.botones .icono { flex-basis: 38px; height: 38px; }
.botones .icono svg { width: 20px; height: 20px; }
.botones .texto strong { font-size: 15px; }
.boton {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: var(--negro);
  color: var(--texto);
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--sombra);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.boton:active { transform: scale(.98); }
.boton:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.icono {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(237, 48, 36, .15);
  color: var(--rojo);
}
.icono svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icono svg.relleno { fill: currentColor; stroke: none; width: 28px; height: 28px; }
.texto { flex: 1; min-width: 0; display: grid; }
.texto strong { font-size: 18px; line-height: 1.2; }
.texto small { font-size: 13.5px; color: var(--gris); margin-top: 2px; }
.flecha { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }

.boton-credito { background: var(--rojo); border-color: transparent; color: #fff; min-height: 72px; }
.boton-credito .icono { background: var(--amarillo); color: var(--rojo); }
.boton-credito .flecha { opacity: .9; }

.boton.falta { opacity: .6; cursor: not-allowed; border: 2px dashed var(--rojo); box-shadow: none; }
.boton.falta small { color: var(--rojo); font-weight: 700; }

/* Bloques de información */
.bloque {
  margin: 16px 16px 0;
  padding: 18px;
  background: var(--negro);
  border: 1px solid var(--borde);
  border-radius: 18px;
  box-shadow: var(--sombra);
}
.bloque h2 {
  margin: 0 0 12px;
  font-family: var(--titulos);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rojo);
  text-align: center;
}
.productos, .requisitos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.productos { gap: 14px; }
.productos li { display: flex; align-items: center; gap: 14px; }
.foto-producto { flex: 0 0 120px; width: 120px; height: 90px; object-fit: contain; }
.productos strong { display: block; font-size: 16px; }
.productos small { color: var(--gris); font-size: 13.5px; }
.icono-producto {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--amarillo);
  color: var(--negro);
}
.icono-producto svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.requisitos li { position: relative; padding-left: 30px; font-size: 16px; font-weight: 600; }
.requisitos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.nota { margin: 12px 0 0; font-size: 12.5px; color: var(--gris); }

.horario { display: flex; align-items: center; justify-content: center; gap: 14px; }
.horario div { text-align: center; }
.horario > svg { flex: 0 0 40px; width: 40px; height: 40px; fill: none; stroke: var(--rojo); stroke-width: 2; stroke-linecap: round; }
.horario h2 { margin-bottom: 2px; }
.horario p { margin: 0; font-size: 16px; font-weight: 600; }

.pie { text-align: center; color: var(--gris); font-family: var(--titulos); font-size: 12px; letter-spacing: .1em; padding: 24px 16px 0; }

/* Aviso "link copiado" */
.aviso-flotante {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--amarillo);
  color: var(--negro);
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 5;
}
.aviso-flotante.visible { opacity: 1; transform: translate(-50%, 0); }

/* En computadora se ve como un celular centrado */
@media (min-width: 600px) {
  body { padding: 32px 0; background: #000; }
  .tarjeta { min-height: auto; border-radius: 32px; border: 1px solid var(--borde); box-shadow: 0 20px 80px rgba(237, 48, 36, .15); }
}

@media (prefers-reduced-motion: reduce) {
  .boton, .aviso-flotante { transition: none; }
}
