/* =====================================================================
   Campaña Santander & Amex — Repositorio interno
   Maqueta fiel al diseño de Figma (26_Campaña Amex Santander).
   Tipografías: el diseño usa BentonSans (licenciada, no incluida).
   Se usa Libre Franklin como sustituto (mismo linaje Franklin Gothic).
   Si Bureau consigue los .woff2 de BentonSans, cargarlos en
   assets/fonts/ y descomentar los @font-face de abajo.
   ===================================================================== */

/*
@font-face {
  font-family: "BentonSans";
  src: url("../assets/fonts/BentonSans-Regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "BentonSans";
  src: url("../assets/fonts/BentonSans-Medium.woff2") format("woff2");
  font-weight: 500;
}
@font-face {
  font-family: "BentonSans";
  src: url("../assets/fonts/BentonSans-Bold.woff2") format("woff2");
  font-weight: 700;
}
@font-face {
  font-family: "BentonSans";
  src: url("../assets/fonts/BentonSans-Black.woff2") format("woff2");
  font-weight: 900;
}
*/

:root {
  /* Login (Benefits Platform) */
  --azul-amex: #006fcf;
  --azul-amex-hover: #005cab;
  --ink: #0f172a;
  --gris: #64748b;
  --borde: #e2e8f0;
  --celeste: #a5d8ff;

  /* Repositorio */
  --azul-repo: #0071d1;
  --azul-repo-hover: #005dad;
  --navy: #00185e;
  --navy-titulo: #00175a;
  --gris-footer: #929292;
  --fondo-seccion: #f9f9f9;

  --font-benton: "BentonSans", "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --font-helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-helvetica);
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

a { text-decoration: none; color: inherit; }

button { font: inherit; border: 0; background: none; cursor: pointer; }

/* =====================================================================
   LOGIN (index.html)
   ===================================================================== */

.login {
  display: flex;
  min-height: 100vh;
}

/* --- panel izquierdo con foto y marca --- */

.login-left {
  position: relative;
  width: 55%;               /* 792 / 1440 */
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(to right, #0b1426, #006fcf);
}

.login-left__foto {
  position: absolute;
  left: -1.9%;              /* -15 / 792 */
  top: -11.33%;             /* -102 / 900 */
  width: 139.4%;            /* 1104 / 792 */
  height: 111.33%;          /* 1002 / 900 */
  object-fit: cover;
}

/* Degradado diagonal exportado de Figma (mix-blend multiply, rotado) */
.login-left__overlay {
  position: absolute;
  left: -51.11%;
  top: -41.98%;
  width: 184.63%;
  height: 149.32%;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.login-left__overlay img {
  width: 58.32%;
  height: 88.85%;
  transform: rotate(59.2deg);
}

.login-brand {
  position: absolute;
  left: 64px;
  top: 64px;
  width: 377px;
  max-width: calc(100% - 96px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* La llama sola es un recorte del wordmark completo, igual que en Figma */
.login-brand__llama {
  width: 66px;
  height: 58px;
  overflow: hidden;
  position: relative;
}

.login-brand__llama img {
  position: absolute;
  left: 0;
  top: 0;
  width: 498%;
  height: auto;
}

.login-brand__nombres {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-brand__santander {
  font-family: var(--font-benton);
  font-weight: 700;
  font-size: 67px;
  line-height: normal;
  color: #fff;
}

.login-brand__amex {
  font-family: var(--font-helvetica);
  font-weight: 300;
  font-size: 35px;
  line-height: normal;
  color: rgba(255, 255, 255, 0.88);
}

.login-brand__linea {
  width: 150px;
  border-top: 2px solid rgba(255, 255, 255, 0.55);
}

.login-brand__plataforma {
  font-family: var(--font-helvetica);
  font-weight: 500;
  font-size: 22px;
  color: var(--celeste);
}

/* --- panel derecho con formulario --- */

.login-right {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 64px;
}

.login-right__spacer { height: 1px; }

.login-form {
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-form__titulo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form__titulo h1 {
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
}

.login-form__titulo p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--gris);
}

.login-form__campos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.campo__input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.campo__input:focus-within {
  border-color: var(--azul-amex);
}

.campo__input img { width: 20px; height: 20px; }

.campo__input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-family: var(--font-helvetica);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.campo__input input::placeholder { color: var(--gris); }

.campo__ojo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.campo__ojo img { width: 18px; height: 18px; }

.login-form__opciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recordar {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}

.recordar input { position: absolute; opacity: 0; pointer-events: none; }

.recordar__caja {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.recordar__caja img { width: 12px; height: 12px; opacity: 0; }

.recordar input:checked + .recordar__caja {
  background: var(--azul-amex);
  border-color: var(--azul-amex);
}

.recordar input:checked + .recordar__caja img { opacity: 1; }

.olvidaste {
  font-weight: 500;
  font-size: 14px;
  color: var(--azul-amex);
}

.olvidaste:hover { text-decoration: underline; }

.login-form__boton {
  height: 48px;
  width: 100%;
  background: var(--azul-amex);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease;
}

.login-form__boton:hover { background: var(--azul-amex-hover); }

.login-right__footer {
  font-size: 12px;
  color: var(--gris);
  text-align: center;
  max-width: 400px;
}

@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { width: 100%; min-height: 100vh; padding: 48px 24px; }
}

/* =====================================================================
   REPOSITORIO (repositorio.html)
   ===================================================================== */

/* --- hero --- */

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--navy);
}

.hero__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 48%;
}

.hero__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 100px 0;
}

.hero__marcas {
  display: flex;
  align-items: center;
  gap: 34px;
}

.hero__amex {
  width: 69px;
  height: 69px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.15));
}

