/* =========
   Variables & Reset
   ========= */
:root {
  /* Palette */
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-soft: #f3f4f6;
  --text: #0f1724;
  --muted: #6b7280;
  --primary: #0f62fe; /* blue */
  --accent: #f4a261; /* warm accent */
  --border: #e5e7eb;

  /* Shadows & radii */
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-subtle: 0 8px 24px rgba(15,23,42,0.06);
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Layout & transitions */
  --container: 1400px;
  --transition-fast: 180ms;
  --transition-medium: 320ms;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, Segoe;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0, #f9fafb 45%, #eef2ff 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

/* =========
   Layout
   ========= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Make header feel wider by increasing its inner padding on large screens */
.header .container {
  padding-left: 28px;
  padding-right: 28px;
}

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* =========
   Header
   ========= */
.header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  position: sticky;
  top: 0;
  /* Glass-like header: slightly lower opacity and stronger blur */
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
  z-index: 40;
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
}

/* Subtle logo interaction */
.logo {
  transition: opacity 200ms ease, transform 200ms ease;
}
.logo:hover,
.logo:focus {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Theme toggle removed: project uses single light theme */

/* Nav */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 0.18s ease;
}

.nav a:hover {
  color: var(--text);
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle .bar::before { top: -8px; left: 0; position: absolute; content: ""; }
.nav-toggle .bar::after  { top: 8px;  left: 0; position: absolute; content: ""; }

/* Mobile nav panel */
.nav--mobile {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav--mobile.open {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90%);
  max-width: 520px;
  background: rgba(255,255,255,0.98);
  border-radius: 14px;
  padding: 16px 14px;
  flex-direction: column;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
  /* Softer, elegant border for mobile menu */
  border: 1px solid rgba(148,163,184,0.18);
  display: flex !important;
  z-index: 70;
}

.nav--mobile.open a {
  margin: 8px 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 10px;
}

.nav--mobile.open a:active,
.nav--mobile.open a:focus {
  background: rgba(15,23,42,0.04);
  border-radius: 8px;
}

/* =========
   Hero
   ========= */
.hero {
  padding: 72px 0 64px;
  /* Soft micro-gradient for subtle depth */
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(250,252,255,0.7) 100%);
}

.hero__content {
  display: flex;
  gap: 48px;
  align-items: center;
}

.hero__text {
  flex: 1;
}

.hero__eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1 {
  /* Fluid hero heading */
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.highlight {
  color: var(--accent);
}

.hero__subtitle {
  color: var(--muted);
  max-width: 60ch;
  font-size: 0.98rem;
}

.hero__actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.14);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text);
}

.btn--ghost:hover {
  background: #ffffff;
  border-color: var(--text);
}

.btn--inline {
  display: inline-block;
}

/* Hero visual */
.hero__visual {
  width: 360px;
  flex-shrink: 0;
}

.hero__card {
  background: radial-gradient(circle at top left, #ffffff 0, #f3f4ff 40%, #eef2ff 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero__tag {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.hero__card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.hero__card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* =========
   Sections
   ========= */
.section {
  padding: 64px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__content {
  display: block;
}

.section__content--two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.section__content--center {
  text-align: center;
  /* Centrar visualmente el bloque y limitar su ancho en pantallas grandes */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.8vw, 28px);
  letter-spacing: -0.02em;
}

.section__subtitle {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 8px;
}

/* Lists */
.list--clean {
  padding-left: 18px;
  margin: 10px 0;
  color: var(--text);
}

/* =========
   Grid & Cards
   ========= */
.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--bg-elevated);
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease,
    border-color var(--transition-fast) ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15,23,42,0.10);
  border-color: rgba(148, 163, 184, 0.7);
}

/* Cuestívate card */
.cuestivate__card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease, border-color var(--transition-fast) ease;
}

.cuestivate__card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15,23,42,0.10);
  border-color: rgba(148,163,184,0.72);
}

.cuestivate__tag {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

/* =========
   Contact
   ========= */
.contact__options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.contact__links a {
  color: var(--muted);
  text-decoration: none;
}

.contact__links a:hover {
  color: var(--text);
}

/* =========
   Footer
   ========= */
.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  padding: 18px 0 22px;
  background: rgba(248, 250, 252, 0.9);
}

.footer__content {
  display: flex;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========
   Accessibility helpers
   ========= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* =========
   Responsive
   ========= */
@media (max-width: 900px) {
  .hero__content {
    flex-direction: column;
  }

  .section__content--two-cols {
    grid-template-columns: 1fr;
  }

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

  .hero__visual {
    width: 100%;
  }

  h1 {
    font-size: 32px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .header__content {
    padding: 18px 0;
  }

  .logo {
    font-size: 18px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Tablet: reduce hero spacing between 540px and 720px */
@media (min-width: 540px) and (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }
}

/* Section reveal: opt-in fade + slight lift. Sections are visible by default
   so the page degrades gracefully if JS doesn't run. JS will add
   `.section--reveal` to sections it wants to animate and then toggle `.visible`. */
.section--reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.section--reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section--reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__visual {
    order: 2;
    width: 100%;
  }

  .hero__text {
    order: 1;
  }

  .section__content--two-cols {
    gap: 20px;
  }

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

/* (theme: single light theme) */