/* =============================================================
   Salud Financiera — Landing Page
   ============================================================= */

:root {
  --color-red: #EC0000;
  --color-red-dark: #C40000;
  --color-black: #1A1A1A;
  --color-gray-900: #262626;
  --color-gray-600: #595959;
  --color-gray-400: #8C8C8C;
  --color-gray-200: #E5E5E5;
  --color-gray-100: #F5F5F5;
  --color-pink-bg: #FCE9E9;
  --color-white: #FFFFFF;

  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 20px 40px rgba(26, 26, 26, 0.08);
  --container-w: 1180px;
}

@font-face {
  font-family: 'Santander';
  src: url('../fonts/SantanderText-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Santander';
  src: url('../fonts/SantanderText-Bold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Santander', sans-serif;
  color: var(--color-gray-900);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Santander', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-red-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-header { padding: 10px 22px; font-size: 0.9rem; }

/* ---------- Logo / marca ---------- */
.logo-arrow {
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-red);
  font-size: 1.15rem;
}
.logo-sub {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-black);
  font-size: 1.15rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  margin-left: auto;
  margin-right: 24px;
  font-family: 'Santander', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-red); }

.logo-header {
  width: 143px;
  height: auto;
}

/* =====================================================
   MENÚ MÓVIL
   ===================================================== */

/* Botón hamburguesa */
.mobile-menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 0;
  background: transparent;

  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;

  width: 24px;
  height: 2px;

  background: var(--color-black);

  border-radius: 2px;

  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}


/* Menú móvil */
.mobile-menu {
  display: none;
}


/* =====================================================
   TABLET / MOBILE
   ===================================================== */

@media (max-width: 768px) {

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;

    gap: 16px;
  }

  /* Logo */
  .logo-header {
    width: 150px;
  }

  /* Ocultamos navegación desktop */
  .main-nav {
    display: none;
  }

  /* Ocultamos botón de campus del header */
  .btn-header {
    display: none;
  }

  /* Mostramos hamburguesa */
  .mobile-menu-toggle {
    display: flex;

    margin-left: auto;
  }


  /* -------------------------------------------------
     MENÚ DESPLEGABLE
     ------------------------------------------------- */

  .mobile-menu {
    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 0 24px;

    background: var(--color-white);

    border-top: 1px solid var(--color-gray-200);

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    transition:
      max-height 0.3s ease,
      opacity 0.2s ease,
      padding 0.3s ease;
  }

  /* Estado abierto */
  .mobile-menu.is-open {
    max-height: 300px;

    padding-top: 20px;
    padding-bottom: 24px;

    opacity: 1;

    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.08);
  }


  /* Links */
  .mobile-menu-link {
    display: block;

    padding: 14px 4px;

    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;

    color: var(--color-black);

    text-decoration: none;
  }

  .mobile-menu-link:hover {
    color: var(--color-red);
  }


  /* Botón campus */
  .mobile-menu-campus {
    width: 100%;

    margin-top: 8px;

    text-align: center;
  }


  /* -------------------------------------------------
     ANIMACIÓN HAMBURGUESA → X
     ------------------------------------------------- */

  .mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.55) 45%,
      rgba(255, 255, 255, 0.15) 100%
    ),
    url("../images/bg_hero_section.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
}
/* NOTA para el desarrollador:
   Sustituir el fondo por la fotografía del diseño (mano con calculadora/celular)
   aplicando el mismo degradado encima para mantener el contraste con el texto.
   Ej: background-image: url('assets/hero-photo.jpg'); background-size: cover; */

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.hero-copy { padding-top: 56px; }

.eyebrow-brand { margin: 0 0 4px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--color-red);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-black);
  margin: 0 0 28px;
}
.santander-mark { height: 22px; width: auto; }

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-gray-900);
  max-width: 46ch;
  margin: 0 0 20px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--color-gray-900);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-desc strong { font-weight: 700; }

/* ---------- Login card ---------- */
.login-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.login-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
  margin: 0 0 20px;
  color: var(--color-black);
}