.hero__separador {
  width: 0;
  height: 59px;
  border-left: 2px solid #fff;
}

.hero__santander {
  height: 46px;
  width: auto;
}

.btn-sesion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 52px;
  border: 2px solid #fff;
  border-radius: 100px;
  font-family: Roboto, var(--font-benton);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1px;
  line-height: 20px;
  color: #fff;
  transition: background 0.15s ease;
}

.btn-sesion:hover { background: rgba(255, 255, 255, 0.15); }

.hero__texto {
  position: absolute;
  left: 100px;
  bottom: 49px;              /* 900... 640 - (311 + 280) = 49 */
  width: 681px;
  max-width: calc(100% - 200px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero__titulo {
  font-family: var(--font-benton);
  font-weight: 900;
  font-size: 52px;
  line-height: 58px;
  text-transform: uppercase;
  color: var(--azul-repo);
}

.hero__titulo span { display: block; color: var(--navy-titulo); }

.hero__bajada {
  font-family: var(--font-benton);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--navy);
  width: 534px;
  max-width: 100%;
}

.hero__bajada p + p { margin-top: 20px; }

.hero__bajada strong,
.hero__bajada a {
  font-weight: 700;
  color: var(--azul-repo);
}

/* --- botón azul compartido (Ver toolkit / Descargar) --- */

.btn-azul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 16px 24px;
  background: var(--azul-repo);
  border-radius: 4px;
  font-family: var(--font-benton);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease;
}

.btn-azul:hover { background: var(--azul-repo-hover); }

/* --- materiales --- */

.materiales {
  background: var(--fondo-seccion);
  padding: 80px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 140px;
}

.materiales__contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.materiales__titulo {
  font-family: var(--font-benton);
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  text-align: center;
  color: var(--navy);
}

.materiales__grilla {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

@media (max-width: 1300px) {
  .materiales__grilla { flex-wrap: wrap; }
}

.tarjeta {
  flex: 0 1 400px;   /* puede encoger unos px (barra de scroll) sin bajar de línea */
  min-width: 300px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tarjeta h3 {
  height: 71px;
  display: flex;
  align-items: center;
  font-family: var(--font-benton);
  font-weight: 500;
  font-size: 30px;
  text-align: center;
  color: var(--navy-titulo);
}

.tarjeta .btn-azul { width: 148px; padding: 16px 0; }

.materiales__footer {
  font-family: var(--font-benton);
  font-weight: 500;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  color: var(--gris-footer);
}

/* --- toast para descargas pendientes --- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-benton);
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- responsive repositorio --- */

@media (max-width: 1100px) {
  .hero__header { padding: 24px 40px 0; }
  .hero__texto { left: 40px; max-width: calc(100% - 80px); }
  .materiales { padding: 64px 40px; gap: 96px; }
}

@media (max-width: 760px) {
  .hero { height: auto; min-height: 640px; }
  .hero__header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__marcas { gap: 20px; }
  .hero__amex { width: 52px; height: 52px; }
  .hero__separador { height: 44px; }
  .hero__santander { height: 34px; }
  .hero__texto { position: static; padding: 220px 24px 48px; width: auto; max-width: none; }
  .hero__titulo { font-size: 38px; line-height: 44px; }
  .materiales { padding: 48px 24px; gap: 64px; }
}
