/* Finanzas y Crecimiento — hoja de estilos */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colores corporativos */
  --verde: #3E6B1F;
  --verde-oscuro: #2B4C14;
  --brote: #7DB544;
  --tierra: #6B4226;
  --semilla: #B5733D;
  --crema: #FBF8F0;

  /* Derivados de la paleta */
  --tinta: #2A2A1F;
  --tinta-suave: #4F4A3B;
  --tinta-tenue: #5C5747;
  --papel: #F2EEDF;
  --linea: #E2DBC2;
  --hoja-clara: #EEF3E3;
  --hoja-palida: #E3EDD2;
  --cobre-claro: #E6B07A;
  --pie: #2E2A1E;
  --pie-texto: #D8D2BF;

  /* Acabado metalizado (degradados decididos) */
  --metal-verde: linear-gradient(115deg, #2E5216 0%, #3E6B1F 28%, #7DB544 52%, #B9DB8A 62%, #6FA43A 74%, #3E6B1F 100%);
  --metal-brote: linear-gradient(115deg, #5E9230 0%, #7DB544 35%, #C8E6A0 55%, #8CC152 70%, #6AA03A 100%);
  --metal-tierra: linear-gradient(115deg, #4E2F19 0%, #6B4226 35%, #A47652 55%, #7A4C2C 72%, #5A3720 100%);
  --metal-cobre: linear-gradient(115deg, #8A5428 0%, #B5733D 35%, #E6B07A 55%, #C17F45 72%, #A2652F 100%);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 1200px;
  --margen: clamp(20px, 4vw, 32px);
  --radio: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #C9BF9F var(--crema);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  text-rendering: optimizeLegibility;
}

::selection { background: #D6E6BF; color: var(--verde-oscuro); }

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

a {
  color: var(--verde);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--verde-oscuro); }

:focus-visible {
  outline: 3px solid var(--semilla);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

.contenedor {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--margen);
}

.saltar {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.saltar:focus, .saltar:hover { top: 12px; color: #fff; }

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

/* ---------- Cabecera ---------- */

.cabecera {
  border-bottom: 1px solid var(--linea);
  background: var(--crema);
}
.cabecera .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--verde);
}
.marca svg { width: 44px; height: 44px; flex: none; }
.marca span {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  font-weight: 700;
  line-height: 1;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--verde);
  background: linear-gradient(var(--semilla), var(--semilla)) left calc(100% - 4px) / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--verde-oscuro);
  background-size: 100% 2px;
}

/* Brote del logo: crece una vez al cargar */
.brote-tallo {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
}
.brote-hoja { transform-box: fill-box; }
.brote-hoja.izq { transform-origin: 100% 60%; }
.brote-hoja.der { transform-origin: 0% 60%; }

@media (prefers-reduced-motion: no-preference) {
  .cabecera-inicio .brote-tallo { animation: tallo 700ms var(--ease) 150ms both; }
  .cabecera-inicio .brote-hoja { animation: hoja 600ms var(--ease) 500ms both; }
}
@keyframes tallo { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes hoja { from { transform: scale(0) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Botones metalizados ---------- */
/* El degradado completo se ve al pasar el ratón: el brillo recorre el botón.
   En reposo se muestra la parte oscura, para que el texto blanco se lea. */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  background-size: 300% 100%;
  background-position: 0% 50%;
  transition: background-position 0.9s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.boton:hover { color: #fff; background-position: 18% 50%; transform: translateY(-1px); }
.boton:active { transform: translateY(0); }

.boton-verde {
  background-image: var(--metal-verde);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px rgba(62, 107, 31, 0.28);
}
.boton-verde:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px rgba(62, 107, 31, 0.34); }

.boton-cobre {
  background-image: var(--metal-cobre);
  background-size: 340% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px rgba(138, 84, 40, 0.28);
}
.boton-cobre:hover { background-position: 10% 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px rgba(138, 84, 40, 0.34); }

.boton svg { width: 18px; height: 18px; flex: none; }

/* ---------- Portada: hero ---------- */

.hero .contenedor {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.hero-texto { display: flex; flex-direction: column; gap: 22px; }

.lema {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-style: italic;
  font-weight: 500;
  color: var(--tierra);
}
.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.25rem);
  line-height: 1;
  color: var(--tinta);
}
.hero-entrada {
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--tinta-suave);
}
.acciones { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.arco {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4.2;
  max-height: 460px;
  --curva: clamp(150px, 17vw, 230px);
  border-radius: var(--curva) var(--curva) 24px 24px;
  border: 5px solid var(--semilla);
  box-shadow: 0 0 0 2px var(--cobre-claro), 0 22px 44px -18px rgba(78, 47, 25, 0.45);
  overflow: hidden;
  background: var(--hoja-palida);
}
.arco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}

/* ---------- Tres raíces ---------- */

.raices {
  background: var(--hoja-clara);
  padding: clamp(56px, 7vw, 80px) 0;
}
.titulo-seccion {
  font-size: clamp(2.125rem, 3.6vw, 2.75rem);
  color: var(--tinta);
  margin-bottom: 28px;
}
.raices-lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.raiz {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 30px 28px 28px;
  border-radius: var(--radio);
  background: var(--crema);
  color: var(--tinta);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.raiz::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--metal-cobre);
}
.raiz:hover {
  color: var(--tinta);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(62, 107, 31, 0.45);
}
.raiz-icono { width: 40px; height: 40px; color: var(--verde); }
.raiz h3 { font-size: 1.875rem; }
.raiz p { color: var(--tinta-suave); line-height: 1.55; }
.raiz-mas {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--verde);
}