.login-notice {
  background: var(--color-pink-bg);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.login-notice p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.login-notice p:last-child { margin-bottom: 0; }
.login-notice-title {
  font-weight: 700;
  font-size: 0.8rem !important;
  letter-spacing: 0.02em;
}
.link-inline {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: underline;
}

.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-gray-900);
}
.login-form input::placeholder { color: var(--color-gray-400); }
.login-form input:focus {
  border-color: var(--color-red);
  outline: none;
}

.login-form .btn { margin-top: 6px; }

.login-error {
  background: #FDEDED;
  color: var(--color-red-dark);
  border: 1px solid #F5C2C2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.login-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--color-gray-600);
}
.login-links p { margin: 8px 0 0; }

/* ---------- Cursos ---------- */
.courses { padding: 88px 0 96px; }

.courses-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  text-align: center;
  color: var(--color-black);
  margin: 0 0 18px;
}
.courses-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--color-gray-600);
  font-size: 0.98rem;
  line-height: 1.65;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.course-card {
  position: relative;

  background: #ffffff;
  border-radius: 28px;

  padding: 90px 42px 42px;

  width: 100%;
  max-width: 455px;
  min-height: 800px;

  margin: 0 auto;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.course-logo {
  display: block;
  width: 183px;
  height: auto;

  margin-bottom: 48px;
}

.course-card--featured {
  background: linear-gradient(180deg, var(--color-pink-bg) 0%, var(--color-white) 220px);
  border-color: #F6D3D3;
}

.course-card .badge {
  position: absolute;
  top: 20px;
  right: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;

  border: 1px solid #ff0000;
  border-radius: 12px;

  background: #ffffff;
  color: #111111;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  white-space: nowrap;
  z-index: 5;
}

.badge--new { background: var(--color-red); color: var(--color-white); border: none; }

/* Área reservada para el logo */
.course-card > img,
.course-card .course-name {
  width: 100%;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 20px;

  /* Logo combinado */
  flex-shrink: 0;
}

.course-name {
  box-sizing: border-box;
}

/* Logos individuales */
.course-card > img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.course-name--single img {
  width: 183px;
  height: auto;
  display: block;
}

.course-name--combo {
  gap: 14px;
}

.course-name--combo img {
  width: auto;
  height: 43px;
  display: block;
}

.combo-plus {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.combo-plus { color: var(--color-black); font-weight: 400; }
.course-name-emprendedores { color: var(--color-red); }
.course-name-emprendedores small { font-size: 0.65em; font-weight: 600; color: var(--color-black); }

.course-headline {
  width: 100%;
  max-width: 380px;

  height: 68px;
  min-height: 68px;

  margin: 0 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;

  color: #050505;

  box-sizing: border-box;
}
.course-desc {
  width: 100%;
  max-width: 380px;

  height: 100px;
  min-height: 100px;

  margin: 0;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  text-align: center;

  font-size: 14px;
  line-height: 1.4;

  color: #111111;

  box-sizing: border-box;
}

.course-list-label {
  width: 100%;
  max-width: 365px;

  min-height: 28px;
  height: 28px;

  margin: 0 0 22px;

  text-align: left;

  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;

  color: #111111;
}
.course-list {
  width: 100%;
  max-width: 365px;

  margin: 0;
  padding: 0;

  list-style: none;
}
.course-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;

  font-size: 12px;
  line-height: 1.4;
  color: #111111;
}

.course-list li::before {
  content: "";

  position: absolute;
  left: 0;
  top: -1px;

  width: 18px;
  height: 18px;

  background-image: url("../images/bullet_sf.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.course-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-black);
  margin: 0 0 24px;
  text-align: center;
}

.course-card .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 28px; width: auto; }
.footer-legal {
  color: #C9C9C9;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: right;
  margin: 0;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { margin: 0; order: 3; width: 100%; }
  .hero { padding: 40px 0 64px; }
  .brand-name { font-size: 1.7rem; }
  .hero-kicker { font-size: 1.2rem; }
  .login-card { padding: 24px 20px; }
  .courses { padding: 56px 0; }
  .courses-title { font-size: 1.5rem; }
}
