/* Estilo de www.fonteide.com (paleta, tipografias y componentes del tema WordPress).
   Mobile-first: los estilos base son para movil y las media queries amplian a tablet/escritorio. */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/montserrat-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }

:root {
  --primario: #002f6d;
  --profundo: #00234f;
  --acento: #007bc2;
  --nieve: #eef4fb;
  --suave: #d7e8f7;
  --palido: #bcdff7;
  --blanco: #ffffff;
  --texto: color-mix(in srgb, var(--primario) 78%, var(--nieve));
  --tenue: color-mix(in srgb, var(--primario) 60%, var(--nieve));
  --linea: color-mix(in srgb, var(--primario) 18%, var(--nieve));
  --heading: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nieve);
  color: var(--texto);
  font: 400 16.5px/1.8 var(--sans);
  -webkit-tap-highlight-color: color-mix(in srgb, var(--acento) 20%, transparent);
}
.wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--acento); text-underline-offset: 3px; }
a:hover { color: var(--primario); }
strong { font-weight: 600; color: var(--primario); }
img { max-width: 100%; }

/* ---------- Navegacion flotante en pildora ---------- */
.site-nav { padding: 16px var(--gutter) 0; position: relative; z-index: 10; }
.pill {
  max-width: 820px; margin: 0 auto;
  background: var(--blanco); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 47, 109, .12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 24px; min-height: 60px;
}
.pill .logo img { display: block; width: 92px; height: auto; }
.pill .links { display: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--primario);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 26px; height: 26px; }
.menu .close { display: none; }
.menu[open] .open { display: none; }
.menu[open] .close { display: block; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 14px);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  background: var(--blanco); border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 47, 109, .18);
  padding: 10px;
}
.menu nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 16px;
  border-radius: 12px; color: var(--primario); font-weight: 600; font-size: 15px; text-decoration: none;
}
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--nieve); }
.menu nav a.cta { margin-top: 6px; justify-content: center; background: var(--primario); color: var(--blanco); border-radius: 999px; }

/* ---------- Cabecera de pagina ---------- */
.page-head { padding: 40px 0 8px; }
.crumbs { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); margin: 0 0 18px; }
.crumbs a { color: var(--tenue); text-decoration: none; }
.crumbs a:hover { color: var(--primario); }
.crumbs span { color: var(--primario); font-weight: 700; }
h1 {
  font-family: var(--heading); font-weight: 400; color: var(--primario);
  font-size: clamp(36px, 9vw, 59px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0; overflow-wrap: break-word; hyphens: auto;
}
.updated { color: var(--tenue); font-size: 14px; margin: 16px 0 0; }

/* ---------- Contenido ---------- */
main { flex: 1; padding-bottom: 64px; }
.content { padding-top: 24px; }
.content > :first-child { margin-top: 0; }
h2 {
  font-family: var(--heading); font-weight: 400; color: var(--primario);
  font-size: clamp(25px, 6.4vw, 30.6px); line-height: 1.2;
  margin: 48px 0 18px; text-wrap: balance;
}
h3 {
  font-family: var(--heading); font-weight: 400; color: var(--primario);
  font-size: clamp(20px, 5.2vw, 24px); line-height: 1.3;
  margin: 34px 0 14px; text-wrap: balance;
}
p, ul, ol { margin: 0 0 22px; text-wrap: pretty; }
p, li, td { overflow-wrap: anywhere; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 10px; padding-left: 4px; }
li::marker { color: var(--acento); }
ol li::marker { font-weight: 600; }

/* Indice plegable de las paginas largas */
.toc { background: var(--blanco); border-radius: 16px; margin: 0 0 32px; box-shadow: 0 6px 20px rgba(0, 47, 109, .06); }
.toc summary {
  list-style: none; cursor: pointer; min-height: 52px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primario);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 22px; font-weight: 400; letter-spacing: 0; color: var(--acento); }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; padding: 0 10px 12px; margin: 0; }
