:root {
  --navy: #0f2338;
  --navy-2: #16324c;
  --navy-soft: #24405c;
  --gold: #c29a4e;
  --gold-soft: #d8b878;
  --ivory: #f7f4ec;
  --paper: #faf8f2;
  --stone: #ece7db;
  --ink: #1b2027;
  --muted: #616872;
  --line: rgba(15, 35, 56, 0.12);
  --shadow: 0 30px 70px rgba(15, 35, 56, 0.14);
  --shadow-soft: 0 16px 40px rgba(15, 35, 56, 0.09);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 82% -5%, rgba(194, 154, 78, 0.16), transparent 70%),
    radial-gradient(55% 40% at 0% 8%, rgba(22, 50, 76, 0.10), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

/* ---------- Layout ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 2.5rem);
}

.section-head { max-width: 40ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn-solid {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(15, 35, 56, 0.22);
}
.btn-solid:hover {
  transform: translateY(-2px);
  background: var(--navy-2);
  box-shadow: 0 18px 40px rgba(15, 35, 56, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(15, 35, 56, 0.25);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(194, 154, 78, 0.1);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  padding: 0.9rem clamp(1.25rem, 5vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 242, 0.72);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand-monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.topnav { display: flex; gap: clamp(0.9rem, 1.7vw, 1.5rem); }
.topnav a {
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.topnav a:hover { color: var(--navy); }
.topnav a:hover::after { width: 100%; }
.nav-cta { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(15, 35, 56, 0.16);
  background: rgba(255, 255, 255, 0.6);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.is-active {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 6px 14px rgba(15, 35, 56, 0.2);
}
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 0.4rem; }
.hero-role {
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 1.3rem;
}
.hero-lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.5rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
}
.hero-facts span { font-size: 0.82rem; color: var(--muted); max-width: 16ch; }

.hero-portrait { position: relative; justify-self: center; }
.portrait-frame {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 35, 56, 0.08);
  background: #e8eef4;
}
/* La foto (1200x1600) llena el cuadrado. El encuadre al 25% recorta sólo el
   techo de la sala y la mesa: la cabeza y el cartel con el cargo se ven
   enteros. Si se cambia la foto, hay que revisar este porcentaje. */
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.97) contrast(1.03);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 35, 56, 0.42) 0%, transparent 24%, transparent 60%, rgba(15, 35, 56, 0.34) 100%),
    linear-gradient(270deg, rgba(15, 35, 56, 0.3) 0%, transparent 28%);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 120px; height: 120px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 var(--radius-lg) 0 0;
  opacity: 0.6;
}
/* Arriba a la izquierda: abajo taparía el cartel con el cargo de la foto. */
.portrait-tag {
  position: absolute;
  left: 16px; top: 16px;
  background: rgba(250, 248, 242, 0.92);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Sobre mi ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about-copy p { font-size: 1.06rem; color: #333a42; margin: 0 0 1.2rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-side { display: flex; flex-direction: column; gap: 1.2rem; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.side-card h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.side-card li { color: var(--muted); font-size: 0.96rem; padding-left: 1.1rem; position: relative; }
.side-card li::before {
  content: ""; position: absolute; left: 0; top: 0.6rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.lang-list li { display: flex; justify-content: space-between; align-items: center; padding-left: 0; }
.lang-list li::before { display: none; }
.lang-list span { color: var(--ink); font-weight: 600; }
.lang-list em { color: var(--gold); font-style: normal; font-size: 0.85rem; font-weight: 600; }

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-num {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}
.feature-card h3 { font-size: 1.2rem; margin: 0.6rem 0 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Sectores ---------- */
.sectors-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.sectors-band span {
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--paper);
  font-weight: 500;
  position: relative;
}
.sectors-band span::after {
  content: "·";
  position: absolute;
  right: clamp(-0.85rem, -2.2vw, -2rem);
  color: var(--gold);
}
.sectors-band span:last-child::after { display: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--line));
}
.tl-item { position: relative; padding: 0 0 2rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -1px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; }
.tl-body h3 { font-size: 1.25rem; }
.tl-date { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tl-company { color: var(--gold); font-weight: 600; font-size: 0.95rem; margin: 0.2rem 0 0.6rem; }
.tl-body > p:last-child { color: var(--muted); font-size: 0.98rem; margin: 0; max-width: 68ch; }

/* ---------- Proyectos en Namirial ---------- */
.projects-section .section-head { max-width: 56ch; }
.section-lede { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 0; }
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 154, 78, 0.5);
  box-shadow: var(--shadow);
}
.project-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(194, 154, 78, 0.32);
}
.project-icon svg { width: 26px; height: 26px; }
.project-card h3 { font-size: 1.25rem; margin: 1.1rem 0 0.6rem; }
.project-card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Logros ---------- */
.logros-grid { grid-template-columns: repeat(4, 1fr); }
.logro-card {
  background: linear-gradient(180deg, #fff, #fbf9f3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
}
.logro-metric {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.logro-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.logro-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Formacion ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.edu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold);
}
.edu-year { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--gold); font-weight: 600; }
.edu-card h3 { font-size: 1.1rem; margin: 0.5rem 0 0.4rem; }
.edu-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Certificaciones ---------- */
.cert-block { margin-top: clamp(2rem, 4vw, 3rem); }
.cert-heading {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.cert-card:hover { transform: translateY(-3px); border-color: rgba(194, 154, 78, 0.5); }
.cert-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(194, 154, 78, 0.14);
  color: var(--gold);
}
.cert-badge svg { width: 24px; height: 24px; }
.cert-main { flex: 1; min-width: 0; }
.cert-issuer {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}
.cert-title { font-family: "Fraunces", serif; font-size: 1.12rem; font-weight: 600; margin: 0.3rem 0 0.35rem; }
.cert-main p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.cert-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.cert-date { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cert-verify {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.cert-verify:hover { color: var(--gold); }

/* ---------- Habilidades ---------- */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.skill-tags li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.skill-tags li:hover { transform: translateY(-2px); border-color: var(--gold); }

/* ---------- Contacto ---------- */
.contact-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-card {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4.5rem);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -40% 50% auto -10%;
  height: 120%;
  background: radial-gradient(circle, rgba(194, 154, 78, 0.22), transparent 60%);
}
.contact-card .eyebrow { color: var(--gold-soft); }
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 20ch; margin: 0 auto 1rem; position: relative; }
.contact-lede { color: rgba(247, 244, 236, 0.78); max-width: 52ch; margin: 0 auto 2rem; position: relative; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; position: relative; }
.contact-card .btn-solid { background: var(--gold); color: var(--navy); box-shadow: 0 14px 30px rgba(194, 154, 78, 0.35); }
.contact-card .btn-solid:hover { background: var(--gold-soft); }
.contact-card .btn-ghost { color: var(--paper); border-color: rgba(247, 244, 236, 0.4); }
.contact-card .btn-ghost:hover { border-color: var(--gold-soft); background: rgba(247, 244, 236, 0.08); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-name { font-family: "Fraunces", serif; font-size: 1.15rem; margin: 0; }
.footer-copy { color: var(--muted); font-size: 0.88rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 0.7rem; }
.footer-nav a { color: var(--muted); font-size: 0.88rem; font-weight: 500; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.96); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Ritmo de "slides" al desplazarse ---------- */
/* `proximity` encaja la sección cuando ya estás cerca, pero no secuestra el
   scroll: la rueda, la barra y Ctrl+F siguen funcionando igual. */
@media (min-width: 901px) {
  html { scroll-snap-type: y proximity; }
  main > section { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .carousel-track { scroll-behavior: auto; }
}

/* ---------- Indicador de sección ---------- */
.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
/* Sólo cuando sobra margen a los lados del contenido (máx. 1180px). */
@media (min-width: 1280px) {
  .section-dots { display: flex; }
}
.section-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}
.section-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(15, 35, 56, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.section-dot:hover::after { border-color: var(--gold); }
.section-dot.is-active::after {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.5);
}
.section-dot-label {
  position: absolute;
  right: 20px;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(250, 248, 242, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}
.section-dot:hover .section-dot-label,
.section-dot:focus-visible .section-dot-label { opacity: 1; transform: none; }
.section-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 50%; }

/* ---------- Carrusel ---------- */
.carousel-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  /* Sin scroll-snap a propósito: con tarjetas anchas los anclajes de las
     últimas caen más allá del scroll máximo, y el navegador devolvía el track
     a 0 en cuanto se desplazaba. El paginado lo lleva script.js, que además
     deja el desplazamiento libre con el dedo o el trackpad. */
  scroll-behavior: smooth;
  /* Sin relleno horizontal: desplazaría el origen del scroll y descuadraría
     el cálculo de páginas. El vertical deja sitio a la sombra al pasar. */
  padding: 0.4rem 0 1rem;
  margin-top: -0.4rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.carousel-track > .project-card {
  flex: 0 0 clamp(265px, 70vw, 420px);
  min-height: 230px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(15, 35, 56, 0.35);
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.carousel-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.4); }
.carousel-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Responsive ---------- */
/* Con la nav completa visible, el nombre de marca deja sitio al menú */
@media (min-width: 901px) and (max-width: 1080px) {
  .brand-name { display: none; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-portrait { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .cards-grid, .logros-grid, .edu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards-grid, .logros-grid, .edu-grid { grid-template-columns: 1fr; }
  .cert-card { flex-wrap: wrap; }
  .cert-meta {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
  }
  .nav-cta { display: none; }
  .hero-facts { gap: 1.4rem; }
}
