/* ==========================================================================
   MITSA 2026 · Componentes: secciones, encabezados, tarjetas, tablas
   ========================================================================== */

/* ── Secciones ──────────────────────────────────────────── */
.section { position: relative; padding: 96px 0; }
.section--tight { padding: 44px 0; }
.section--top { padding-top: 56px; }
.section--flush-bottom { padding-bottom: 0; }
.section--xl { padding: 130px 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--white { background: #fff; }
.section--cream { background: var(--cream-bg); }
.section--sand { background: var(--sand); }
.section--gray { background: var(--line); }
.section--rule { border-top: 1px solid var(--line); }

/* Sección oscura en diagonal que se monta sobre sus vecinas */
.section--slant { z-index: 1; padding: 132px 0; margin: -46px 0; clip-path: polygon(0 46px, 100% 0, 100% calc(100% - 46px), 0 100%); }
.section--stripes::before, .section--grid::before, .card--stripes::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.section--stripes::before, .card--stripes::before { background-image: repeating-linear-gradient(135deg, rgba(224, 225, 221, .07) 0 1px, transparent 1px 14px); }
.section--grid::before { background-image: linear-gradient(var(--steel) 1px, transparent 1px), linear-gradient(90deg, var(--steel) 1px, transparent 1px); background-size: 88px 88px; opacity: .14; }
.section--stripes > .container, .section--grid > .container, .card--stripes > * { position: relative; }

.section__title { margin-bottom: 34px; }
.section__intro { margin-bottom: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head .h2, .section-head p { margin: 0; }
.section-head--rule { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }

/* ── Grillas ────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: 40px; }
.split { display: grid; gap: 56px; align-items: start; }
.split--problems { grid-template-columns: 1fr 1.15fr; align-items: center; }
.split--problem { grid-template-columns: 1fr 1.15fr; }
.split--how { grid-template-columns: 1fr 1.1fr; align-items: center; }
.split--resources { grid-template-columns: 1.2fr 1fr; gap: 30px; }
.split--faq { grid-template-columns: .8fr 1.6fr; gap: 40px; }
.split--faq-lines { grid-template-columns: .8fr 1.2fr; gap: 44px; }
.split--form { grid-template-columns: 1.15fr .85fr; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ── Encabezado de página ───────────────────────────────── */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding-top: 84px; }
.page-hero__bg { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.page-hero--grid .page-hero__bg { background-image: linear-gradient(var(--steel) 1px, transparent 1px), linear-gradient(90deg, var(--steel) 1px, transparent 1px); background-size: 88px 88px; }
.page-hero--dots .page-hero__bg { background-image: radial-gradient(var(--steel) 1px, transparent 1px); background-size: 26px 26px; }
.orb { position: absolute; top: -250px; right: -170px; width: 730px; height: 730px; border-radius: 50%; border: 1px solid rgba(224, 225, 221, .12); background: radial-gradient(circle at 32% 32%, rgba(65, 90, 119, .42), transparent 62%); pointer-events: none; }
.orb--center { top: -300px; left: 50%; right: auto; transform: translateX(-50%); width: 900px; height: 900px; border-color: rgba(224, 225, 221, .1); background: radial-gradient(circle at 50% 40%, rgba(65, 90, 119, .35), transparent 60%); }
.page-hero__inner { position: relative; }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; }
.page-hero:not(.has-media):not(.has-aside) .page-hero__grid { grid-template-columns: minmax(0, 820px); }
.page-hero__copy { padding-bottom: 84px; }
.page-hero .lead { max-width: 54ch; }
.page-hero__side img { width: 100%; height: 430px; object-fit: cover; }
.page-hero.has-aside { padding-bottom: 92px; }
.page-hero.has-aside .page-hero__copy { padding-bottom: 0; }
.page-hero.has-aside .page-hero__grid { grid-template-columns: 1.25fr .9fr; gap: 56px; }
.page-hero.is-solution { padding-top: 26px; }
.page-hero.is-solution .page-hero__copy { padding-bottom: 56px; }
.page-hero.is-solution .page-hero__side img { height: 400px; }
.page-hero.is-compact { padding-top: 72px; }
.page-hero.is-compact .page-hero__copy { padding-bottom: 72px; }
.page-hero.is-center { padding: 80px 0 96px; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: rgba(248, 246, 240, .45); margin-bottom: 26px; }
.breadcrumbs li + li::before { content: "·"; margin-right: 6px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--cream); }
.section .breadcrumbs ol { color: var(--mist); }
.section .breadcrumbs [aria-current] { color: var(--ink); }

/* Franja de alcance bajo el encabezado de una solución */
.scope-strip { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1px; background: var(--on-dark-line); border-top: 1px solid var(--on-dark-line); }
.scope-strip__cell { background: var(--ink); padding: 26px 24px 44px; }
.scope-strip__cell .small { margin-top: 6px; }

/* Galería de 3 fotos a sangre (ficha de solución) */
.gallery { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 2px; background: var(--line); }
.gallery .captioned { height: 340px; border-radius: 0; }

/* ── Cifras ─────────────────────────────────────────────── */
.stats--big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 104px; }
.stats--big .stat__num { font: 700 clamp(60px, 7.5vw, 104px)/.86 var(--f-sans); letter-spacing: -.05em; color: var(--cream); }
.stats--big .stat__label { font-size: 14px; line-height: 1.5; color: rgba(248, 246, 240, .5); margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(248, 246, 240, .14); }
.stats--band { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1px; max-width: 1180px; margin: 0 auto; background: var(--on-dark-line); border-top: 1px solid var(--on-dark-line); }
.stats--band .stat { background: var(--ink); padding: 30px 28px; }
.stats--band .stat__num { font: 700 40px/1 var(--f-sans); letter-spacing: -.045em; color: var(--cream); }
.stats--band .stat__label { font-size: 13px; color: rgba(248, 246, 240, .55); margin-top: 8px; }

