/* Guías educativas (/guias/*): HTML estático sin runtime, mismos colores y tipografía del sitio. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #ffffff; color: #1f2933; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
a { color: #0f7a6b; -webkit-tap-highlight-color: rgba(43,174,154,0.18); }
a:hover { color: #0f4c5c; }
:focus-visible { outline: 3px solid #2bae9a; outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 24px; }
img { max-width: 100%; height: auto; }

.g-pad { padding-left: max(clamp(18px, 4vw, 52px), env(safe-area-inset-left)); padding-right: max(clamp(18px, 4vw, 52px), env(safe-area-inset-right)); }
.g-ancho { max-width: 1240px; margin: 0 auto; }
.g-texto { max-width: 820px; margin: 0 auto; }

/* Cabecera */
.g-cab { background: #f6fbfa; padding-top: env(safe-area-inset-top); }
.g-barra { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; }
.g-barra img { height: 32px; width: auto; max-width: 168px; display: block; }
.g-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); flex-wrap: wrap; justify-content: flex-end; }
.g-nav a.g-enlace { color: #1f2933; text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.g-nav a.g-enlace:hover { color: #0f7a6b; }
@media (max-width: 560px) { .g-nav a.g-enlace { display: none; } }
.g-boton { background: #0f4c5c; color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 700; padding: 12px 24px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: background 160ms ease, transform 120ms ease; }
.g-boton:hover { background: #136a7e; color: #ffffff; }
.g-boton:active { transform: scale(0.97); }
.g-boton-claro { background: #2bae9a; color: #04302b; text-decoration: none; font-size: 16px; font-weight: 700; padding: 16px 32px; border-radius: 999px; display: inline-block; transition: background 160ms ease, transform 120ms ease; }
.g-boton-claro:hover { background: #3cc2ad; color: #04302b; }
.g-boton-claro:active { transform: scale(0.97); }

.g-heroe { padding: clamp(10px, 3vw, 30px) 0 clamp(44px, 7vw, 80px); }
.g-migas { font-size: 13px; color: #4b5a63; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.g-migas a { color: #4b5a63; text-decoration: none; }
.g-migas a:hover { color: #0f7a6b; text-decoration: underline; }
.g-etiqueta { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0f7a6b; }
.g-heroe h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20px; text-wrap: pretty; }
.g-entrada { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #4b5a63; margin: 0 0 18px; max-width: 62ch; }
.g-fecha { font-size: 13px; color: #4b5a63; margin: 0; }

/* Cuerpo */
.g-cuerpo { padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(20px, 4vw, 40px); font-size: 17px; line-height: 1.75; }
.g-cuerpo h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 800; color: #0f4c5c; margin: clamp(44px, 6vw, 64px) 0 16px; text-wrap: pretty; }
.g-cuerpo h3 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; font-weight: 700; margin: 28px 0 10px; }
.g-cuerpo p { margin: 0 0 16px; }
.g-cuerpo ul, .g-cuerpo ol { margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 8px; }
.g-cuerpo li { padding-left: 4px; }
.g-cuerpo strong { color: #0f4c5c; }

.g-resumen { background: #f6fbfa; border: 1px solid #d7ece8; border-radius: 22px; padding: clamp(20px, 3vw, 30px); margin: 0 0 32px; }
.g-resumen h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; color: #0f7a6b; text-transform: uppercase; letter-spacing: 0.08em; }
.g-resumen ul { margin: 0; }

.g-indice { border-left: 3px solid #2bae9a; padding: 4px 0 4px 20px; margin: 0 0 12px; }
.g-indice p { margin: 0 0 8px; font-weight: 700; }
.g-indice ol { margin: 0; gap: 4px; font-size: 16px; }

.g-tabla { width: 100%; overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.g-tabla table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.g-tabla th, .g-tabla td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #e3ecea; }
.g-tabla th { background: #0f4c5c; color: #ffffff; font-weight: 700; }
.g-tabla th:first-child { border-top-left-radius: 12px; }
.g-tabla th:last-child { border-top-right-radius: 12px; }
.g-nota { font-size: 14px; color: #4b5a63; line-height: 1.6; }

.g-aviso { background: #fff8eb; border: 1px solid #f1dcb0; border-radius: 18px; padding: 18px 22px; margin: 0 0 18px; font-size: 16px; }
.g-aviso p:last-child { margin-bottom: 0; }

.g-cta { background: #0f4c5c; color: #ffffff; border-radius: 26px; padding: clamp(26px, 4vw, 44px); margin: clamp(40px, 6vw, 60px) 0; }
.g-cta h2 { color: #ffffff; margin: 0 0 12px; }
.g-cta p { color: rgba(255,255,255,0.85); margin: 0 0 22px; }
.g-cta small { display: block; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.7); }

.g-faq { display: grid; gap: 12px; margin: 0 0 18px; }
.g-faq details { background: #f6fbfa; border-radius: 20px; padding: 4px 22px; }
.g-faq summary { cursor: pointer; font-weight: 700; font-size: clamp(16px, 1.7vw, 18px); padding: 16px 0; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; flex: none; font-size: 20px; color: #0f7a6b; }
.g-faq details[open] summary::after { content: "–"; }
.g-faq details p { margin: 0 0 18px; color: #4b5a63; font-size: 16px; line-height: 1.65; }

.g-fuentes { font-size: 14px; line-height: 1.6; color: #4b5a63; }
.g-fuentes ol { gap: 6px; }
.g-fuentes a { word-break: break-word; }

.g-relacionadas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 18px; }
.g-tarjeta { display: block; background: #f6fbfa; border: 1px solid #d7ece8; border-radius: 20px; padding: 20px 22px; text-decoration: none; color: #1f2933; transition: border-color 160ms ease, transform 120ms ease; }
.g-tarjeta:hover { border-color: #2bae9a; color: #1f2933; }
.g-tarjeta:active { transform: scale(0.98); }
.g-tarjeta strong { display: block; font-size: 17px; line-height: 1.3; margin: 0 0 6px; color: #0f4c5c; }
.g-tarjeta span { display: block; font-size: 15px; line-height: 1.5; color: #4b5a63; }

/* Pie */
.g-pie { background: #0f4c5c; color: #ffffff; margin-top: clamp(60px, 9vw, 110px); padding-top: clamp(46px, 7vw, 86px); padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
.g-pie-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(24px, 4vw, 50px); padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 15px; }
.g-pie-cols > div { display: grid; align-content: start; }
.g-pie-cols img { height: 32px; width: auto; max-width: 168px; display: block; margin: 0 0 14px; }
.g-pie a { color: rgba(255,255,255,0.85); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.g-pie a:hover { color: #ffffff; text-decoration: underline; }
.g-pie p { margin: 0; color: rgba(255,255,255,0.85); }
.g-pie .g-pie-titulo { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 700; margin: 0 0 6px; }
.g-legal { padding-top: 28px; display: grid; gap: 12px; max-width: 95ch; font-size: 12.5px; line-height: 1.65; }
.g-legal p { color: rgba(255,255,255,0.62); }
.g-legal .g-legal-enlaces { display: flex; flex-wrap: wrap; gap: 0 26px; }
.g-legal .g-legal-enlaces a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; display: inline-flex; }
