/* Meta Saint Thomas · versión integrada al sitio institucional */
:root {
  --wine: #611427;
  --wine-deep: #4e0711;
  --wine-night: #250b1a;
  --gold: #D6C49A;
  --gold-bright: #ffcf4d;
  --cream: #fff9ed;
  --ink: #25202a;
  --muted: #6f6573;
  --blue: #174a96;
  --border: #ebdfe0;
  --shadow: 0 20px 55px rgba(49, 14, 26, .10);
  --rounded: 24px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #df8700; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 300; background: #fff; padding: 12px 20px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
section[id], div[id], #tabla-curso { scroll-margin-top: 156px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.13; }
h2 { font-size: clamp(2rem, 4.3vw, 3.25rem); letter-spacing: -.044em; margin-bottom: 19px; }
h2 span { color: var(--wine); }
.section { padding-block: 100px; }
.section-heading { max-width: 725px; margin-bottom: 36px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading p:last-child { color: var(--muted); font-size: 1.07rem; max-width: 670px; }
.eyebrow { color: var(--wine); font-size: .74rem; font-weight: 850; letter-spacing: .15em; margin-bottom: 16px; text-transform: uppercase; }
.muted { color: var(--muted); }
.mini-text { font-size: .86rem; }
/* Cabecera institucional: isologo original, sin modificaciones */
.site-header { background:#fff; border-bottom:1px solid #e6dad5; position:sticky; top:0; z-index:70; box-shadow:0 3px 18px rgba(33,12,20,.09); }
.site-header::after { content:""; display:block; height:3px; background:linear-gradient(90deg,#611427 0 25%,#D6C49A 25% 75%,#611427 75%); }
.header-inner { display:flex; align-items:center; gap:26px; min-height:91px; }
.school-brand { display:flex; align-items:center; flex:0 0 auto; text-decoration:none; }
.school-brand img { display:block; width:245px; height:auto; object-fit:contain; }
.desktop-nav { display:flex; justify-content:flex-end; align-items:center; gap:6px; margin-left:auto; }
.desktop-nav a { font-size:.88rem; font-weight:700; color:#49323a; text-decoration:none; padding:11px 8px; border-radius:7px; white-space:nowrap; transition:background .2s,color .2s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { background:#f6ecec; color:#611427; }
.external-icon { font-size:.75rem; }
.menu-toggle { display:none; align-items:center; justify-content:center; flex-direction:column; gap:5px; padding:10px; width:45px; height:45px; border-radius:9px; border:1px solid #ded0ce; background:#fff; margin-left:auto; cursor:pointer; }
.menu-toggle span { display:block; width:22px; height:2px; background:#611427; border-radius:2px; transition:transform .2s,opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform:translateY(-7px) rotate(-45deg); }
.mobile-nav { background:#fff; padding:10px 24px 20px; border-top:1px solid #e6dad5; max-height:min(75vh,640px); overflow-y:auto; }
.mobile-nav a { display:block; padding:12px 5px; color:#492c38; border-bottom:1px solid #f3eded; text-decoration:none; font-size:.98rem; font-weight:650; }
.mobile-nav a:last-child { border-bottom:0; }
.program-nav { background:#611427; color:#fff; position:sticky; top:94px; z-index:60; box-shadow:0 6px 15px rgba(21,8,12,.09); }
.program-nav-inner { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:47px; }
.program-nav-title { font-size:.77rem; font-weight:850; color:#f8ddb0; letter-spacing:.08em; white-space:nowrap; }
.program-nav-title span { font-size:1.06rem; vertical-align:middle; color:#f9cc68; }
.program-nav-links { display:flex; gap:1px; overflow-x:auto; scrollbar-width:thin; }
.program-nav-links a { color:#f9f0ee; padding:13px 12px; text-decoration:none; font-size:.82rem; font-weight:700; white-space:nowrap; }
.program-nav-links a:hover, .program-nav-links a:focus-visible { background:rgba(255,255,255,.14); }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:#e8d6ce; font-size:.8rem; margin-bottom:34px; }
.breadcrumb a { text-decoration:none; color:#f9ddb0; }
.breadcrumb a:hover { text-decoration:underline; }
/* Hero */
.hero { color: #fff; background: radial-gradient(ellipse at 87% 27%, rgba(45, 90, 179, .77) 0%, rgba(17,45,100,.7) 27%, transparent 60%), linear-gradient(119deg, #600414 1%, #3c081b 52%, #142b5e 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(251,205,88,.33) 1px, transparent 1.5px); background-size: 40px 40px; opacity: .19; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 700px; height: 700px; border: 1px solid rgba(255,230,130,.1); border-radius: 50%; left: -390px; top: -190px; pointer-events: none; box-shadow: 0 0 0 100px rgba(255,255,255,.015), 0 0 0 180px rgba(255,255,255,.015); }
.hero-grid { display: grid; grid-template-columns: 1.09fr .91fr; gap: 64px; align-items: center; min-height: 650px; padding-top: 74px; padding-bottom: 107px; position: relative; z-index: 2; }
.hero-copy { position: relative; z-index: 3; }
.hero-eyebrow { color: #fbe1ab; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: .77rem; }
.eyebrow-dot { background: #f1c55c; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(241,197,92,.15); }
h1 { font-size: clamp(3.15rem, 6.35vw, 5.95rem); letter-spacing: -.065em; line-height: 1.045; margin-bottom: 24px; font-weight: 950; }
h1 span { color: var(--gold-bright); }
.hero-lead { font-size: clamp(1.03rem, 1.7vw, 1.2rem); color: #f1e2e6; line-height: 1.7; max-width: 530px; margin-bottom: 30px; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 20px; font-weight: 790; border-radius: 12px; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; text-align: center; font-size: .93rem; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #ffdc79, #f5c14c); color: #4e160a; box-shadow: 0 7px 0 rgba(69,22,20,.18), 0 12px 35px rgba(249,180,50,.12); }
.btn-gold:hover { background: #ffe291; }
.btn-ghost { border: 1.4px solid rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.hero-values { display: flex; flex-wrap: wrap; gap: 13px; color: #f1e4df; font-size: .81rem; margin-top: 45px; font-weight: 700; }
.hero-values span { border-right: 1px solid rgba(255,255,255,.24); padding-right: 14px; }
.hero-values span:last-child { border-right: 0; padding-right: 0; }
.hero-art { max-width: 470px; width: 100%; margin-left: auto; position: relative; isolation: isolate; }
.hero-art-glow { position: absolute; width: 125%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,192,64,.28), transparent 65%); border-radius: 50%; z-index: -1; }
.hero-image-frame { padding: 9px; border: 1px solid rgba(255,216,143,.55); border-radius: 28px; transform: rotate(3deg); background: rgba(255,252,237,.10); box-shadow: 0 25px 65px rgba(0,0,0,.45); overflow: hidden; }
.hero-image-frame img { width: 100%; height: 500px; object-fit: cover; object-position: center 40%; border-radius: 19px; }
.floating-badge { position: absolute; border: 2px solid #ffde8d; background: #65051b; box-shadow: 0 7px 0 #38031a, 0 16px 28px rgba(0,0,0,.25); color: #ffdb7f; letter-spacing: .025em; font-weight: 950; padding: 12px 21px; border-radius: 12px; z-index: 2; }
.top-badge { right: -22px; top: 23px; transform: rotate(9deg); }
.bottom-badge { left: -34px; bottom: 23px; transform: rotate(-8deg); }
.hero-sparkle { position: absolute; color: #eccc75; z-index: 1; opacity: .6; font-size: 36px; }
.hero-sparkle-1 { left: 6%; top: 15%; }
.hero-sparkle-2 { right: 8%; bottom: 13%; font-size: 45px; }
.hero-wave { position: absolute; bottom: -1px; width: 100%; background: #fff; height: 38px; clip-path: polygon(0 69%, 15% 90%, 37% 85%, 56% 52%, 76% 55%, 100% 5%, 100% 100%, 0 100%); }
/* Programa */
.section-program { background: #fff; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 850px; margin: 34px auto 27px; }
.tab { display: flex; text-align: left; align-items: center; gap: 15px; cursor: pointer; padding: 21px 26px; border: 2px solid #e9e1e1; background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(50,12,28,.03); color: #37242d; }
.tab[aria-selected="true"] { background: #fff7e8; border-color: #d4aa4e; box-shadow: 0 0 0 3px rgba(231,197,115,.14), 0 12px 35px rgba(70,24,34,.06); }
.tab-icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; background: #f3e3dc; color: var(--wine); border-radius: 14px; font-size: 1.9rem; }
.tab[aria-selected="true"] .tab-icon { background: var(--wine); color: #f8d06a; }
.tab strong, .tab small { display: block; }
.tab strong { font-size: 1.04rem; }
.tab small { color: var(--muted); margin-top: 3px; font-weight: 620; }
.tab-panel { background: #fff; border: 1px solid #f0e5e5; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.program-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 36px; align-items: center; }
.program-intro h3 { font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -.035em; margin-bottom: 17px; color: var(--wine); }
.program-intro p { line-height: 1.75; max-width: 700px; }
.pill-label { display: inline-block; border-radius: 100px; padding: 7px 12px; font-size: .73rem; font-weight: 860; background: #f9e6c1; color: #6c3509; letter-spacing: .06em; margin-bottom: 15px; }
.program-intro img { height: 252px; width: 100%; object-fit: cover; object-position: center 34%; border-radius: 18px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-top: 21px; }
.benefit-card { background: #fffaf7; border: 1px solid #efdfda; padding: 26px; border-radius: 18px; }
.benefit-card h4 { font-size: 1.28rem; margin: 13px 0 9px; }
.benefit-card p { color: #615961; line-height: 1.65; margin: 0; font-size: .95rem; }
.benefit-card a { display: inline-block; margin-top: 15px; color: var(--wine); font-size: .89rem; font-weight: 850; text-decoration: none; }
.benefit-card a:hover { text-decoration: underline; }
.benefit-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.65rem; font-weight: 800; }
.benefit-icon.green { background: #e5f2de; color: #2d6d28; }
.benefit-icon.blue { background: #e6ebf9; color: var(--blue); }
.benefit-icon.amber { background: #fff1c3; color: #8f5500; }
/* Puntaje personal */
.section-points { background: #fbf7f0; border-top: 1px solid #fbf1eb; }
.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.point-card { background: #fff; border: 1px solid #eedfd6; border-radius: 20px; padding: 25px; position: relative; box-shadow: 0 6px 22px rgba(84,50,35,.045); overflow: hidden; }
.point-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg,var(--wine),var(--gold)); }
.point-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.point-symbol { display: grid; place-items: center; width: 57px; height: 57px; background: #fff1d0; color: #90600c; border: 1px solid #f2dab0; border-radius: 16px; font-size: 1.8rem; font-weight: 900; }
.point-amount { white-space: nowrap; font-size: 1.9rem; font-weight: 950; letter-spacing: -.045em; color: var(--wine); }
.point-amount small { font-size: .77rem; letter-spacing: -.02em; }
.point-card h3 { font-size: 1.13rem; margin-bottom: 10px; letter-spacing: -.015em; }
.point-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.point-card-feature { background: #fff8eb; }
.info-strip { display: flex; align-items: flex-start; gap: 17px; margin-top: 26px; padding: 19px 22px; background: #fff; border: 1px solid #e7d7c1; border-left: 5px solid #e2ac40; border-radius: 15px; }
.info-strip-icon { background: #f1bc4e; color: #5c210c; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: 0 0 29px; }
.info-strip p { margin: 0; font-size: .9rem; color: #554e50; }
/* Tabla curso */
.section-class { background: #fff; }
.class-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 68px; align-items: center; }
.class-info h2 { max-width: 460px; }
.class-info > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.rule-note { background: #f8f1e5; padding: 18px; border-radius: 15px; display: flex; gap: 16px; align-items: center; margin-top: 28px; }
.rule-note span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--gold); color: var(--wine); flex: 0 0 43px; font-size: 1.55rem; }
.rule-note p { margin: 0; font-size: .9rem; }
.table-card { overflow: hidden; border-radius: 24px; border: 1px solid #e8d8c7; box-shadow: var(--shadow); }
.table-card-heading { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; background: var(--wine); padding: 22px 26px; color: #fff; }
.table-card-heading > span:first-child { color: var(--gold-bright); font-size: 1.3rem; }
.table-card-heading h3 { font-size: 1.23rem; margin: 0; }
.table-caption { font-size: .73rem; opacity: .83; margin-left: auto; }
.table-card table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-card th { text-align: left; font-size: .81rem; color: #6c5550; background: #fff0d5; padding: 15px 24px; }
.table-card th:last-child, .table-card td:last-child { text-align: right; }
.table-card td { padding: 14px 24px; border-bottom: 1px solid #f1e9e3; font-size: .92rem; }
.table-card tr:nth-child(even) td { background: #fffbf5; }
.table-card td:last-child { color: var(--wine); font-weight: 860; }
.table-footnote { font-size: .77rem; color: #74666b; padding: 14px 24px 20px; margin: 0; background: #fff; }
/* Premios */
.section-prizes { background: linear-gradient(180deg,#fff9ef 0%, #fff 100%); }
.prize-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; align-items: stretch; }
.prize-card { --tier: #74172a; background: #fff; border: 1px solid #e9dfe0; border-radius: 18px; box-shadow: 0 15px 30px rgba(61,32,31,.085); overflow: hidden; display: flex; flex-direction: column; }
.tier-medium { --tier: #455263; }
.tier-advanced { --tier: #92600e; }
.tier-top { --tier: #733884; }
.prize-header { background: var(--tier); padding: 20px 16px 17px; color: #fff; text-align: center; min-height: 116px; }
.prize-header > span { display: block; font-weight: 880; font-size: .77rem; letter-spacing: .03em; }
.prize-header strong { font-size: 2rem; display: block; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.prize-header small { font-size: .8rem; letter-spacing: 0; }
.prize-card > img { height: 203px; width: 100%; object-fit: cover; object-position: center 73%; }
.prize-body { padding: 21px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.prize-body h3 { font-size: 1.09rem; margin-bottom: 12px; }
.prize-body p { color: #6c5f65; font-size: .88rem; line-height: 1.64; flex: 1; }
.image-button { border: 0; background: #f6edf0; color: var(--wine); padding: 12px 15px; border-radius: 10px; font-weight: 840; cursor: pointer; text-align: center; transition: background .2s ease; }
.image-button:hover { background: #f2dce0; }
.prize-disclaimer { color: #766872; text-align: center; margin: 26px auto 0; max-width: 960px; font-size: .82rem; line-height: 1.65; }
/* Calendario */
.section-dates { background: var(--wine-night); color: #fff; }
.dates-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: start; gap: 92px; }
.dates-heading { position: sticky; top: 130px; }
.dates-heading .eyebrow { color: var(--gold); }
.dates-heading h2 span { color: var(--gold); }
.dates-heading p:last-child { color: #d1bac1; font-size: 1.05rem; line-height: 1.8; }
.timeline { position: relative; padding-left: 12px; }
.timeline::before { content: ''; position: absolute; left: 34px; top: 18px; bottom: 42px; width: 2px; background: linear-gradient(#edc56c,rgba(232,194,109,.1)); }
.timeline-item { display: flex; gap: 22px; position: relative; margin-bottom: 30px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-number { flex: 0 0 46px; width: 46px; height: 46px; background: #f3d07c; color: #6b1921; border-radius: 13px; display: grid; place-items: center; font-weight: 950; box-shadow: 0 0 0 7px var(--wine-night); z-index: 2; }
.timeline-item h3 { margin-bottom: 6px; font-size: 1.12rem; }
.timeline-item p { color: #d8c6ce; font-size: .96rem; margin: 0; }
/* Galería */
.section-gallery { background: #fff; }
.gallery-category { margin-top: 38px; }
.gallery-category > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 17px; border-bottom: 1px solid #f1e9e9; padding-bottom: 13px; }
.gallery-category h3 { margin: 0; font-size: 1.38rem; color: #49313b; }
.gallery-category > div:first-child > span { color: #8d8084; font-size: .81rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 15px; }
.gallery-grid.additional { grid-template-columns: repeat(5, minmax(0,1fr)); }
.gallery-tile { appearance: none; background: #fff; border: 1px solid #e9e1e0; border-radius: 14px; padding: 0 0 12px; overflow: hidden; cursor: zoom-in; text-align: left; box-shadow: 0 5px 16px rgba(74,30,40,.055); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(74,30,40,.12); }
.gallery-tile img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top center; }
.gallery-tile span { display: block; padding: 11px 12px 0; color: #56464d; font-size: .81rem; font-weight: 760; }
/* FAQ */
.section-faq { background: #fbf7f2; }
.faq-layout { display: grid; grid-template-columns: .77fr 1.23fr; gap: 80px; }
.faq-layout > div:first-child > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid #e6d8d7; }
.faq-list details { border-bottom: 1px solid #e6d8d7; }
.faq-list summary { list-style: none; cursor: pointer; position: relative; font-weight: 780; padding: 22px 42px 22px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 7px; top: 17px; font-size: 1.6rem; color: var(--wine); line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 28px 24px 0; font-size: .95rem; line-height: 1.72; color: var(--muted); }
/* Consulta */
.section-contact { background: #fff; }
.contact-panel { background: radial-gradient(ellipse at 78% 51%,rgba(45,63,133,.68),transparent 48%),linear-gradient(120deg,#700316,#42051a 82%); border-radius: 30px; min-height: 440px; color: #fff; position: relative; overflow: hidden; display: flex; align-items: center; padding: 65px 60px; }
.contact-copy { position: relative; z-index: 2; max-width: 610px; }
.contact-copy .eyebrow { color: #eacf89; }
.contact-copy h2 { font-size: clamp(2rem,4.5vw,3.45rem); }
.contact-copy h2 span { color: var(--gold-bright); }
.contact-copy p:not(.eyebrow) { color: #eadde2; max-width: 540px; font-size: 1rem; }
.contact-copy .contact-small { font-size: .87rem !important; opacity: .87; }
.contact-copy .btn { margin-top: 15px; }
.contact-panel > img { position: absolute; top: 50%; right: 57px; width: 265px; max-width: 31%; height: 355px; border-radius: 17px; object-fit: cover; transform: translateY(-50%) rotate(6deg); box-shadow: 0 17px 38px rgba(0,0,0,.28); border: 5px solid rgba(255,255,255,.22); }
.contact-decoration { position: absolute; font-size: 23rem; font-weight: 900; color: rgba(255,255,255,.035); right: 24%; top: -21%; }
/* Pie institucional */
.site-footer { background:#191216; border-top:5px solid #D6C49A; color:#f5eeee; padding:55px 0 18px; }
.footer-top { display:grid; grid-template-columns:1.5fr .8fr .9fr 1.1fr; gap:36px; padding-bottom:48px; }
.footer-logo { display:block; background:#fff; border-radius:9px; padding:12px; max-width:285px; }
.footer-logo img { width:100%; height:auto; }
.footer-identity p { font-size:.9rem; color:#cebfc3; margin:18px 0 0; max-width:255px; }
.footer-column { display:flex; flex-direction:column; gap:11px; }
.footer-column h2 { font-size:1rem; margin:2px 0 9px; letter-spacing:0; color:#f4d591; }
.footer-column a, .footer-column address { font-size:.85rem; text-decoration:none; color:#ebdde0; line-height:1.5; }
.footer-column address { font-style:normal; }
.footer-column a:hover { color:#f4d591; text-decoration:underline; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); display:flex; justify-content:space-between; gap:15px; padding-top:18px; font-size:.77rem; color:#bdafb3; }
/* Visor de afiches */
.image-dialog { padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; width: min(93vw,700px); max-height: 92vh; background: #210d18; color: #fff; overflow: hidden; box-shadow: 0 25px 100px rgba(0,0,0,.45); }
.image-dialog::backdrop { background: rgba(18,8,12,.85); backdrop-filter: blur(5px); }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 17px; }
.dialog-bar strong { font-size: .95rem; }
.dialog-bar button { border: 1px solid #7b6a75; border-radius: 9px; color: #fff; background: transparent; cursor: pointer; font-weight: 850; min-width: 38px; min-height: 38px; }
.dialog-image-wrap { overflow: auto; max-height: calc(92vh - 116px); background: #160b10; }
.dialog-image-wrap img { width: min(100%,540px); height: auto; margin: auto; }
.dialog-actions { background: #210d18; padding: 11px 17px 14px; text-align: center; }
.dialog-actions a { color: #f7cd70; font-size: .87rem; font-weight: 750; text-decoration: none; }
@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: .82rem; }
  .header-contact { padding: 11px 12px; }
  .hero-grid { gap: 25px; }
  .hero-image-frame img { height: 440px; }
  .class-layout { gap: 38px; }
  .dates-layout { gap: 60px; }
  .contact-panel > img { right: 24px; }
}
@media (max-width: 900px) {
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 28px; min-height: auto; padding-top: 90px; padding-bottom: 96px; }
  .hero-image-frame img { height: 385px; }
  .hero-values { margin-top: 28px; }
  .point-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .class-layout { grid-template-columns: 1fr; gap: 30px; }
  .class-info h2 { max-width: 100%; }
  .prize-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prize-card > img { height: 240px; }
  .dates-layout { gap: 45px; }
  .faq-layout { gap: 35px; }
  .gallery-grid, .gallery-grid.additional { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .contact-panel > img { max-width: 28%; }
  .contact-copy { max-width: 65%; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 30px, 1180px); }
  .section { padding-block: 65px; }
  .site-header .header-inner { min-height: 70px; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-copy strong { font-size: .83rem; }
  .brand-copy small { font-size: .56rem; }
  .hero-grid { display: flex; flex-direction: column; padding-top: 55px; padding-bottom: 85px; gap: 38px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .btn { min-height: 49px; font-size: .87rem; padding: 12px 14px; }
  .hero-values { gap: 8px 12px; margin-top: 28px; }
  .hero-values span { font-size: .75rem; }
  .hero-art { margin: 0 auto; width: min(87%,330px); }
  .hero-image-frame img { height: 320px; }
  .floating-badge { font-size: .82rem; padding: 8px 13px; }
  .top-badge { right: -17px; }
  .bottom-badge { left: -18px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading p:last-child { font-size: .97rem; }
  h2 { font-size: clamp(1.94rem,9vw,2.8rem); }
  .tabs { gap: 10px; }
  .tab { padding: 14px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .tab-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 1.35rem; }
  .tab strong { font-size: .87rem; }
  .tab small { font-size: .77rem; }
  .tab-panel { padding: 18px; border-radius: 20px; }
  .program-intro { grid-template-columns: 1fr; gap: 8px; }
  .program-intro img { height: 190px; }
  .program-intro p { font-size: .93rem; }
  .program-intro h3 { font-size: 1.65rem; }
  .benefit-grid { grid-template-columns: 1fr; gap: 11px; }
  .benefit-card { padding: 19px; }
  .point-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .point-card { padding: 16px; border-radius: 15px; }
  .point-symbol { width: 40px; height: 40px; border-radius: 11px; font-size: 1.25rem; }
  .point-amount { font-size: 1.46rem; }
  .point-card h3 { font-size: .95rem; }
  .point-card p { font-size: .83rem; }
  .point-card-top { margin-bottom: 14px; }
  .info-strip { padding: 14px; }
  .table-card th, .table-card td { padding: 13px 12px; font-size: .82rem; }
  .table-card-heading { padding: 17px; }
  .table-caption { flex-basis: 100%; margin-left: 0; }
  .prize-grid { gap: 11px; }
  .prize-header { padding: 16px 9px 12px; min-height: 94px; }
  .prize-header > span { font-size: .67rem; }
  .prize-header strong { font-size: 1.6rem; }
  .prize-card > img { height: 155px; }
  .prize-body { padding: 15px 12px; }
  .prize-body h3 { font-size: .95rem; }
  .prize-body p { font-size: .79rem; }
  .image-button { font-size: .78rem; padding: 10px 5px; }
  .dates-layout { grid-template-columns: 1fr; gap: 25px; }
  .dates-heading { position: static; }
  .gallery-category { margin-top: 30px; }
  .gallery-category > div:first-child { display: block; }
  .gallery-category h3 { font-size: 1.18rem; }
  .gallery-category > div:first-child > span { display: block; margin-top: 4px; }
  .gallery-grid, .gallery-grid.additional { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .gallery-tile span { font-size: .77rem; padding-inline: 9px; }
  .faq-layout { grid-template-columns: 1fr; gap: 15px; }
  .faq-list summary { font-size: .93rem; }
  .contact-panel { display: block; padding: 38px 25px 40px; min-height: auto; }
  .contact-copy { max-width: 100%; }
  .contact-copy h2 { font-size: 2rem; }
  .contact-panel > img { position: relative; top: auto; right: auto; max-width: none; width: min(67%,245px); height: 258px; object-position: top center; margin: 35px auto 0; transform: rotate(4deg); }
  .footer-inner { display: block; }
  .footer-inner > div:last-child { text-align: left; margin-top: 20px; }
  .image-dialog { width: 96vw; max-height: 93vh; }
}
@media (max-width: 370px) {
  .hero-actions .btn { width: 100%; }
  .point-grid { grid-template-columns: 1fr; }
  .point-card-top { margin-bottom: 8px; }
  .prize-grid { grid-template-columns: 1fr; }
  .prize-card > img { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Adaptación cabecera y pie institucional */
@media (max-width:1200px) { .header-inner { gap:12px; } .school-brand img { width:208px; } .desktop-nav { gap:2px; } .desktop-nav a { font-size:.79rem; padding:10px 6px; } }
@media (max-width:1030px) { .desktop-nav { display:none; } .menu-toggle { display:flex; } .footer-top { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; } }
@media (max-width:680px) { .site-header .header-inner { min-height:72px; } .school-brand img { width:202px; } .program-nav { position:relative; top:auto; } .program-nav-inner { flex-direction:column; align-items:stretch; gap:0; width:100%; } .program-nav-title { padding:11px 16px 3px; } .program-nav-links { padding:0 6px 5px; } .program-nav-links a { padding:11px 10px; } section[id], div[id], #tabla-curso { scroll-margin-top:95px; } .breadcrumb { font-size:.74rem; gap:7px; margin-bottom:24px; } .footer-top { grid-template-columns:1fr; gap:28px; padding-bottom:34px; } .footer-bottom { flex-direction:column; } .footer-logo { width:255px; } }
