/* JA: integración real de los SVG originales y accesibilidad visual. */
:root{--ja-dark:#102547;--ja-deep-purple:#512776;--ja-lavender:#9781d0;--ja-cream:#f9eed6;--ja-sky:#759bd3}
body{background:#fff;color:var(--ja-dark)}
.hero{background:#fbf7ff}.hero-inner{grid-template-columns:minmax(0,1.5fr) minmax(220px,.72fr);gap:36px}
.hero-photo{aspect-ratio:16/10;max-height:240px;background-size:cover;background-position:55% 48%}
.hero-copy{padding:0}.hero h1{line-height:1.16}.site-header{box-shadow:0 3px 18px #10254710}
.services{grid-template-columns:repeat(3,minmax(0,1fr))}
.service{min-height:112px;background:#fffaf2}
.value-icon{display:block;width:40px;height:40px;margin-bottom:12px}
.title-icon{width:32px;height:32px;vertical-align:middle;margin-right:10px;object-fit:contain}
.course-resources{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;border-top:1px solid #e2d6eb;padding-top:12px}
.resource-tag{display:inline-flex;align-items:center;gap:3px;font-size:.75rem;color:#22355a;font-weight:700}
.resource-tag img{width:17px;height:17px}
.course-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px;transform:none}
.course{min-width:0;flex-basis:auto;min-height:0;padding:20px;display:flex;flex-direction:column;gap:12px;overflow-wrap:break-word}
.city-card{background:#1d365c}
.panel{box-shadow:0 4px 16px #11234410}

@media(max-width:800px){.hero-inner{grid-template-columns:1fr}.hero-photo{display:none}}
@media(max-width:640px){.services{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{box-shadow:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Cursos: columnas según el espacio real de Academia, no según el ancho de ventana. */
.course-heading{display:block;margin-top:28px;margin-bottom:16px}
.course-heading h3{margin-bottom:6px}
.course-heading .section-intro{margin-bottom:0}
.course-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.course-top>img{width:40px;height:40px;object-fit:contain;margin:0;flex-shrink:0}
.course .price{position:static;display:inline-block;max-width:100%;padding:6px 10px;line-height:1.35;font-size:.875rem;overflow-wrap:normal}
.course h4{font-size:1.1rem;line-height:1.4;margin:0;padding:0}
.course p{font-size:1rem;line-height:1.55;margin:0}
.course a{display:flex;align-items:center;min-height:44px;margin-top:auto;align-self:flex-start;text-underline-offset:3px}
.course-resources{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:0;padding-top:12px}
.resource-tag{font-size:.875rem;gap:5px;line-height:1.5;font-weight:600}
.course .resource-tag img{width:20px;height:20px;object-fit:contain;margin:0;flex-shrink:0}
.contact{align-items:center;grid-template-columns:minmax(0,1fr) auto;gap:24px}
.contact .btn{justify-self:start;min-width:170px}
@media(max-width:640px){.course-track{grid-template-columns:minmax(0,1fr)}.course{padding:18px}.contact{grid-template-columns:minmax(0,1fr)}.contact .btn{width:100%}}

/* Tarjetas de lectura amplia: 320 px mínimos cuando hay varias columnas.
   Una columna dentro de Academia cuando comparte el ancho con Agencia. */
.course-track{grid-template-columns:minmax(0,1fr);gap:16px}
.course{padding:22px;gap:10px}
.course h4{font-size:1.125rem;line-height:1.4}
.course-top{justify-content:space-between}
.course a{margin-top:0}
.course-resources{gap:10px 18px}
.footer .contact-number{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:8px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:640px){.course{padding:18px}}
@media(max-width:980px) and (min-width:760px){.course-track{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}}
/* Menú y pie sin desbordamiento en pantallas estrechas. */
.sr{width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}
@media(max-width:980px){.nav{min-height:75px}.menu-button{display:block;border:1px solid #8063a1;background:#fff;border-radius:8px;padding:9px 14px;min-height:44px;font-size:1.2rem;color:#35204b}.nav nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:18px;box-shadow:0 8px 20px #0002;flex-direction:column;align-items:start;gap:14px}.nav nav.show{display:flex}.nav nav a{display:flex;align-items:center;min-height:44px}}
@media(max-width:640px){.footer-grid{grid-template-columns:minmax(0,1fr)}.footer-grid>div{min-width:0}.footer .btn{max-width:100%}}