/* ── Tarjetas ───────────────────────────────────────────── */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--navy); text-decoration: none; }
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: #C9CBC6; }
.card--pad { padding: 26px; }
.card--pad-sm { padding: 16px 18px; border-radius: 16px; }
.card--pad-lg { padding: 34px; }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark-muted); }
.card--navy { background: var(--navy); border-color: var(--navy); color: var(--on-dark-muted); }
.card--cream { background: var(--cream-bg); }
.card--sand { background: var(--cream-bg); border-color: #fff; }
.card--dark .h4, .card--dark .h5, .card--dark .card__title, .card--dark .h3 { color: var(--cream); }
.card .small { color: var(--steel); }
.card--dark .small, .card--navy .small { color: var(--on-dark-muted); }
.card .h4 + .small, .card .h5 + .small { margin-top: 0; }

.card__img { position: relative; overflow: hidden; flex: none; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__img--xs { height: 96px; }
.card__img--sm { height: 110px; }
.card__img--md { height: 180px; }
.card__img--lg { height: 210px; }
.card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px; }
.card__body--md { padding: 22px 22px 24px; }
.card__body--lg { padding: 24px 24px 26px; }
.card__title { font: 600 14.5px/1.35 var(--f-sans); color: var(--ink); }
.card__title--md { font-size: 15px; line-height: 1.4; }
.card__title a, .card .h3 a, .card .h4 a { text-decoration: none; }
.card__meta { font-size: 12.5px; color: var(--mist); }
.card__text { font-size: 13.5px; line-height: 1.65; color: var(--steel); margin: 0; }
.card .label-mono { margin-bottom: 8px; }
.card .h3 { font-weight: 600; font-size: clamp(19px, 1.8vw, 21px); line-height: 1.22; margin-bottom: 8px; }
.card .h3.h3--lg { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; margin-bottom: 12px; }

/* Grilla de soluciones */
.sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sol-card--wide { grid-column: span 2; }
.sol-card .card__text { margin-top: 2px; }
.sol-card.card--dark .card__text { color: var(--on-dark-muted); }

/* Imagen con leyenda */
.captioned { position: relative; display: flex; align-items: flex-end; min-height: 190px; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); }
.captioned img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.captioned figcaption { position: relative; width: 100%; padding: 16px 18px; background: linear-gradient(to top, rgba(13, 27, 42, .92), transparent); font: 500 12.5px var(--f-body); color: var(--cream); }
.captioned--tall { min-height: 380px; }

