:root {
    --terracota: #B24A28;
    --terracota-clar: #D97A4E;
    --verd: #2C2C2A;
    --crema: #F4EEE4;
    --crema-fosc: #E8DFD0;
    --grafit: #2C2C2A;
    --gris: #5F5E5A;
    --linia: #D8D2C6;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    font-family: var(--sans);
    background: var(--crema);
    color: var(--grafit);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }

  .shell { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }

  .lockup { display: inline-flex; align-items: center; text-decoration: none; }
  .lockup svg { overflow: visible; flex: none; }
  .lockup .word { font-family: var(--serif); letter-spacing: 0.3px; }

  /* header */
  header { background: var(--grafit); position: sticky; top: 0; z-index: 20; }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 0; }
  .bar .lockup svg { margin-right: -6px; }
  .bar .lockup .word { font-size: 21px; color: var(--crema); }
  nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
  nav a { font-size: 14px; color: #C9C6BE; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
  nav a:hover { color: var(--crema); border-bottom-color: var(--terracota-clar); }
  .bar-right { display: flex; align-items: center; gap: 1.6rem; }
  .idioma { display: flex; align-items: center; gap: 0.35rem; font-size: 13px; flex: none; }
  .idioma a {
    color: #8A8880; text-decoration: none; padding: 0.15rem 0.4rem;
    border-radius: 3px; letter-spacing: 0.3px;
  }
  .idioma a:hover { color: var(--crema); }
  .idioma a[aria-current="true"] { color: var(--grafit); background: var(--crema); font-weight: 600; }
  .idioma span { color: #4E4D48; }
  .bar-cta { padding: 0.5rem 1rem; font-size: 0.85rem; flex: none; }
  @media (max-width: 820px) {
    .bar { flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0.8rem 0; }
    .bar-right { width: 100%; flex-direction: column; align-items: center; gap: 0.7rem; }
    nav { width: 100%; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.2rem; }
    .bar-cta { display: none; }
  }

  /* hero */
  .hero {
    position: relative;
    background: var(--grafit);
    color: var(--crema);
    padding: 6.5rem 0 7rem;
    overflow: hidden;
    isolation: isolate;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: 24% 58%;
    z-index: -2;
  }
  .hero-veil {
    position: absolute; inset: 0;
    background:
      linear-gradient(268deg, rgba(28,28,26,0.92) 0%, rgba(28,28,26,0.88) 30%, rgba(28,28,26,0.55) 55%, rgba(28,28,26,0.18) 85%, rgba(28,28,26,0.12) 100%),
      linear-gradient(to bottom, rgba(28,28,26,0.18), rgba(28,28,26,0.04) 45%, rgba(28,28,26,0.20));
    z-index: -1;
  }
  .hero-inner { position: relative; }
  .hero-col { max-width: 620px; margin-left: auto; }
  .hero-mark { display: flex; align-items: center; margin-bottom: 1.9rem; margin-left: -10px; }
  .hero-mark svg { overflow: visible; flex: none; margin-right: -12px; }
  .hero-mark .word { font-family: var(--serif); font-size: 48px; letter-spacing: 0.4px; color: var(--crema); }
  @media (max-width: 820px) {
    .hero { padding: 4rem 0 4.5rem; }
    .hero-bg { background-position: 30% 62%; }
    .hero-veil {
      background: linear-gradient(to bottom, rgba(28,28,26,0.86), rgba(28,28,26,0.90) 45%, rgba(28,28,26,0.94));
    }
    .hero-col { max-width: none; margin-left: 0; }
    .hero-mark { margin-left: -7px; }
    .hero-mark .word { font-size: 34px; }
    .hero-mark svg { width: 50px; height: 50px; margin-right: -9px; }
  }
  .hero h1 {
    font-family: var(--serif); font-weight: normal;
    font-size: clamp(1.85rem, 4.1vw, 2.7rem); line-height: 1.24;
    margin: 0 0 1.5rem; letter-spacing: -0.3px;
  }
  .hero .lede { font-size: 1.06rem; color: #CFCBC2; margin: 0 0 2.4rem; }
  .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
  .btn { display: inline-block; font-size: 0.94rem; font-weight: 500; text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 4px; border: 0; cursor: pointer; font-family: var(--sans); }
  .btn-solid { background: var(--terracota-clar); color: #241009; }
  .btn-solid:hover { background: #E8895B; }
  .btn-line { box-shadow: inset 0 0 0 1px #575651; color: var(--crema); }
  .btn-line:hover { box-shadow: inset 0 0 0 1px #8A8880; }
  .hero-meta {
    margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid #45443F;
    display: flex; flex-wrap: wrap; gap: 2.5rem; font-size: 0.85rem; color: #A9A69E;
  }
  .hero-meta strong { color: var(--crema); font-weight: 500; display: block; font-size: 0.95rem; }

  /* sections */
  section { padding: 5rem 0; }
  .section-head { max-width: 62ch; margin-bottom: 3rem; }
  h2 {
    font-family: var(--serif); font-weight: normal;
    font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.25;
    color: var(--verd); margin: 0 0 1rem;
  }
  .section-head p { margin: 0; color: var(--gris); font-size: 1.02rem; }

  /* course families */
  .family { margin-bottom: 3.5rem; }
  .family > h3 {
    font-family: var(--serif); font-weight: normal; font-size: 1.3rem;
    color: var(--terracota); margin: 0 0 1.5rem;
    padding-bottom: 0.75rem; border-bottom: 1px solid var(--linia);
  }
  .apartat {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.9px;
    color: var(--gris); font-weight: 600; margin-bottom: 0.7rem;
  }
  ul.temes { margin: 0 0 1.5rem; padding-left: 0; list-style: none; font-size: 0.92rem; }
  ul.temes li {
    position: relative; padding-left: 1.05rem; margin-bottom: 0.45rem;
    line-height: 1.5; color: var(--grafit);
  }
  ul.temes li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--terracota);
  }
  .benef-wrap {
    background: #F7EDE7; color: var(--terracota);
    border: 1px solid #E8D3C6; border-radius: 8px; padding: 1.35rem 1.5rem;
  }
  .benef-wrap .apartat { color: var(--terracota); }
  ul.benef { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
  ul.benef li {
    position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem;
    color: var(--terracota); line-height: 1.5;
  }
  ul.benef li:last-child { margin-bottom: 0; }
  ul.benef li::before {
    content: ""; position: absolute; left: 0; top: 0.36em;
    width: 10px; height: 5px;
    border-left: 2px solid var(--terracota); border-bottom: 2px solid var(--terracota);
    transform: rotate(-45deg);
  }

  /* precios y bonificación */
  .precios-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: stretch; }
  .precio-box { background: #fff; border: 1px solid var(--linia); border-radius: 10px; padding: 2rem; }
  .precio-box .desde { font-size: 0.85rem; color: var(--gris); }
  .precio-box .cifra {
    font-family: var(--serif); font-size: 3rem; color: var(--verd);
    line-height: 1.05; margin: 0.2rem 0 0.9rem;
  }
  .precio-box p { font-size: 0.95rem; color: var(--gris); margin: 0 0 0.8rem; }
  .precio-box p:last-child { margin-bottom: 0; }
  .precio-box ul { list-style: none; margin: 1.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--crema-fosc); font-size: 0.95rem; }
  .precio-box li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; }
  .precio-box li:last-child { margin-bottom: 0; }
  .precio-box li::before {
    content: ""; position: absolute; left: 0; top: 0.42em;
    width: 9px; height: 5px;
    border-left: 2px solid var(--terracota); border-bottom: 2px solid var(--terracota);
    transform: rotate(-45deg);
  }
  .info-card { background: #fff; border: 1px solid var(--linia); border-radius: 10px; padding: 2rem; }
  .info-card h3 { font-family: var(--serif); font-weight: normal; font-size: 1.5rem; color: var(--verd); margin: 0 0 0.9rem; }
  .info-card p { font-size: 0.95rem; color: var(--gris); margin: 0 0 0.9rem; }
  .info-card p:last-child { margin-bottom: 0; }
  .pasos-card { margin-top: 2rem; background: var(--verd); border-color: var(--verd); color: var(--crema); }
  .pasos-card h3 { color: var(--crema); }
  .pasos { counter-reset: paso; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2rem; }
  .pasos li { counter-increment: paso; }
  .pasos li::before {
    content: counter(paso);
    display: block; font-family: var(--serif); font-size: 2.5rem;
    color: var(--terracota-clar); line-height: 1; margin-bottom: 0.6rem;
  }
  .pasos h4 { font-family: var(--serif); font-weight: normal; font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--crema); }
  .pasos p { font-size: 0.88rem; color: #CFCBC2; margin: 0; }
  .nota-legal { font-size: 0.85rem; color: var(--gris); margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linia); max-width: 70ch; }
  @media (max-width: 820px) { .precios-grid { grid-template-columns: 1fr; gap: 2.25rem; } .pasos { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }

  /* bespoke */
  .bespoke { background: var(--verd); color: var(--crema); }
  .bespoke h2 { color: var(--crema); }
  .bespoke .section-head p { color: #C4D2C6; }
  .bespoke-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 2.25rem; margin-bottom: 3rem; }
  .bespoke-grid > div { padding-top: 1.25rem; border-top: 2px solid var(--terracota-clar); }
  .bespoke-grid h3 {
    font-family: var(--serif); font-weight: normal; font-size: 1.5rem;
    line-height: 1.25; margin: 0.9rem 0 0.7rem;
  }
  .bespoke-grid svg { display: block; }
  .bespoke-grid p { margin: 0; font-size: 0.94rem; color: #C4D2C6; }
  .mida-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 2.5rem; align-items: stretch; }
  .mida-img {
    border-radius: 10px; overflow: hidden;
  }
  .mida-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .propose p { font-size: 1.02rem; color: #CBD8CC; }
  .propose p:first-child { margin-top: 0; }
  .propose p:last-of-type { margin-bottom: 1.7rem; }
  @media (max-width: 780px) { .mida-grid { grid-template-columns: 1fr; gap: 1.75rem; } .mida-img { min-height: 240px; } }

  /* sobre corpora + equipo */
  .quien-intro { max-width: 70ch; }
  .quien-intro p:first-child { margin-top: 0; }
  .quien-intro p { font-size: 1.02rem; }
  .creds { background: #fff; border: 1px solid var(--linia); border-radius: 10px; padding: 1.6rem; }
  .creds h3 { font-family: var(--serif); font-weight: normal; font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--verd); }
  .creds p { font-size: 0.92rem; color: var(--gris); margin: 0 0 0.85rem; }
  .creds .rol { color: var(--grafit); margin-bottom: 0.35rem; }
  .creds .colegiada {
    font-size: 0.78rem; color: var(--terracota); letter-spacing: 0.2px;
    padding-bottom: 0.85rem; margin-bottom: 0.85rem; border-bottom: 1px solid var(--linia);
  }
  .creds p:last-child { margin-bottom: 0; }
  .equipo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
  .equipo-card { display: flex; flex-direction: column; gap: 1rem; }
  /* la caja blanca iguala su altura en las tres fichas */
  .equipo-card .creds { flex: 1; }
  .equipo-foto {
    display: block; width: 100%; aspect-ratio: 1 / 1;
    object-fit: cover; object-position: center 25%;
    border-radius: 10px; border: 1px solid var(--linia);
  }
  .equipo-foto.pendiente {
    background: var(--crema-fosc); display: flex; align-items: center; justify-content: center;
    padding: 1rem; text-align: center; font-size: 0.78rem; color: #9A9184; line-height: 1.5;
  }
  @media (max-width: 780px) { .equipo-grid { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; } }

  /* contact */
  .contact { background: var(--grafit); color: var(--crema); }
  .contact h2 { color: var(--crema); }
  .contact .section-head p { color: #CFCBC2; }
  .contact-form { max-width: 640px; }
  label { display: block; font-size: 0.85rem; color: #A9A69E; margin-bottom: 0.4rem; }
  input, textarea, select {
    width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--crema);
    background: #383733; border: 1px solid #4E4D48; border-radius: 4px;
    padding: 0.7rem 0.8rem; margin-bottom: 1.1rem;
  }
  textarea { min-height: 110px; resize: vertical; }
  .consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.3rem 0 1.4rem; }
  .consent input { width: auto; margin: 0.32rem 0 0; flex: none; accent-color: var(--terracota-clar); }
  .consent label { font-size: 0.84rem; color: #A9A69E; margin: 0; line-height: 1.5; }
  .consent label a { color: var(--terracota-clar); }
  .direct-note { font-size: 0.88rem; color: #A9A69E; margin-top: 1rem; }
  .direct-note a { color: var(--terracota-clar); text-decoration: none; }
  .direct-note a:hover { text-decoration: underline; }

  /* footer */
  footer { background: #232220; color: #8A8880; padding: 3.5rem 0 2rem; font-size: 0.86rem; }
  .foot-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #3A3935;
  }
  .foot-top .lockup svg { margin-right: -6px; }
  .foot-top .lockup .word { font-size: 21px; color: #C9C6BE; }
  .foot-claim { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: #8A8880; margin: 1rem 0 0; line-height: 1.5; max-width: 30ch; }
  .foot-col h5 {
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.8px;
    color: #C9C6BE; margin: 0 0 0.9rem; font-weight: 600;
  }
  .foot-col ul { list-style: none; margin: 0; padding: 0; }
  .foot-col li { margin-bottom: 0.5rem; }
  .foot-col a { color: #8A8880; text-decoration: none; }
  .foot-col a:hover { color: var(--terracota-clar); }
  .foot-col p { margin: 0 0 0.5rem; }
  .foot-bottom {
    display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
    justify-content: space-between; padding-top: 1.75rem; font-size: 0.8rem; color: #6E6D68;
  }
  .foot-bottom a { color: #6E6D68; }
  @media (max-width: 820px) {
    .foot-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  }
  @media (max-width: 520px) {
    .foot-top { grid-template-columns: 1fr; }
  }

/* Aviso bajo el boton del formulario de contacto */
.aviso-envio{font-size:.85rem;opacity:.75;margin-top:.6rem}

  /* cabecera de las paginas interiores */
  .page-head { background: var(--grafit); color: var(--crema); padding: 3.75rem 0 3.25rem; }
  .page-head h1 {
    font-family: var(--serif); font-weight: normal;
    font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.25;
    margin: 0; color: var(--crema); letter-spacing: -0.3px;
  }
  .page-head p { margin: 1.1rem 0 0; max-width: 62ch; color: #CFCBC2; font-size: 1.02rem; }
  /* cuando la seccion siguiente tambien es oscura, no doblar el espacio */
  .page-head + .contact { padding-top: 1.5rem; }

  /* tarjetas de programa (catalogo) */
  .prog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .prog-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--linia); border-radius: 10px; overflow: hidden;
  }
  .prog-card:hover { border-color: var(--terracota-clar); }
  .prog-card-foto { display: block; aspect-ratio: 2.5 / 1; overflow: hidden; }
  .prog-card-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .prog-card-body { display: flex; flex-direction: column; flex: 1; padding: 0.9rem 1.1rem 0.9rem; }
  .prog-tag {
    display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--terracota); font-weight: 600; margin-bottom: 0.4rem;
  }
  .prog-titulo {
    display: block; font-family: var(--serif); font-size: 1.15rem;
    line-height: 1.25; color: var(--verd);
  }
  .prog-titulo em { font-style: italic; font-weight: 700; }
  .prog-pie {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-top: auto; padding-top: 0.9rem;
  }
  .prog-horas {
    font-style: normal; font-weight: normal; color: var(--gris);
    font-size: 0.9rem; white-space: nowrap;
  }
  .prog-btn {
    flex: none;
    font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
    color: var(--terracota); border: 1px solid var(--linia); border-radius: 4px;
    padding: 0.35rem 0.8rem;
  }
  .prog-card:hover .prog-btn { background: var(--crema-fosc); border-color: var(--terracota-clar); }
  @media (max-width: 900px) { .prog-cards { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 620px) { .prog-cards { grid-template-columns: 1fr; } }

  /* pagina de un programa */
  .prog-head .prog-tag-head {
    display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--terracota-clar); font-weight: 600; margin-bottom: 0.9rem;
  }
  .prog-head .prog-durada {
    margin: 1rem 0 0; color: #CFCBC2; font-size: 0.95rem;
  }
  .prog-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: start; }
  .prog-resum {
    font-family: var(--serif); font-size: 1.25rem; line-height: 1.45;
    color: var(--grafit); margin: 0 0 2.25rem;
    padding-left: 1rem; border-left: 3px solid var(--terracota);
  }
  .prog-main h2 {
    font-size: 1.35rem; margin: 0 0 1.1rem;
  }
  .prog-foto-main { margin-bottom: 2.25rem; }
  .prog-aside .prog-resum { font-size: 1.08rem; margin: 0; }
  .prog-main .prog-cta { display: inline-block; margin: -0.4rem 0 2.5rem; }
  /* cabecera baja en las paginas de programa */
  .prog-head { padding: 2.4rem 0 2.1rem; }
  .prog-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.05rem); }
  .prog-head .prog-tag-head { margin-bottom: 0.6rem; }
  .prog-head .prog-durada { margin-top: 0.7rem; }
  .prog-main .temes { margin: 0 0 2.25rem; padding-left: 0; list-style: none; font-size: 1rem; }
  .prog-main .temes li {
    position: relative; padding-left: 1.15rem; margin-bottom: 0.55rem;
    line-height: 1.5; color: var(--grafit);
  }
  .prog-main .temes li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--terracota);
  }
  .prog-main .benef-wrap { margin-top: 0; min-height: 0; }
  .prog-aside { display: flex; flex-direction: column; gap: 1.5rem; }
  .prog-foto {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
    object-fit: cover; border-radius: 10px; border: 1px solid var(--linia);
  }
  .prog-aside .info-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
  .prog-aside .info-card p { font-size: 0.92rem; }
  .prog-cta { display: block; text-align: center; }
  /* cabecera de programa con la fotografia de fondo */
  .prog-hero { position: relative; overflow: hidden; isolation: isolate; padding: 3.25rem 0 2.9rem; }
  .prog-hero .hero-bg {
    position: absolute; inset: 0; background-image: var(--hero-img);
    background-size: cover; background-position: center; z-index: -2;
  }
  .prog-hero .hero-veil {
    position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(268deg, rgba(28,28,26,0.95) 0%, rgba(28,28,26,0.92) 38%, rgba(28,28,26,0.62) 66%, rgba(28,28,26,0.25) 100%),
      linear-gradient(to bottom, rgba(28,28,26,0.25), rgba(28,28,26,0.05) 50%, rgba(28,28,26,0.25));
  }
  .prog-hero .shell { position: relative; }
  .prog-hero h1 { max-width: 20ch; }
  @media (max-width: 820px) {
    .prog-hero { padding: 3.5rem 0 3.25rem; }
    .prog-hero .hero-veil {
      background: linear-gradient(to bottom, rgba(28,28,26,0.88), rgba(28,28,26,0.92) 50%, rgba(28,28,26,0.94));
    }
  }
  .info-card ul.incluye { list-style: none; margin: 0; padding: 0; }
  .info-card ul.incluye li {
    position: relative; padding-left: 1.15rem; margin-bottom: 0.55rem;
    font-size: 0.92rem; color: var(--gris); line-height: 1.5;
  }
  .info-card ul.incluye li:last-child { margin-bottom: 0; }
  .info-card ul.incluye li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    color: var(--terracota); font-size: 0.85rem;
  }
  @media (max-width: 820px) { .prog-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

  /* tarjetas de ambito */
  .ambito-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .ambito-card {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--linia); border-radius: 10px;
    border-top: 3px solid var(--terracota-clar); padding: 1.75rem;
  }
  .ambito-card:hover { border-color: var(--terracota-clar); }
  .ambito-count {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.9px;
    color: var(--gris); font-weight: 600;
  }
  .ambito-card h3 {
    font-family: var(--serif); font-weight: normal; font-size: 1.42rem;
    line-height: 1.25; margin: 0.5rem 0 0.6rem; color: var(--verd);
  }
  .ambito-card p { font-size: 0.95rem; color: var(--gris); margin: 0 0 1.1rem; line-height: 1.5; }
  .ambito-list { list-style: none; margin: 0 0 1.3rem; padding: 0; }
  .ambito-list li {
    font-family: var(--serif); font-size: 1.02rem; color: var(--grafit);
    line-height: 1.3; padding: 0.65rem 0; border-top: 1px solid var(--crema-fosc);
  }
  .ambito-list li:first-child { border-top: 0; }
  .ambito-link { font-size: 0.9rem; font-weight: 500; color: var(--terracota); }
  .ambito-link::after { content: " \2192"; }
  @media (max-width: 700px) { .ambito-grid { grid-template-columns: 1fr; } }

  /* programas dentro de una pagina de ambito */
  .ambito-programas .family { margin-bottom: 0; }

  /* otros ambitos */
  .otros-ambitos { padding: 3rem 0 4rem; }
  .otros-ambitos h2 {
    font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase;
    letter-spacing: 0.9px; color: var(--gris); font-weight: 600; margin: 0 0 1.1rem;
  }
  .otros-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
  .otros-links a {
    font-family: var(--serif); font-size: 1.15rem;
    color: var(--terracota); text-decoration: none;
  }
  .otros-links a:hover { text-decoration: underline; }

  /* enlace "ver mas" */
  .mas-link { color: var(--terracota); font-weight: 500; text-decoration: none; }
  .mas-link::after { content: " \2192"; }
  .mas-link:hover { text-decoration: underline; }

  /* ---------------------------------------------------------------
     Movil. Va al final a proposito: las reglas de aqui tienen que
     ganar a las generales, y en CSS gana la ultima que se lee.
     --------------------------------------------------------------- */
  @media (max-width: 820px) {
    /* la cabecera se comia un cuarto de la pantalla */
    .bar {
      flex-wrap: wrap; justify-content: space-between;
      align-items: center; gap: 0.45rem 0.9rem; padding: 0.65rem 0;
    }
    .bar-right { display: contents; }
    .bar .lockup { order: 1; }
    .bar .lockup .word { font-size: 19px; }
    .idioma { order: 2; }
    nav { order: 3; width: 100%; }
    nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 0.5rem; }
    nav a { font-size: 13.5px; }
    .bar-cta { display: none; }

    /* que la cabecera fija no tape el titulo al saltar a una seccion */
    [id] { scroll-margin-top: 6rem; }

    /* respiro general */
    section { padding: 3.25rem 0; }
    .shell { padding: 0 1.15rem; }
    .page-head { padding: 2.25rem 0 2rem; }
    h2 { font-size: 1.5rem; }
    .prog-resum { font-size: 1.1rem; }
    .info-card { padding: 1.5rem; }
    .benef-wrap { padding: 1.35rem; }
    .btn { padding: 0.8rem 1.3rem; }
    .prog-cta { width: 100%; text-align: center; }
    .prog-main .prog-cta { display: block; margin: 0 0 2rem; }

    /* la columna lateral, debajo y sin la foto repetida arriba */
    .prog-aside { gap: 1.25rem; }

    /* tablas de precios y pasos */
    .precio-box, .pasos-card { padding: 1.5rem; }
    .cifra { font-size: 2.1rem; }

    /* el formulario */
    .contact-form { max-width: none; }
    textarea { min-height: 140px; }
  }

  @media (max-width: 380px) {
    nav ul { gap: 0.35rem; }
    nav a { font-size: 12.5px; }
  }

  /* paginas legales: aviso legal, privacidad y cookies, los dos idiomas */
  .legal { padding: 3.5rem 0 4.5rem; }
  .legal .shell { max-width: 760px; }
  .legal section { padding: 0; margin-bottom: 2.75rem; }
  .legal section:last-of-type { margin-bottom: 0; }
  .legal h2 {
    font-family: var(--serif); font-weight: normal; font-size: 1.28rem;
    color: var(--terracota); margin: 0 0 1.1rem;
    padding-bottom: 0.7rem; border-bottom: 1px solid var(--linia);
  }
  .legal p { font-size: 0.95rem; margin: 0 0 1rem; }
  .legal p:last-child { margin-bottom: 0; }
  .legal a { color: var(--terracota); text-decoration: underline; text-underline-offset: 2px; }
  .legal .apartat { margin-bottom: 0.5rem; }
  .legal ul.temes { margin-bottom: 1rem; }
  .datos { margin: 1.5rem 0 0; display: grid; gap: 0.1rem; }
  .datos > div {
    display: grid; grid-template-columns: 210px 1fr; gap: 0 1rem;
    padding: 0.7rem 0; border-top: 1px solid var(--linia);
  }
  .datos > div:last-child { border-bottom: 1px solid var(--linia); }
  .datos dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.7px; color: var(--gris); font-weight: 600; padding-top: 0.15rem; }
  .datos dd { margin: 0; font-size: 0.95rem; }
  .legal-fecha { font-size: 0.85rem; color: var(--gris); margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--linia); }

  @media (max-width: 620px) {
    .legal { padding: 2.25rem 0 3rem; }
    .legal section { margin-bottom: 2.25rem; }
    .datos > div { grid-template-columns: 1fr; gap: 0.15rem; }
  }
