/* ==========================================================================
   Componentes de páginas interiores (Fase 2). Se carga después de base.css
   ========================================================================== */

/* Servicios */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.svc__num { font-size: 64px; font-weight: 200; line-height: 1; color: var(--c-orange); opacity: .9; }
.svc h2 { margin-top: 8px; }
.svc__intro { margin-top: 22px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.checklist li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--c-gray-line); font-size: 15px; transition: padding .25s var(--ease), color .25s; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 11px; height: 11px; background: var(--grad-k); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform .25s var(--ease); }
.checklist li:hover { padding-left: 38px; color: var(--c-blue); }
.checklist li:hover::before { transform: scale(1.3); }
.checklist--one { grid-template-columns: 1fr; }
.section--gray .checklist li { border-color: #d9d6d3; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 8px 16px; border: 1px solid var(--c-blue); color: var(--c-blue); font-size: 13px; font-weight: 500; transition: background .25s, color .25s; }
.chip:hover { background: var(--c-blue); color: #fff; }
.partner-note { margin-top: 22px; padding: 16px 20px; border-left: 4px solid var(--c-orange); background: #FFF7EA; font-size: 14px; }
.subnav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--c-gray-line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; }
.subnav a { padding: 16px; font-size: 13px; font-weight: 500; white-space: nowrap; letter-spacing: .04em; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover, .subnav a.is-active { color: var(--c-orange-text); border-color: var(--c-orange); }
.svc-block { scroll-margin-top: 70px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .checklist { grid-template-columns: 1fr; } }

/* Equipo */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab { background: #fff; border: 1px solid var(--c-blue); color: var(--c-blue); padding: 11px 22px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
.tab:hover { background: #EAF3F9; }
.tab[aria-pressed="true"] { background: var(--c-blue); color: #fff; }
.tab small { opacity: .7; font-weight: 500; margin-left: 6px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.person { background: #fff; border: 1px solid var(--c-gray-line); padding: 28px 24px 24px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.person::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--grad-k); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.person:hover::before { transform: scaleX(1); }
.person[hidden] { display: none; }
.avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--grad-k); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 500; margin-bottom: 18px; }
.person h3 { font-size: 17px; font-weight: 600; color: var(--c-blue); line-height: 1.3; }
.person .role { margin-top: 4px; font-size: 14px; color: var(--c-text-soft); min-height: 44px; }
.person .tel { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 500; transition: color .2s; }
.person .tel:hover { color: var(--c-orange-text); }
.person .tel svg { width: 15px; height: 15px; }
.person .mail { display: block; margin-top: 6px; font-size: 13px; color: var(--c-text-soft); overflow-wrap: anywhere; transition: color .2s; }
.person a.mail:hover { color: var(--c-orange-text); text-decoration: underline; }
.person.is-in { animation: heroIn .5s var(--ease) both; }

/* Mapas y oficinas */
.map-frame { position: relative; border: 1px solid var(--c-gray-line); box-shadow: var(--shadow-md); background: var(--c-gray); aspect-ratio: 16/10; overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.office { background: #fff; border: 1px solid var(--c-gray-line); padding: 28px; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.office:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.office::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-k); }
.office h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-orange-text); }
.office address { font-style: normal; margin-top: 12px; font-size: 16px; font-weight: 500; color: var(--c-blue); }
.office p, .office a.tel { margin-top: 10px; font-size: 15px; }
.office a.tel { display: block; font-weight: 500; }
.office a.tel:hover { color: var(--c-orange-text); }
.office .map-frame { margin-top: 20px; aspect-ratio: 16/9; box-shadow: none; }
.placeholder { border: 2px dashed #c9c4bf; padding: 28px; text-align: center; color: var(--c-text-soft); font-size: 14px; background: #faf9f8; }
.todo { display: inline-block; background: #FFF1CC; color: #7a4a00; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; text-transform: uppercase; vertical-align: middle; }

/* Eventos */
.event { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--c-gray-line); }
.event--first { border-top: 0; padding-top: 0; }
.event__poster { position: relative; display: block; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.event__poster img { width: 100%; transition: transform .8s var(--ease); }
.event__poster:hover img { transform: scale(1.03); }
.event__date { display: inline-block; background: var(--c-orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; }
.event h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 32px); font-weight: 300; color: var(--c-blue); line-height: 1.2; }
.event h2 strong { font-weight: 700; }
.agenda { margin-top: 26px; border-left: 2px solid var(--c-gray-line); }
.agenda li { position: relative; padding: 0 0 22px 26px; }
.agenda li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; background: var(--c-orange); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--c-orange); }
.agenda .time { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--c-orange-text); }
.agenda h3 { font-size: 15px; font-weight: 600; color: var(--c-blue); text-transform: uppercase; line-height: 1.4; margin: 2px 0 4px; letter-spacing: .02em; }
.agenda p { font-size: 14px; color: var(--c-text-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; font-size: 14px; }
.meta b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange-text); margin-bottom: 2px; }
.photo-band { position: relative; min-height: clamp(260px, 38vw, 460px); background: url(../img/evento-auditorio.jpg) center / cover; display: flex; align-items: flex-end; color: #fff; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 40, 70, .85)); }
.photo-band .container { position: relative; padding-block: 36px; }
.photo-band h2 { font-weight: 300; font-size: clamp(22px, 3vw, 32px); }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; } }

/* Multimedia */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.media { background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column; }
.media:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.media__thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #000; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.media__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); opacity: .92; }
.media:hover .media__thumb img { transform: scale(1.07); }
.media__thumb .play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: var(--c-orange); display: grid; place-items: center; transition: transform .3s var(--ease); }
.media__thumb:hover .play { transform: scale(1.12); }
.media__thumb .play svg { width: 24px; margin-left: 3px; fill: #fff; }
.media__body { padding: 20px 22px 24px; flex: 1; }
.media__date { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--c-orange-text); }
.media h3 { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--c-blue); line-height: 1.35; }
.media p { margin-top: 8px; font-size: 14px; color: var(--c-text-soft); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); width: 100%; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0, 25, 45, .88); backdrop-filter: blur(3px); }
.lightbox__box { position: relative; background: #fff; }
.lightbox__box img { width: 100%; max-height: 82vh; object-fit: contain; background: #111; }
.lightbox__box iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #000; }
.lightbox__cap { padding: 14px 18px; font-size: 14px; }
.lightbox__close { position: absolute; right: -6px; top: -46px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 4px 10px; }
.lightbox__close:hover { color: var(--c-orange-light); }

/* Blog */
.blog-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-block: 32px; border-bottom: 1px solid var(--c-gray-line); }
.post-card:first-child { padding-top: 0; }
.post-card__img { overflow: hidden; background: var(--c-gray); display: block; align-self: start; }
.post-card__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__noimg { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--grad-k); color: #fff; font-weight: 300; font-size: 44px; }
.post-date { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-orange-text); }
.post-card h2 { margin: 6px 0 10px; font-size: 24px; font-weight: 400; color: var(--c-blue); line-height: 1.25; }
.post-card h2 a:hover { color: var(--c-orange-text); }
.post-card p { font-size: 15px; color: var(--c-text-soft); margin-bottom: 14px; }
.side h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange-text); margin-bottom: 14px; }
.side section + section { margin-top: 34px; }
.side li { padding: 8px 0; border-bottom: 1px solid var(--c-gray-line); font-size: 15px; }
.side a:hover { color: var(--c-orange-text); }
.post { max-width: 760px; margin-inline: auto; }
.post h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 300; color: var(--c-blue); line-height: 1.15; margin: 8px 0 24px; }
.post__img { margin: 28px 0; box-shadow: var(--shadow-sm); max-width: 420px; }
.post .prose p, .post .prose li { font-size: 17px; }
.regions { margin: 20px 0 0; display: grid; gap: 0; border: 1px solid var(--c-gray-line); }
.regions div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--c-gray-line); font-size: 15px; }
.regions div:last-child { border: 0; }
.regions dt { font-weight: 600; color: var(--c-blue); }
.regions dd { margin: 0; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-gray-line); align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.share a { border: 1px solid var(--c-blue); color: var(--c-blue); padding: 8px 16px; font-size: 12px; transition: background .25s, color .25s; }
.share a:hover { background: var(--c-blue); color: #fff; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } .post-card { grid-template-columns: 1fr; } .regions div { grid-template-columns: 1fr; gap: 2px; } }

/* Documentos / legales */
.doc { max-width: 820px; margin-inline: auto; }
.doc h2 { font-size: 22px; font-weight: 600; color: var(--c-blue); margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16px; }
.doc p + p { margin-top: 1em; }
.doc ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.doc li + li { margin-top: 6px; }
.doc a:not(.btn) { text-decoration: underline; color: var(--c-blue); }
.pdf-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--c-gray-line); box-shadow: var(--shadow-sm); background: var(--c-gray); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.banner { height: clamp(180px, 24vw, 300px); background: url(../img/contacto-banner.jpg) center / cover; position: relative; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 59, 102, .75), rgba(0, 59, 102, .1)); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Red */
.net-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 36px; }
.net-stat { background: #fff; padding: 24px; border-top: 3px solid var(--c-orange); box-shadow: var(--shadow-sm); }
.net-stat b { display: block; font-size: 38px; font-weight: 300; color: var(--c-blue); line-height: 1; }
.net-stat span { font-size: 14px; color: var(--c-text-soft); }

/* Directorio internacional y video embebido */
.dir-h { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-blue); margin: 40px 0 16px; }
.dir-h:first-of-type { margin-top: 0; }
.offices.dir { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.dir .office { padding: 22px 24px; }
.dir .office h3 { font-size: 12px; }
.dir .office address { font-size: 14px; font-weight: 400; color: var(--c-text); margin-top: 8px; }
.dir .office a.tel { font-size: 14px; margin-top: 6px; }
.video-embed { position: relative; aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow-md); margin: 28px 0 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__box video { display: block; margin: 0 auto; max-width: 100%; max-height: 82vh; background: #000; }
.lightbox__media:has(video) { background: #000; }
.media__note { display: inline-block; margin-top: 10px; padding: 4px 10px; background: var(--c-gray); font-size: 12.5px !important; font-weight: 500; color: var(--c-text-soft) !important; }

/* Contenido de las entradas del blog (generado por el editor) */
.post .prose h2 { font-size: 26px; font-weight: 400; color: var(--c-blue); margin: 1.6em 0 .6em; line-height: 1.25; }
.post .prose h3 { font-size: 20px; font-weight: 600; color: var(--c-blue); margin: 1.4em 0 .5em; }
.post .prose ul, .post .prose ol { margin: 1em 0 1em 1.3em; } .post .prose ul { list-style: disc; } .post .prose ol { list-style: decimal; }
.post .prose li + li { margin-top: .4em; }
.post .prose blockquote { border-left: 4px solid var(--c-orange); background: #FFF7EA; padding: 14px 20px; margin: 1.4em 0; font-style: italic; }
.post .prose a { color: var(--c-blue); text-decoration: underline; }
.post .prose img { max-width: 100%; height: auto; margin: 1.2em 0; }
.post .prose .video-embed { margin: 1.4em 0; }
.post__img { max-width: 100%; }

/* Tamaño y posición de imágenes y videos dentro de las entradas (los define el editor) */
.post .prose { display: flow-root; }
.post .prose .wm-w-25 { width: 25%; }
.post .prose .wm-w-33 { width: 33%; }
.post .prose .wm-w-50 { width: 50%; }
.post .prose .wm-w-75 { width: 75%; }
.post .prose .wm-w-100 { width: 100%; }
.post .prose img[class*="wm-w-"] { height: auto; }
.post .prose .wm-a-izq { float: left; margin: .3em 1.5em 1em 0; }
.post .prose .wm-a-der { float: right; margin: .3em 0 1em 1.5em; }
.post .prose .wm-a-centro { float: none; display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .post .prose [class*="wm-a-"], .post .prose [class*="wm-w-"] { float: none; width: 100%; margin: 1em 0; } }

/* tablas de documentos (política de cookies) */
.table-wrap { overflow-x: auto; margin-top: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-gray-line); vertical-align: top; }
.tbl th { background: var(--c-blue); color: #fff; font-weight: 600; }

/* foto del integrante del equipo (si no hay, se muestran las iniciales) */
.avatar--foto { background: none; overflow: hidden; }
.avatar--foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* varias fotos en un evento: la principal arriba y las demás en miniatura */
.event__media { min-width: 0; }
.event__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 12px; }
.event__thumb { display: block; overflow: hidden; border: 0; padding: 0; background: #fff; cursor: zoom-in; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.event__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.event__thumb:hover img { transform: scale(1.06); }
