:root{--ink:#2d3f52;--paper:#fff;--green:#17aeb9;--dark:#2c3e51;--blue:#17aeb9;--accent:#17aeb9}
body{background:#fff;color:#5f6d7b;font-family:Arial,"Segoe UI",sans-serif}
.shell{width:min(100% - 40px,1140px)}
.site-header{border:0;background:white}.header-inner{height:94px;gap:20px}.brand img{display:block;width:345px;max-width:100%;height:auto}.header-nav{gap:30px}.header-nav a{font-size:13px;color:#2e4054;font-weight:500}.header-nav a:hover{color:#16aeb9}.header-cta{display:none}
.hero{background:#fff url('home-bg.jpg') no-repeat center 170px;background-size:1920px auto;overflow:visible}.hero-inner{padding-top:8px;padding-bottom:8px}.hero h1{text-align:center;color:#657484;font-size:29px;line-height:1.4;letter-spacing:-.025em;font-weight:400;max-width:750px;margin:0 auto 34px}.form-frame{width:min(922px,100%);margin:0 auto;box-shadow:0 2px 5px #0005;border:0;background:#fff;padding:45px 80px 34px}.form-frame>p{font-size:14px;line-height:1.65;color:#647281;margin:0 0 20px}.setup-form{gap:18px}.identity-inputs{display:grid;grid-template-columns:1fr 1fr;gap:14px}.setup-form label{font-size:13px;color:#a3afb5;font-weight:400;gap:3px}.setup-form input[type=text],.setup-form input[type=email]{height:42px;background:#f0f0f0;border:0;border-radius:0;font-size:12px;color:#465768}.setup-form input::placeholder{color:#84949c}.program-choices{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(9,auto);gap:3px 22px;border:0;padding:0;margin:2px 0 4px;min-width:0}.program-choices legend{position:absolute;left:-10000px}.program-choices label{display:flex;gap:4px;align-items:center;color:#9ca8ad;font-size:14px;line-height:1.35;cursor:pointer;white-space:nowrap}.program-choices input[type=radio]{width:14px;height:14px;margin:0;accent-color:#1583f9}.program-choices label:hover span{color:#357ab0}.primary-button{width:240px;min-height:38px;margin:auto;justify-content:center;background:#19aeb9;color:white;font-size:13px;font-weight:700}.primary-button:hover{background:#138c99}.programs-section{max-width:790px;padding:38px 0 140px;font-size:14px;line-height:1.65}.programs-section>p:first-child{margin:0 auto 25px}.programs-section>p:nth-child(2){margin:0 auto 17px}.program-list{border:0;display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(9,auto);gap:4px 35px}.program-row{display:flex;min-height:0;padding:0;gap:10px;border:0;color:#3d8bc6;text-decoration:none}.program-row:hover{background:none;padding:0;text-decoration:underline}.program-mark{width:16px;height:16px;min-width:16px;border-radius:50%;background:#15b2be;color:white;font-size:11px;font-weight:700}.program-title{font-size:14px;font-weight:400;letter-spacing:0}.site-footer{padding:0;background:none}.footer-logo-band{background:#2e4054;padding:37px 0}.footer-logo-band img{width:345px;max-width:100%;height:auto;display:block}.footer-content{background:#2c2c2c;color:white;padding:75px 0 82px}.footer-grid{display:grid;grid-template-columns:330px 1fr;gap:70px;align-items:start}.footer-grid h2{font-size:22px;letter-spacing:-.03em;color:white;margin:0 0 18px}.footer-grid p{font-size:13px;line-height:1.75;color:#fff;margin:0}.footer-grid nav{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding-top:8px}.footer-grid nav a{font-size:13px;font-weight:700;color:white;text-decoration:none}.footer-bottom{background:#18aeb9;color:#fff;text-align:center;font-size:12px;padding:21px 10px}.guide-header h1,.simple-page h1{color:#2d4054}.guide-header .overline,.simple-page .overline,.step-number{color:#17aeb9}.guide-intro,.notice{background:#e9f7f7}.screen-wrap{background:#eaf1f2}.settings-card{border-color:#d6e2e4}.guide-end{background:#2e4054}.contact-card a{color:#2184a0}
@media(max-width:950px){.header-nav{gap:15px}.header-nav a{font-size:11px}.brand img{width:275px}.hero{background-position:center 175px;background-size:1500px auto}.form-frame{padding:35px 42px}}
@media(max-width:760px){.shell{width:min(100% - 28px,620px)}.header-inner{height:auto;min-height:72px;flex-wrap:wrap;justify-content:center;padding:15px 0}.brand img{width:280px}.header-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:7px 15px;margin:0}.header-nav a{font-size:10px}.hero{background-position:center 130px;background-size:1200px auto}.hero-inner{padding-top:26px}.hero h1{font-size:23px;line-height:1.35;margin-bottom:25px}.hero h1 br{display:none}.form-frame{padding:26px 20px}.identity-inputs{grid-template-columns:1fr}.program-choices{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:auto;gap:8px}.program-choices label{white-space:normal}.programs-section{padding:45px 5px 85px}.program-list{grid-template-columns:1fr 1fr;gap:8px 15px}.program-title{font-size:13px}.footer-logo-band{padding:26px 0}.footer-logo-band img{width:280px}.footer-content{padding:45px 0}.footer-grid{display:block}.footer-grid nav{padding-top:25px;gap:15px}.footer-grid nav a{font-size:11px}}
@media(max-width:460px){.program-list{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:auto}.footer-grid nav{grid-template-columns:1fr}.hero h1{font-size:21px}}
.hero{background-position:center 0}
/* Portada: selección breve y acceso claro al catálogo histórico. */
.program-choices{grid-template-rows:repeat(4,auto)}
.program-choices-extra{grid-template-rows:repeat(6,auto);margin:14px 0 0;padding:0}
.program-choices label{color:#475a66;min-height:31px;font-size:14px;gap:9px}
.program-choices label:has(input:checked){color:#204b5e;font-weight:700}
.program-choices input[type=radio]{width:17px;height:17px;min-width:17px;accent-color:#17aeb9}
.program-list{grid-template-rows:repeat(4,auto)}
.more-programs{border:1px solid #ccdce1;background:#f7fbfb;margin:0 0 3px}
.more-programs>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;color:#2d4054;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.more-programs>summary::-webkit-details-marker{display:none}
.more-programs>summary:before{content:'+';display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid #19aeb9;color:#178c9c;font-size:18px;font-weight:400;line-height:1;flex:none}
.more-programs[open]>summary:before{content:'−'}
.more-programs>summary span{margin-right:auto}
.more-programs>summary small{font-size:12px;font-weight:400;color:#566f78}
.more-programs[open]>summary{border-bottom:1px solid #dce9eb}
.more-programs .program-choices{padding:10px 16px 16px}
.form-version-note{font-size:12px;line-height:1.5;color:#526775;margin:0;border-left:3px solid #18aeb9;padding-left:11px}
.more-programs-list{margin-top:21px;background:#fff}
.more-programs-list .program-list{padding:16px;grid-template-rows:repeat(6,auto)}
.more-programs-list .program-row{padding:5px 0;min-height:29px}
.programs-section>p:nth-child(2){font-weight:700;color:#3c4f5d}
@media(max-width:760px){.program-choices,.program-choices-extra{grid-template-columns:1fr 1fr;grid-auto-flow:row;grid-template-rows:auto}.program-list,.more-programs-list .program-list{grid-auto-flow:row;grid-template-rows:auto}}
@media(max-width:560px){.program-choices,.program-choices-extra{grid-template-columns:1fr}.program-list,.more-programs-list .program-list{grid-template-columns:1fr}.more-programs>summary{font-size:13px}.more-programs>summary small{font-size:11px}}
.language-switch{display:flex;align-items:center;gap:6px;margin-left:14px;font-size:12px;font-weight:700;color:#798994;white-space:nowrap}
.language-switch a{color:#5d7180;text-decoration:none;padding:8px 2px}
.language-switch a[aria-current=true]{color:#087f8e;border-bottom:2px solid #14b1bb}
.language-switch a:hover{color:#087f8e}
@media(max-width:760px){.language-switch{margin-left:0}.header-nav{order:3;width:100%}.header-inner{justify-content:space-between}.brand img{width:min(280px,68vw)}}
@media(max-width:390px){.brand img{width:min(250px,66vw)}.language-switch{gap:4px}}
/* Legibilidad y distribución al pasar de escritorio a tableta y móvil. */
.setup-form label{color:#536a77}
.setup-form input[type=text],.setup-form input[type=email]{font-size:14px}
.form-version-note{font-size:13px}
@media(max-width:1050px){.header-inner{height:auto;min-height:94px;flex-wrap:wrap;padding:15px 0;gap:6px 20px}.header-nav{order:3;width:100%;margin-left:0;justify-content:center}.header-nav a{font-size:12px}.language-switch{margin-left:auto}}
@media(max-width:560px){.header-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;text-align:center}.header-nav a{font-size:11px;padding:8px 0}.hero-inner{padding-top:22px}.form-frame{padding:25px 18px}.form-version-note{font-size:12px}}
.guide-language-note,.guide-status-note{border-left:3px solid #19aeb9;background:#f2f8f9;color:#344c58;padding:11px 15px;font-size:13px;line-height:1.55;margin:14px 0 20px}
.guide-status-note{border-left-color:#d3a34f;background:#fff9ec}
.more-programs>summary small{white-space:nowrap}

/* El programa se elige con tarjetas que funcionan como radios accesibles. */
.program-choices,.program-choices-extra{gap:10px 12px;grid-auto-rows:minmax(52px,auto)}
.setup-form>.program-choices{grid-template-rows:repeat(4,auto)}
.programs-section>.program-list{grid-template-rows:repeat(4,auto)}
.more-programs .program-choices-extra,.more-programs-list .program-list{grid-template-rows:repeat(5,auto)}
@media(max-width:760px){.setup-form>.program-choices,.programs-section>.program-list,.more-programs .program-choices-extra,.more-programs-list .program-list{grid-template-rows:auto}}
.program-choices label{position:relative;display:block;min-height:0;white-space:normal}
.program-choices input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.program-choices label span{display:flex;align-items:center;gap:11px;width:100%;height:100%;min-height:52px;padding:10px 14px;border:1px solid #cbdde1;border-radius:7px;background:#fff;color:#344f5c;font-size:14px;font-weight:600;line-height:1.3;box-shadow:0 2px 5px #193c490d;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.program-choices label span::before{content:'';display:block;width:17px;height:17px;min-width:17px;border:2px solid #8da9b2;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #fff}
.program-choices label:hover span{background:#f1fbfc;border-color:#61bec6;box-shadow:0 4px 12px #0b829126;transform:translateY(-1px)}
.program-choices input[type=radio]:checked + span{background:#e5f8f9;border-color:#11a9b4;color:#154e5c;box-shadow:0 0 0 2px #18b0bb4d,0 5px 14px #0b829120}
.program-choices input[type=radio]:checked + span::before{border-color:#0c98a5;background:#0c98a5}
.program-choices input[type=radio]:focus-visible + span{outline:3px solid #246eae;outline-offset:3px}
.more-programs .program-choices{padding:14px 16px 17px}

/* El menú conserva los enlaces de cada idioma y admite más opciones sin ensanchar la cabecera. */
.language-switch{position:relative;margin-left:auto;font-size:12px;white-space:nowrap;z-index:5}
.language-switch details{position:relative}
.language-switch summary{display:flex;align-items:center;justify-content:space-between;gap:11px;min-width:105px;padding:8px 11px;border:1px solid #d8e5e7;border-radius:6px;color:#365766;background:#fff;font-weight:600;cursor:pointer;list-style:none}
.language-switch summary::-webkit-details-marker{display:none}
.language-switch summary:hover,.language-switch details[open] summary{border-color:#91cdd1;color:#087f8e}
.language-chevron{display:block;width:12px;height:12px;flex:none;color:#536b78;transition:transform .18s ease}
.language-switch details[open] .language-chevron{transform:rotate(180deg)}
.language-options{position:absolute;right:0;top:calc(100% + 5px);min-width:145px;padding:5px;border:1px solid #d8e5e7;border-radius:7px;background:#fff;box-shadow:0 8px 20px #203c4a1c}
.language-options a{display:block;padding:8px 10px;border-radius:4px;color:#365766;text-decoration:none;font-weight:500}
.language-options a[aria-current=page]{color:#087f8e;background:#e9f7f7;font-weight:700}
.language-options a:hover{background:#d8f1f3;color:#174d59}
.language-switch summary:focus-visible,.language-options a:focus-visible{outline:2px solid #246eae;outline-offset:2px}
@media(max-width:760px){.language-switch{margin-left:auto}}
@media(max-width:950px){.hero{background-position:center 155px}}
@media(max-width:560px){.header-inner{justify-content:center;gap:9px}.brand{display:flex;justify-content:center;width:100%}.brand img{width:min(280px,82vw)}.language-switch{margin:0}.program-choices,.program-choices-extra{grid-auto-rows:minmax(47px,auto)}.program-choices label span{min-height:47px}.hero{background-position:center 195px}}
@media(max-width:350px){.brand img{width:min(250px,82vw)}}

/* Las dos selecciones de la portada mantienen dos columnas también en móvil. */
.setup-form>.program-choices,.more-programs .program-choices-extra,
.programs-section>.program-list,.more-programs-list .program-list{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:auto;
  grid-auto-flow:row;
}
@media(max-width:560px){
  .program-choices label span{padding:9px 8px;font-size:12px;gap:7px;overflow-wrap:anywhere}
  .programs-section .program-row{gap:8px;min-width:0}
  .programs-section .program-title{font-size:14px;overflow-wrap:anywhere}
  .programs-section .program-mark{width:28px;height:28px}
}