/* ---------- Cursos ---------- */

.cursos { padding: clamp(56px, 7vw, 80px) 0; }
.cursos-intro { max-width: 40em; margin: -12px 0 28px; color: var(--tinta-suave); }
.cursos-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.curso {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: #fff;
}
.curso h3 { font-size: 1.875rem; }
.curso p { color: var(--tinta-suave); line-height: 1.55; }
.curso a { font-weight: 700; }
.pendiente {
  color: var(--tinta-tenue);
  font-style: italic;
}

.etiqueta {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  background-size: 420% 100%;
}
.etiqueta-brote { background-image: var(--metal-brote); background-position: 50% 50%; color: #1F3A0C; }
.etiqueta-cobre { background-image: var(--metal-cobre); background-position: 55% 50%; color: #3A220E; }

/* ---------- Boletín ---------- */

.boletin { padding: 0 0 clamp(56px, 7vw, 80px); }
.boletin-banda {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  color: var(--crema);
  background: var(--metal-verde);
  background-size: 175% 100%;
  background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.boletin-texto { max-width: 30em; }
.boletin h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); margin-bottom: 8px; }
.boletin-texto p { color: #E6EEDA; }
.boletin form { display: flex; flex-wrap: wrap; gap: 10px; }
.boletin input {
  height: 54px;
  min-width: 250px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  color: var(--tinta);
  background: var(--crema);
  caret-color: var(--verde);
}
.boletin input::placeholder { color: #6B6450; }
.boletin input:focus-visible { outline: 3px solid var(--cobre-claro); outline-offset: 2px; }
.boletin .boton-cobre { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px rgba(30, 50, 12, 0.35); }
.aviso-form {
  flex-basis: 100%;
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: #F3F7EC;
}
.aviso-form a { color: #fff; }

/* ---------- Páginas interiores ---------- */

.cabecera-pagina {
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
  padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}
.cabecera-pagina h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); max-width: 16em; }
.cabecera-pagina .entrada {
  max-width: 38em;
  margin-top: 16px;
  font-size: 1.1875rem;
  color: var(--tinta-suave);
}
.miga {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: var(--tinta-tenue);
}
.miga a { color: var(--tinta-tenue); }

.cuerpo { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 7vw, 88px); }

.texto {
  max-width: 68ch;
}
.texto > * + * { margin-top: 1em; }
.texto h2 {
  margin-top: 1.8em;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
}
.texto h3 { margin-top: 1.5em; font-size: 1.5rem; }
.texto ul, .texto ol { padding-left: 1.25em; }
.texto li + li { margin-top: 0.4em; }
.texto li::marker { color: var(--semilla); }

.hueco {
  padding: 2px 8px;
  border-radius: 6px;
  background: #FBEBD6;
  color: #6B3A12;
  font-weight: 600;
}

.en-preparacion {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0 32px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.en-preparacion li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.32;
}
.en-preparacion li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--metal-cobre);
  transform: translateY(-2px);
}

