﻿:root {
  --red-900: #4a0f0f;
  --red-800: #6d1414;
  --red-700: #8f1919;
  --red-600: #b91c1c;
  --red-500: #d62828;
  --gold-500: #d4a11e;
  --gold-400: #f1c452;
  --ink-900: #101114;
  --ink-700: #2b2f36;
  --ink-500: #4b5563;
  --cream-50: #fffaf3;
  --cream-100: #fdf5e5;
  --blue-700: #1f4e8c;
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.18);
  --shadow-md: 0 12px 28px rgba(17, 24, 39, 0.12);
  --shadow-sm: 0 6px 16px rgba(17, 24, 39, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: #f7f4ef;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--red-800), var(--red-600));
  color: #fff;
  font-size: 0.85rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--red-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand__sub {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  color: var(--ink-700);
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--gold-500);
  transition: width 0.2s ease;
  border-radius: 999px;
}

.nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #3b2b00;
  box-shadow: var(--shadow-sm);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--red {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--red:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--white {
  background: #fff;
  color: var(--red-700);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  padding: 72px 0 90px;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(111, 16, 16, 0.95), rgba(148, 27, 27, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(255, 214, 102, 0.35), transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 102, 0.18), transparent 70%);
  top: -160px;
  right: -120px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__copy {
  animation: rise 0.9s ease forwards;
}

.hero__title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero__lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero__stats > div {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__num {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__card {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: rise 0.9s ease 0.15s forwards;
}

.card__line {
  width: 64px;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-400), var(--red-500));
  border-radius: 999px;
}

.hero__card h3 {
  margin: 8px 0 6px;
  font-size: 1.4rem;
  color: var(--red-700);
}

.hero__card p {
  margin: 0 0 16px;
  color: var(--ink-500);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form input,
.form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  background: #fff;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 161, 30, 0.2);
}

.form button {
  grid-column: span 2;
}

.section {
  padding: 80px 0;
}

.section--white {
  background: #fff;
}

.section--light {
  background: #f5f2ee;
}

.section__title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin: 0 0 20px;
  color: var(--red-700);
}

.section__title.blue {
  color: var(--blue-700);
}

.section__text {
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.image__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 161, 30, 0.25), transparent 70%);
}

.metric__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red-700);
  margin-bottom: 8px;
}

.metric__text {
  color: var(--ink-700);
  font-weight: 600;
}

.level-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-card img {
  height: 180px;
  object-fit: cover;
}

.level-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.level-card__body h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--blue-700);
}

.level-card__body p {
  margin: 0;
  color: var(--ink-500);
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.news-card p {
  margin: 0;
  padding: 16px;
  color: var(--ink-700);
  font-weight: 600;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--red-800), var(--red-600));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 214, 102, 0.35), transparent 70%);
  left: -140px;
  bottom: -180px;
}

.cta h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

.cta p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
}

.cta .btn--white {
  position: relative;
  z-index: 1;
}

.footer {
  background: #111217;
  color: #d1d5db;
  padding: 70px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer a {
  color: #d1d5db;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* ── Hamburguesa (oculto en desktop) ───────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--red-700);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  order: 3;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--red-700);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* X cuando está abierto */
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* CTA desktop visible por defecto */
.nav__cta-mobile { display: none; }
.nav__cta-desktop { display: inline-flex; }

@media (max-width: 1024px) {
  .topbar {
    display: none;
  }

  .header {
    position: sticky;
  }

  .header__inner {
    flex-wrap: nowrap;
    position: relative;
  }

  /* Mostrar hamburguesa en tablet y móvil */
  .nav-toggle {
    display: flex;
  }

  /* Ocultar CTA desktop, mostrar CTA dentro del menú */
  .nav__cta-desktop { display: none; }
  .nav__cta-mobile  { display: inline-flex; width: 100%; justify-content: center; }

  /* Menú colapsado por defecto */
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--red-700);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 20px 16px;
    z-index: 100;
  }

  /* Menú abierto */
  .nav--open {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-700);
    border-bottom: 1px solid #f0f0f0;
  }

  .nav__link:last-of-type {
    border-bottom: none;
  }

  .nav__cta-mobile {
    margin-top: 12px;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .form button {
    grid-column: span 1;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}