/* Listas en filas */
.rows { list-style: none; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.rows--dark { background: rgba(248, 246, 240, .12); border: 1px solid rgba(248, 246, 240, .12); border-radius: var(--r-md); }
.rows--dark li { background: var(--ink); padding: 15px 20px; font-size: 14.5px; color: rgba(248, 246, 240, .82); }
.rows--light { background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rows--light li { background: #fff; padding: 20px 24px; font-size: 14.5px; color: var(--navy); }
.rows--index { border-color: var(--on-dark-line); background: var(--on-dark-line); }
.rows--index li { padding: 0; }
.rows--index a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; background: var(--ink); color: var(--cream); font: 500 14.5px var(--f-body); text-decoration: none; transition: background-color .15s; }
.rows--index a:hover { background: #132338; }
.rows--index .label-mono { margin: 0; font-size: 11px; letter-spacing: 0; color: var(--steel); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: 500 12.5px/1.3 var(--f-body); color: var(--navy); text-decoration: none; }
a.chip:hover, button.chip:hover { border-color: var(--steel); }
.chips--card { margin-top: auto; padding-top: 6px; }
.chips--card .chip { padding: 6px 12px; font-size: 12px; color: var(--steel); }
.chips--sm .chip { padding: 5px 11px; font-size: 12px; color: var(--steel); }
.chips--white .chip { background: #fff; }
.chips--lg .chip { padding: 9px 16px; font-size: 13.5px; }
.chips--filter .chip { background: #fff; cursor: pointer; }
.chip.is-active, .chips--filter .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* Llamado a la acción con foto */
.cta-band { position: relative; overflow: hidden; background: var(--ink); text-align: center; padding: 130px 0; }
.cta-band--xl { padding: 140px 0; }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.cta-band__shade { position: absolute; inset: 0; background: linear-gradient(rgba(13, 27, 42, .72), rgba(13, 27, 42, .84)); }
.cta-band__inner { position: relative; }
.cta-band .h1 { max-width: 19ch; margin: 0 auto 18px; }
.cta-band .lead { max-width: 58ch; margin: 0 auto 30px; }
.cta-band--xl .h1 { font-size: clamp(34px, 5vw, 66px); max-width: 18ch; margin-bottom: 30px; }
.cta-simple { padding: 110px 0; }
.cta-simple .h1 { margin-bottom: 16px; }

/* Tablas */
/* position: relative contiene los .sr-only (absolutos) dentro del scroll; sin él desbordan la página en móvil. */
.table-wrap { position: relative; overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.scope-table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: 14px; color: var(--navy); }
.scope-table thead th { background: var(--ink); color: var(--cream); font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 13px 18px; text-align: center; }
.scope-table thead th:first-child { text-align: left; width: 46%; }
.scope-table tbody tr { border-top: 1px solid var(--sand); }
.scope-table tbody th { padding: 12px 18px; text-align: left; font-weight: 500; color: var(--ink); }
.scope-table td { padding: 12px 18px; text-align: center; }
.scope-table td.is-no { color: #C4C2BB; }

.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.table-wrap:has(.matrix) { border: 1px solid var(--on-dark-line); }
.matrix thead { background: rgba(65, 90, 119, .28); }
.matrix thead th { padding: 13px 8px; text-align: center; font: 500 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--line); }
.matrix thead th:first-child { text-align: left; padding-left: 18px; width: 28%; }
.matrix tbody tr { border-top: 1px solid rgba(224, 225, 221, .12); }
.matrix tbody th { padding: 13px 18px; text-align: left; font-weight: 500; }
.matrix tbody th a { color: var(--cream); text-decoration: none; }
.matrix tbody th a:hover { text-decoration: underline; }
.matrix td { text-align: center; padding: 13px 10px; color: var(--cream); font-weight: 500; font-size: 13px; }
.matrix td.is-p { color: #C7CDD4; }
.matrix td.is-n { color: var(--mist); }

.spec-table { border-radius: 16px; overflow: hidden; background: #fff; }
.spec-table__row { display: grid; grid-template-columns: .85fr 1.15fr; font-size: 14px; }
.spec-table__row + .spec-table__row { border-top: 1px solid var(--line); }
.spec-table dt { padding: 14px 20px; background: var(--cream-bg); font-weight: 500; color: var(--ink); }
.spec-table dd { padding: 14px 20px; color: var(--steel); }

/* Celdas unidas (criterios, datos de proyecto) */
.cells { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cells--cards { margin-top: 0; border-radius: var(--r-lg); }
.cell { background: #fff; padding: 22px; }
.cell--lg { padding: 28px 26px; }
.cell .label-mono { font-size: 11px; margin-bottom: 10px; }
.cell__value { font: 500 14px/1.5 var(--f-body); color: var(--ink); }
.cell .small { line-height: 1.65; }

/* Insignias de nivel */
.badge { display: inline-block; padding: 6px 13px; border-radius: 999px; font: 500 12px/1.2 var(--f-body); white-space: nowrap; }
.badge--abierto { background: var(--ink); color: var(--cream); }
.badge--registro { background: var(--sand); color: var(--steel); }
.badge--cliente { background: #fff; color: var(--mist); }

/* Tarjetas con borde sobre fondo oscuro */
.outline-card { border: 1px solid var(--on-dark-line); border-radius: var(--r-md); padding: 24px; }
.outline-card .label-mono { font-size: 11px; letter-spacing: 0; }
.outline-card .h5 { font-size: 16px; margin-bottom: 8px; }
.note { margin-top: 22px; color: var(--mist); }

/* Lema de marca */
.lema { padding: 104px 0; text-align: center; }
.lema__label { letter-spacing: .2em; margin-bottom: 26px; }
.lema__text { margin: 0 auto; max-width: 20ch; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.04em; color: var(--ink); text-wrap: pretty; }
.lema__text--sm { font-size: clamp(30px, 4vw, 56px); line-height: 1.06; }
.lema__text .sans { font-family: var(--f-sans); font-weight: 700; }
.lema__text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--steel); }

/* Preguntas frecuentes */
.faq-pills { display: flex; flex-direction: column; gap: 10px; }
.faq-pill { background: #fff; border: 1px solid var(--line); border-radius: 26px; }
.faq-pill summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font: 500 14.5px/1.45 var(--f-body); color: var(--ink); }
.faq-pill summary::-webkit-details-marker { display: none; }
.faq-pill__icon { flex: none; font-size: 18px; line-height: 1; color: var(--steel); transition: transform .2s; }
.faq-pill[open] .faq-pill__icon { transform: rotate(45deg); }
.faq-pill__a { padding: 0 24px 18px; font-size: 14px; line-height: 1.7; color: var(--steel); }
.faq-pill__a p + p { margin-top: .6em; }
.faq-lines__item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-lines .h4 { font-size: 16.5px; }
.faq-lines__a { max-width: 58ch; font-size: 14px; line-height: 1.7; color: var(--steel); }
.faq-lines__a p + p { margin-top: .6em; }

/* Diálogos */
.dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--navy); box-shadow: 0 30px 80px rgba(13, 27, 42, .35); }
.dialog::backdrop { background: rgba(13, 27, 42, .7); backdrop-filter: blur(2px); }
.dialog__body { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.dialog__body .h3 { font-size: 24px; margin: 0; }
.dialog__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; z-index: 2; }
.dialog--video { width: min(960px, calc(100% - 32px)); background: #000; }
.dialog__video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