.dos-columnas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.marco-foto {
  margin: 0;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--linea);
}
.marco-foto img { width: 100%; height: auto; }
.marco-foto figcaption {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--tinta-tenue);
  background: var(--papel);
}

.foto-pendiente {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 24px;
  border-radius: 999px 999px 24px 24px / 45% 45% 24px 24px;
  border: 2px dashed var(--semilla);
  background: var(--hoja-palida);
  color: var(--tinta-suave);
  text-align: center;
  font-weight: 600;
}

.logo-completo { width: min(320px, 100%); height: auto; margin-inline: auto; }
.bloque-afiliados { margin-top: 48px; }
.acciones-404 { margin-top: 24px; }
.boletin input[aria-invalid="true"] { border-color: var(--cobre-claro); }

/* ---------- Pie ---------- */

.pie {
  background: var(--pie);
  color: var(--pie-texto);
  padding: 48px 0 40px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.pie .contenedor { display: flex; flex-direction: column; gap: 14px; }
.pie-lema {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 500;
  color: #fff;
}
.pie p { max-width: 70ch; }
.pie a { color: var(--pie-texto); }
.pie a:hover { color: #fff; }
.pie-enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.pie-creditos { font-size: 0.8125rem; color: #B5AE98; }
.pie-creditos a { color: #B5AE98; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .contenedor { grid-template-columns: 1fr; }
  .arco { max-height: 380px; aspect-ratio: 4 / 3.4; }
  .raices-lista { grid-template-columns: 1fr; }
  .cursos-lista { grid-template-columns: 1fr; }
  .dos-columnas { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cabecera .contenedor { justify-content: center; }
  .menu ul { justify-content: center; gap: 0 18px; }
  .acciones .boton { flex: 1 1 100%; }
  .boletin form, .boletin input, .boletin .boton { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Ajustes */
.texto > :first-child { margin-top: 0; }
.texto .en-preparacion li + li { margin-top: 0; }

/* ==========================================================
   Pulido de interacción (Emil Kowalski) y afiliación (Taste)
   ========================================================== */

:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
html { -webkit-tap-highlight-color: transparent; }

/* Zonas táctiles de 44 px */
.menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  background-position: left calc(100% - 8px);
  transition: background-size 220ms var(--ease-out), color 150ms ease;
}
.pie-enlaces a { display: inline-flex; align-items: center; min-height: 44px; }
.pie-enlaces { gap: 0 22px; }

/* Botones: responden al pulsar; el brillo y la elevación solo con ratón */
.boton {
  touch-action: manipulation;
  transition: background-position 600ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.boton:hover, .boton-cobre:hover { background-position: 0% 50%; transform: none; }
.boton:active { transform: scale(0.97); }
.boton-pendiente { cursor: not-allowed; font-size: 1rem; opacity: 0.8; }
.boton-pendiente:active { transform: none; }

/* Tarjetas de raíces */
.raiz { transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.raiz:hover { transform: none; box-shadow: none; }
.raiz:active { transform: scale(0.99); }

@media (hover: hover) and (pointer: fine) {
  .boton:hover { transform: translateY(-1px); }
  .boton-verde:hover { background-position: 18% 50%; }
  .boton-cobre:hover { background-position: 10% 50%; }
  .boton:active { transform: scale(0.97); }
  .boton-pendiente:hover { transform: none; background-position: 0% 50%; }
  .raiz:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(62, 107, 31, 0.45); }
  .curso:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(78, 47, 25, 0.35); border-color: #D6CCAA; }
}

/* Hojas del logo: nunca desde scale(0) */
@keyframes hoja { from { transform: scale(0.6) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Hero: ocupa la primera pantalla y entra una sola vez al cargar */
.hero { display: flex; align-items: center; min-height: calc(100svh - 73px); }
.hero > .contenedor { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .entra { animation: entrar 560ms var(--ease-out) var(--d, 0ms) both; }
  .entra-foto { animation: entrar-foto 720ms var(--ease-out) 120ms both; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
@keyframes entrar-foto { from { opacity: 0; transform: scale(0.97); } }

/* Cómo son mis opiniones */
.como-opino {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.como-opino li { padding-top: 16px; border-top: 2px solid var(--linea); }
.como-opino h3 { font-size: 1.375rem; margin-bottom: 6px; color: var(--verde); }
.como-opino p { font-size: 0.9375rem; line-height: 1.55; color: var(--tinta-suave); }
.cursos-intro { margin: -12px 0 24px; }

/* Fichas de curso */
.curso {
  position: relative;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}
.curso-autor { font-size: 0.9375rem; color: var(--tinta-tenue); margin-top: -4px; }
.curso-claves { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.curso-claves li { display: flex; gap: 10px; align-items: baseline; }
.curso-claves li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--metal-cobre);
  transform: translateY(-2px);
}
.curso-enlace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 9px) / 0 1.5px no-repeat;
  transition: background-size 220ms var(--ease-out);
}
.curso-enlace:hover { background-size: 100% 1.5px; }
.curso-enlace svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.curso-enlace:hover svg { transform: translateX(3px); }
.curso-enlace::after { content: ""; position: absolute; inset: 0; border-radius: var(--radio); }
.cursos-todos { margin-top: 28px; font-weight: 700; }

/* Página de opinión de curso */
.opinion-cabecera {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.compra {
  padding: 24px;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: #fff;
  box-shadow: 0 18px 36px -26px rgba(78, 47, 25, 0.4);
}
.compra-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 20px; }
.compra-datos dt { font-size: 0.8125rem; color: var(--tinta-tenue); }
.compra-datos dd { margin: 0; font-weight: 700; }
.compra .boton, .cierre-compra .boton { width: 100%; }
.nota-afiliado { margin-top: 10px; font-size: 0.8125rem; line-height: 1.5; color: var(--tinta-tenue); }
.veredicto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.veredicto > div { padding: 28px; border-radius: var(--radio); }
.veredicto-si { background: var(--hoja-clara); }
.veredicto-no { background: #F6EDE3; }
.veredicto h2 { font-size: 1.75rem; margin-bottom: 12px; }
.veredicto ul { margin: 0; padding-left: 1.2em; }
.veredicto li + li { margin-top: 6px; }
.veredicto-si li::marker { color: var(--verde); }
.veredicto-no li::marker { color: var(--semilla); }
.opinion-texto { margin-top: 48px; }
.faq { border-bottom: 1px solid var(--linea); }
.texto .faq { margin-top: 0; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  align-items: center;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--semilla); transition: transform 200ms var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 16px; }
.cierre-compra { max-width: 420px; margin-top: 48px; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .como-opino { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opinion-cabecera, .veredicto { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .como-opino { grid-template-columns: 1fr; gap: 16px; }
}

/* break-ui: textos largos (nombres de curso, correos, URLs) nunca desbordan */
h1, h2, h3, p, li, dd, summary, a { overflow-wrap: break-word; }
.curso h3, .opinion-cabecera h1, .compra-datos dd { overflow-wrap: anywhere; hyphens: auto; }
.curso, .compra, .veredicto > div { min-width: 0; }

/* mobile-native: los botones no seleccionan su texto al mantener pulsado,
   los campos no hacen zoom (16 px mínimo) y el brillo dura menos */
.boton, .menu a, .curso-enlace, .faq summary { -webkit-user-select: none; user-select: none; }
input, select, textarea { font-size: max(16px, 1rem); }
.boton { transition-duration: 450ms, 160ms, 200ms; }
html { scroll-padding-top: 16px; }
/* En listas flex el texto es un elemento flexible: necesita «anywhere» para poder partirse */
.curso-claves li, .en-preparacion li, .veredicto li, .curso-autor { overflow-wrap: anywhere; }
