/* ICNH&BS — estilos propios del sitio (lo demás lo cubre Tailwind). */
:root { --nt-50: 240 253 250; --nt-100: 204 251 241; --nt-200: 153 246 228; --nt-500: 20 184 166; --nt-600: 13 148 136; --nt-700: 15 118 110; --nt-800: 17 94 89; --nt-900: 19 78 74; --ng-400: 250 204 21; --ng-500: 234 179 8; --ng-600: 202 138 4; }
html { scroll-behavior: smooth; }
body { padding-top: 0; }
.nav-link.is-active { color: rgb(var(--ng-600)); border-bottom: 2px solid rgb(var(--ng-500)); }
a.block.is-active { color: rgb(var(--ng-600)); font-weight: 700; }

/* Cuadros de imagen (placeholders hasta que haya fotos) */
.img-slot { position: relative; overflow: hidden; border-radius: 1rem; width: 100%; }
.img-slot-dark  { background: #0a0a0a; color: #e5e5e5; border: 2px dashed #525252; }
.img-slot-light { background: #fafafa; color: #404040; border: 2px dashed #a3a3a3; }
.img-slot-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px; font-size: 12px; }
.img-slot-ph i { font-size: 28px; opacity: .7; }
.img-slot-ph b { font-size: 12px; letter-spacing: .04em; }
.img-slot-ph span { opacity: .8; max-width: 90%; }
.img-slot-ph small { opacity: .6; }
.img-slot-filled { border: 0; background: none; }
.img-slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot.slot-fill { position: absolute; inset: 0; border-radius: 0; border: 0; aspect-ratio: auto !important; }

/* Noticias / galería */
.noticia-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.noticia-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.noticia-card img { width: 100%; height: 200px; object-fit: cover; }
.noticia-ph { height: 200px; display: flex; align-items: center; justify-content: center; background: rgb(var(--nt-50)); color: rgb(var(--nt-500)); font-size: 48px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4/3; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 700; }

/* Ventanas emergentes */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 9000; display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-bg.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; max-width: 760px; width: 100%; padding: 28px; position: relative; max-height: 92vh; overflow-y: auto; }
.modal-x { position: absolute; top: 10px; right: 16px; font-size: 30px; line-height: 1; color: #64748b; background: none; border: 0; cursor: pointer; }
.prose-noticia p { margin-bottom: 12px; line-height: 1.7; color: #374151; }
.prose-noticia h1, .prose-noticia h2, .prose-noticia h3 { font-weight: 800; margin: 16px 0 8px; color: rgb(var(--nt-900)); }
.prose-noticia ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.prose-noticia ol { list-style: decimal; padding-left: 22px; margin-bottom: 12px; }
.prose-noticia img { max-width: 100%; border-radius: 12px; }

/* Entrada suave */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Pasos del proceso */
.paso-num { width: 44px; height: 44px; border-radius: 9999px; background: rgb(var(--ng-500)); color: rgb(var(--nt-900)); font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
details.faq > summary { cursor: pointer; font-weight: 700; color: rgb(var(--nt-900)); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq > summary::after { content: '+'; font-size: 22px; line-height: 1; color: rgb(var(--ng-600)); }
details.faq[open] > summary::after { content: '–'; }

/* Slideshow de noticias */
.ss-wrap { position: relative; overflow: hidden; border-radius: 24px; background: rgb(var(--nt-900)); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.ss-track { display: flex; transition: transform .6s ease; }
.ss-slide { min-width: 100%; display: grid; grid-template-columns: 1fr; cursor: pointer; color: #fff; }
.ss-img { aspect-ratio: 16/9; background: rgb(var(--nt-700)); display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgb(var(--nt-200)); overflow: hidden; }
.ss-img img { width: 100%; height: 100%; object-fit: cover; }
.ss-text { padding: 28px 28px 56px; }
@media (min-width: 900px) { .ss-slide { grid-template-columns: 1.15fr 1fr; } .ss-img { aspect-ratio: auto; min-height: 380px; } .ss-text { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; } }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 9999px; background: rgba(255,255,255,.9); color: rgb(var(--nt-900)); font-size: 28px; line-height: 1; border: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ss-prev { left: 12px; } .ss-next { right: 12px; }
.ss-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.ss-dots button { width: 10px; height: 10px; border-radius: 9999px; background: rgba(255,255,255,.45); border: 0; cursor: pointer; padding: 0; }
.ss-dots button.on { background: rgb(var(--ng-400)); width: 26px; }

/* Pantalla de carga: se muestra hasta que el contenido y las imágenes están listos */
#page-loader { position: fixed; inset: 0; z-index: 99999; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .45s ease, visibility .45s; animation: pl-failsafe 0s 9s forwards; }
#page-loader.done { opacity: 0; visibility: hidden; }
#page-loader img { width: 112px; height: 112px; object-fit: contain; animation: pl-pulse 1.4s ease-in-out infinite; }
#page-loader .pl-bar { width: 120px; height: 4px; border-radius: 4px; background: rgb(var(--nt-100)); overflow: hidden; }
#page-loader .pl-bar::after { content: ''; display: block; width: 40%; height: 100%; background: rgb(var(--ng-500)); border-radius: 4px; animation: pl-slide 1.1s ease-in-out infinite; }
@keyframes pl-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .8; } }
@keyframes pl-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; } }

/* Botón flotante de WhatsApp */
#wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 45; display: flex; align-items: center; flex-direction: row-reverse; gap: 0; height: 60px; min-width: 60px; border-radius: 9999px; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: gap .25s, padding .25s; overflow: hidden; }
#wa-float.wa-left { right: auto; left: 20px; flex-direction: row; }
#wa-float i { font-size: 34px; width: 60px; text-align: center; flex-shrink: 0; }
#wa-float .wa-tip { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; font-size: 14px; transition: max-width .3s, opacity .3s, padding .3s; }
#wa-float:hover .wa-tip, #wa-float:focus .wa-tip { max-width: 260px; opacity: 1; padding: 0 6px 0 18px; }
#wa-float.wa-left:hover .wa-tip { padding: 0 18px 0 6px; }
#wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 9999px; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: wa-pulse 2.4s infinite; pointer-events: none; }
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { #wa-float::before { animation: none; } }
@media (max-width: 640px) { #wa-float { height: 54px; min-width: 54px; bottom: 16px; right: 16px; } #wa-float.wa-left { left: 16px; } #wa-float i { font-size: 30px; width: 54px; } }

/* Asistente virtual */
#cb-launcher { position: fixed; right: 20px; bottom: 92px; z-index: 45; width: 56px; height: 56px; border-radius: 9999px; border: 0; cursor: pointer; background: rgb(var(--nt-600)); color: #fff; font-size: 24px; box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .2s, background .2s; }
#cb-launcher:hover { transform: scale(1.06); background: rgb(var(--nt-700)); }
body.wa-izq #cb-launcher { right: auto; left: 20px; }
#cb-panel { position: fixed; right: 20px; bottom: 160px; z-index: 46; width: 350px; max-width: calc(100vw - 24px); height: 500px; max-height: calc(100vh - 190px); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .2s, visibility .2s; }
body.wa-izq #cb-panel { right: auto; left: 20px; }
#cb-panel.open { opacity: 1; visibility: visible; transform: none; }
#cb-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgb(var(--nt-900)); color: #fff; }
#cb-panel header img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 9999px; padding: 2px; }
#cb-panel header div { flex: 1; line-height: 1.2; } #cb-panel header small { display: block; opacity: .75; font-size: 11px; }
#cb-x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
#cb-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f3f6f6; display: flex; flex-direction: column; gap: 8px; }
.cb-m { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.cb-bot { background: #fff; color: #1f2937; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cb-yo { background: rgb(var(--nt-600)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cb-pensando { opacity: .6; letter-spacing: 2px; }
.cb-link { color: rgb(var(--nt-600)); text-decoration: underline; font-weight: 600; }
.cb-wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #25d366; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 9999px; }
#cb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; background: #f3f6f6; }
#cb-chips button { background: #fff; border: 1px solid rgb(var(--nt-200)); color: rgb(var(--nt-800)); border-radius: 9999px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; text-align: left; }
#cb-chips button:hover { background: rgb(var(--nt-50)); }
#cb-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; background: #fff; }
#cb-in { flex: 1; border: 1px solid #d1d5db; border-radius: 9999px; padding: 9px 14px; font-size: 14px; outline: none; }
#cb-in:focus { border-color: rgb(var(--nt-600)); }
#cb-form button { width: 40px; height: 40px; border-radius: 9999px; border: 0; background: rgb(var(--ng-500)); color: rgb(var(--nt-900)); cursor: pointer; }
@media (max-width: 640px) { #cb-launcher { right: 16px; bottom: 82px; width: 50px; height: 50px; font-size: 21px; } body.wa-izq #cb-launcher { left: 16px; } #cb-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: 78vh; max-height: none; } body.wa-izq #cb-panel { left: 8px; } }

/* Álbumes y visor de fotos */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.album-card { display: block; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; text-decoration: none; }
.album-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.album-cover { position: relative; aspect-ratio: 4/3; background: rgb(var(--nt-100)); display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgb(var(--nt-500)); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-n { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; }
.album-info { padding: 16px 20px 20px; }
.album-info h3 { font-size: 18px; font-weight: 800; color: rgb(var(--nt-900)); }
.album-info p { font-size: 13.5px; color: #6b7280; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-wrap { position: relative; max-width: 94vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; }
.lb-wrap img { max-width: 94vw; max-height: 76vh; border-radius: 12px; object-fit: contain; }
.lb-cap { color: #fff; text-align: center; margin-top: 12px; max-width: 720px; }
.lb-cap b { font-size: 18px; } .lb-cap p { margin-top: 4px; opacity: .9; font-size: 14px; } .lb-cap small { opacity: .65; font-size: 12px; }
.lb-btn { position: absolute; top: 38%; background: rgba(255,255,255,.9); border: 0; border-radius: 9999px; width: 46px; height: 46px; font-size: 30px; line-height: 1; cursor: pointer; color: #134e4a; z-index: 2; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-x { position: absolute; top: -6px; right: 4px; background: rgba(0,0,0,.6); border: 0; color: #fff; font-size: 28px; width: 40px; height: 40px; border-radius: 9999px; cursor: pointer; z-index: 2; }

/* Noticia como artículo */
a.noticia-card { text-decoration: none; color: inherit; }
a.ss-slide { text-decoration: none; color: #fff; }
.art-body { font-size: 18px; line-height: 1.85; color: #374151; }
.art-body p { margin-bottom: 1.2em; }
.art-body h1, .art-body h2 { font-size: 1.7em; font-weight: 800; margin: 1.6em 0 .6em; color: rgb(var(--nt-900)); line-height: 1.25; }
.art-body h3 { font-size: 1.3em; font-weight: 800; margin: 1.4em 0 .5em; color: rgb(var(--nt-900)); }
.art-body strong { color: #1f2937; }
.art-body a { color: rgb(var(--nt-600)); text-decoration: underline; }
.art-body blockquote { border-left: 4px solid rgb(var(--ng-500)); padding: .4em 0 .4em 1.2em; margin: 1.5em 0; font-style: italic; color: #4b5563; }
.art-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.2em auto; display: block; }
.art-body iframe { width: 100%; aspect-ratio: 16/9; border-radius: 14px; margin: 1.2em 0; border: 0; }
.art-body ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; } .art-body ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.2em; }
.art-body .ql-align-center { text-align: center; } .art-body .ql-align-right { text-align: right; } .art-body .ql-align-justify { text-align: justify; }
.art-body .ql-indent-1 { padding-left: 3em; } .art-body .ql-indent-2 { padding-left: 6em; }
.art-share { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 9999px; text-decoration: none; border: 0; cursor: pointer; }
@media (max-width: 640px) { .art-body { font-size: 16.5px; } }

/* Matrícula en línea */
.mt-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.07); text-align: left; }
.mt-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: rgb(var(--nt-900)); margin-bottom: 16px; }
.mt-card h2 span { width: 30px; height: 30px; border-radius: 9999px; background: rgb(var(--ng-500)); color: rgb(var(--nt-900)); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.mt-f label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.mt-i { width: 100%; border: 1px solid #d1d5db; border-radius: 12px; padding: 10px 12px; font-size: 15px; outline: none; background: #fff; }
.mt-i:focus { border-color: rgb(var(--nt-600)); box-shadow: 0 0 0 3px rgb(var(--nt-600) / .15); }
.mt-doc { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; }
.mt-file { display: block; margin-top: 8px; font-size: 14px; max-width: 100%; }

.mt-sub { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; }
.mt-sub h3 { font-weight: 800; color: rgb(var(--nt-700)); margin-bottom: 12px; font-size: 15px; }
