@font-face {
  font-family: 'Nasalization';
  src: url('../fonts/NasalizationRg-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-blue: #2E5CF0;
  --color-green: #33C46E;
  --color-yellow: #F7DB4F;
  --color-purple: #2A1B4D;
  --color-ink: #1A1A1A;
  --color-bg: #FFFFFF;
  --color-muted: #4B4B55;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container-w: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2,
.eyebrow {
  font-family: 'Nasalization', 'Baloo 2', 'Poppins', sans-serif;
  font-weight: 400;
}

h3,
.badge-letter {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

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

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

a {
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-purple);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 18px 48px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover {
  background: #3a2568;
  transform: translateY(-2px);
}

.btn-small {
  padding: 14px 36px;
  font-size: 0.95rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-size: 1.4rem;
  color: var(--color-ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-bottom-color: var(--color-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--color-ink);
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 28px;
}

.hero-details {
  margin: 0 0 32px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-visual .btn {
  align-self: center;
}

/* Section headings */
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 40px;
}

section {
  padding: 64px 0;
}

/* Categorias */
.categories {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.badge-letter {
  width: 130px;
  height: 84px;
  border-radius: var(--radius-lg);
  background: var(--color-green);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-grade {
  width: 130px;
  min-height: 100px;
  border-radius: var(--radius-lg);
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  line-height: 1.3;
}

/* Contenido */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.content-box {
  background: var(--color-yellow);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 2;
  justify-self: start;
}

.content-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mas informacion */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 24px;
  color: var(--color-ink);
}

.info-cta {
  display: flex;
  width: fit-content;
  margin: 40px auto 0;
}

/* Footer */
.site-footer {
  background: var(--color-purple);
  padding: 40px 0;
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .content-box {
    justify-self: center;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 32px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .eyebrow {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .content-box {
    padding: 28px;
    font-size: 1rem;
  }

  .categories {
    gap: 24px;
  }

  .badge-letter,
  .badge-grade {
    width: 100px;
  }
}