.toc li { margin: 0; padding: 0; }
.toc a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 10px;
  border-radius: 10px; line-height: 1.35; font-size: 15px; color: var(--primario); text-decoration: none;
}
.toc a:hover { background: var(--nieve); }

/* Tablas: en movil cada fila se apila (etiqueta encima del valor) */
.table-scroll { margin: 8px 0 28px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
thead { display: none; }
tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--linea); }
tbody tr:first-child { border-top: 1px solid var(--linea); }
th, td { display: block; padding: 0; text-align: left; }
tbody th { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); margin-bottom: 4px; line-height: 1.5; }
td { color: var(--primario); }

/* Bloques destacados y botones */
.callout { background: var(--blanco); border-radius: 16px; padding: 20px 22px; margin: 24px 0; box-shadow: 0 6px 20px rgba(0, 47, 109, .06); border-left: 4px solid var(--acento); }
.callout p:last-child { margin: 0; }
.button {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 12px 28px; border-radius: 999px; background: var(--primario); color: var(--blanco);
  font-weight: 600; font-size: 15.5px; text-decoration: none; text-align: center; transition: background .2s;
}
.button:hover { background: var(--acento); color: var(--blanco); }
.email { display: inline-block; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.annex { border-top: 1px solid var(--linea); margin-top: 56px; }

/* Indice de paginas */
.cards { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.cards li { margin: 0; padding: 0; }
.cards a {
  display: flex; align-items: center; gap: 16px; padding: 22px 22px; min-height: 88px;
  background: var(--blanco); border-radius: 18px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 47, 109, .06); transition: box-shadow .2s, transform .2s;
}
.cards a:hover { box-shadow: 0 12px 30px rgba(0, 47, 109, .14); transform: translateY(-2px); }
.cards .txt { flex: 1; }
.cards strong { display: block; font-family: var(--heading); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--primario); }
.cards small { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--tenue); }
.cards .arrow { color: var(--acento); font-size: 22px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--primario); color: var(--palido); padding: 48px 0 32px; font-size: 14.5px; }
.footer-brand img { display: block; width: 148px; height: auto; }
.tagline { font-style: italic; font-size: 17px; line-height: 1.6; color: var(--palido); margin: 14px 0 0; }
.footer-cols { display: grid; gap: 28px; margin-top: 36px; }
.footer-cols h4 { margin: 0 0 6px; color: var(--blanco); font-size: 14.5px; font-weight: 700; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0; padding: 0; }
.footer-cols a { display: flex; align-items: center; min-height: 40px; color: color-mix(in srgb, var(--palido) 85%, var(--primario)); text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--blanco); text-decoration: underline; }
.legal-line { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 20px; font-size: 12.5px; color: color-mix(in srgb, var(--palido) 75%, var(--primario)); }
.legal-line p { margin: 0; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 17.5px; }
  .site-nav { padding-top: 24px; }
  .pill { padding-left: 28px; }
  .pill .logo img { width: 104px; }
  .menu { display: none; }
  .pill .links { display: flex; align-items: center; gap: 4px; }
  .pill .links a { padding: 10px 14px; border-radius: 999px; color: var(--primario); font-weight: 600; font-size: 14.5px; text-decoration: none; }
  .pill .links a:hover, .pill .links a[aria-current="page"] { background: var(--nieve); }
  .pill .links a.cta { margin-left: 10px; padding: 12px 26px; background: var(--primario); color: var(--blanco); }
  .pill .links a.cta:hover { background: var(--acento); }
  .page-head { padding-top: 72px; }
  .content { padding-top: 40px; }
  h2 { margin-top: 58px; }
  .button { display: inline-flex; }
  .toc { max-width: 620px; }

  thead { display: table-header-group; }
  table { font-size: 15.5px; }
  tr { display: table-row; padding: 0; border: 0; }
  tbody tr:first-child { border-top: 0; }
  th, td { display: table-cell; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
  thead th { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); border-bottom: 1px solid var(--primario); padding-bottom: 10px; }
  tbody th { width: 34%; margin: 0; }

  .cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
}
