/* ITODEOBRA · estilos sobre Bootstrap 5.3.8
   Estilo: corporativo moderno. Grafito + naranja de marca + crema, tarjetas redondeadas,
   etiquetas píldora, bloques oscuros con degradado. Public Sans (títulos) + Instrument Sans (texto). */
:root {
  --io-orange: #ff6a23;        /* naranja de marca: botones, acentos sobre oscuro */
  --io-orange-hl: #e4530f;     /* naranja para palabras destacadas sobre fondo claro */
  --io-orange-ink: #b23a07;    /* naranja accesible para enlaces sobre claro */
  --io-ink: #16191e;           /* grafito principal */
  --io-ink-2: #22262d;
  --io-muted: #62666d;
  --io-cream: #f3efe9;
  --io-cream-2: #ebe5dc;
  --io-white: #ffffff;
  --io-line: rgba(0, 0, 0, .09);
  --io-line-light: rgba(255, 255, 255, .12);
  --io-radius: 20px;
  --io-radius-sm: 12px;
  --io-head: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bs-body-font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #3b3f46;
  --bs-body-bg: var(--io-cream);
  --bs-emphasis-color: var(--io-ink);
  --bs-secondary-color: var(--io-muted);
  --bs-primary: var(--io-orange-ink);
  --bs-primary-rgb: 178, 58, 7;
  --bs-link-color: var(--io-orange-ink);
  --bs-link-color-rgb: 178, 58, 7;
  --bs-link-hover-color: var(--io-ink);
  --bs-link-hover-color-rgb: 22, 25, 30;
  --bs-border-color: var(--io-line);
  --bs-border-radius: var(--io-radius-sm);
  --bs-border-radius-lg: var(--io-radius);
  --bs-focus-ring-color: rgba(255, 106, 35, .4);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-title, .hero-title { font-family: var(--io-head); color: var(--io-ink); font-weight: 700; letter-spacing: -.02em; }
.display-4, .display-5, .display-6 { font-weight: 700; letter-spacing: -.025em; }
.lead { font-size: 1.1rem; color: var(--io-muted); }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .2em; }
.bi { width: 1em; height: 1em; vertical-align: -.125em; flex-shrink: 0; }
.skip { position: absolute; z-index: 2000; left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; border-radius: 99px; }
.text-body-secondary { color: var(--io-muted) !important; }
.text-white-75 { color: rgba(255, 255, 255, .72); }
.hl { color: var(--io-orange-hl); }
.section-dark .hl, .hero-full .hl, .page-banner .hl, .cta-box .hl { color: var(--io-orange); }
::selection { background: var(--io-orange); color: var(--io-ink); }

/* Etiqueta píldora */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .4rem; border-radius: 99px; background: var(--io-white); color: var(--io-ink); font-size: .82rem; font-weight: 600; margin-bottom: 1.1rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.eyebrow::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: radial-gradient(circle, var(--io-orange) 0 35%, rgba(255, 106, 35, .25) 36% 100%); }
.eyebrow-glass, .section-dark .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(6px); border: 1px solid var(--io-line-light); box-shadow: none; }
.section-head { max-width: 50rem; margin-bottom: 3rem; }
.section-head.text-center { margin-inline: auto; }
.section-head .display-title { margin-bottom: .9rem; }
.display-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; margin-bottom: 1rem; }

/* Botones píldora con flecha en círculo */
.btn { font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 99px; --bs-btn-padding-x: 1.35rem; --bs-btn-padding-y: .7rem; }
.btn > .bi:last-child:not(:first-child) { width: 1.9rem; height: 1.9rem; padding: .45rem; border-radius: 50%; margin: -.35rem -.95rem -.35rem .1rem; transition: transform .2s; }
.btn:hover > .bi:last-child:not(:first-child) { transform: rotate(45deg); }
.btn-primary {
  --bs-btn-color: var(--io-ink); --bs-btn-bg: var(--io-orange); --bs-btn-border-color: var(--io-orange);
  --bs-btn-hover-color: var(--io-ink); --bs-btn-hover-bg: #ff8447; --bs-btn-hover-border-color: #ff8447;
  --bs-btn-active-color: var(--io-ink); --bs-btn-active-bg: #f25a12; --bs-btn-active-border-color: #f25a12;
  --bs-btn-focus-shadow-rgb: 255, 106, 35;
}
.btn-primary > .bi:last-child:not(:first-child) { background: var(--io-ink); color: #fff; }
.btn-outline-light { --bs-btn-hover-color: var(--io-ink); --bs-btn-border-color: rgba(255, 255, 255, .5); }
.btn-outline-light > .bi:last-child:not(:first-child) { background: var(--io-orange); color: var(--io-ink); }
.btn-outline-dark { --bs-btn-color: var(--io-ink); --bs-btn-border-color: rgba(0, 0, 0, .25); --bs-btn-hover-bg: var(--io-ink); --bs-btn-hover-border-color: var(--io-ink); }
.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.6rem; --bs-btn-font-size: 1rem; }

/* Header blanco */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--io-line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.navbar { --bs-navbar-padding-y: .55rem; }
.navbar-brand { display: flex; align-items: center; gap: .9rem; }
.navbar-brand img { height: 64px; width: auto; }
.brand-desc { font-size: .74rem; line-height: 1.3; color: var(--io-muted); border-left: 1px solid var(--io-line); padding-left: .9rem; }
.navbar-nav .nav-link { font-weight: 500; color: var(--io-ink); padding-inline: .75rem !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active, .navbar-nav .nav-link.show { color: var(--io-orange-ink); }
.navbar-toggler { border: 1px solid var(--io-line); border-radius: 50%; width: 2.8rem; height: 2.8rem; color: var(--io-ink); font-size: 1.3rem; padding: 0; }
.offcanvas { background: #fff; }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--io-orange); --bs-dropdown-link-active-color: var(--io-ink); --bs-dropdown-link-hover-bg: var(--io-cream); border: 0; border-radius: var(--io-radius-sm); box-shadow: 0 20px 50px rgba(0, 0, 0, .14); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
@media (min-width: 992px) { .navbar-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }
@media (max-width: 1199.98px) { .brand-desc { display: none; } }
@media (max-width: 991.98px) { .navbar-brand img { height: 52px; } .offcanvas .dropdown-menu { background: var(--io-cream); box-shadow: none; } }

/* Secciones */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.bg-soft { background: var(--io-cream-2); }
.section-dark { position: relative; color: rgba(255, 255, 255, .75); background: radial-gradient(ellipse at 0% 0%, rgba(255, 106, 35, .22) 0%, transparent 45%), linear-gradient(180deg, #1b1f25 0%, var(--io-ink) 100%); }
.section-dark h2, .section-dark h3, .section-dark .h3, .section-dark h4 { color: #fff; }
.section-dark .lead, .section-dark p { color: rgba(255, 255, 255, .72); }
.section-dark .checks li { color: rgba(255, 255, 255, .85); }
.link-arrow { font-weight: 600; color: var(--io-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow .bi { color: var(--io-orange-hl); }
.link-arrow:hover { color: var(--io-orange-ink); }
.inline-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 2.5rem 0 0; font-size: .95rem; }
.inline-cta > .bi { width: 2rem; height: 2rem; padding: .45rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); }
.inline-cta a { font-weight: 600; color: var(--io-orange-ink); }

/* Hero portada */
.hero-full { position: relative; isolation: isolate; color: #fff; background-color: var(--io-ink); background-size: cover; background-position: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem); }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 16, 20, .95) 0%, rgba(14, 16, 20, .6) 55%, rgba(14, 16, 20, .35) 100%), linear-gradient(90deg, rgba(14, 16, 20, .7) 0%, transparent 70%); }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 1.2rem; }
.hero-full .lead { color: rgba(255, 255, 255, .8); max-width: 40rem; }
.glass-card { padding: 1.5rem; border-radius: var(--io-radius); background: rgba(255, 255, 255, .08); border: 1px solid var(--io-line-light); backdrop-filter: blur(12px); }
.glass-card p { color: rgba(255, 255, 255, .85); }
.glass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--io-line-light); font-size: .8rem; color: rgba(255, 255, 255, .7); }
.glass-stats strong { display: block; font-family: var(--io-head); font-size: 2rem; color: #fff; line-height: 1.1; }
.glass-stats strong span, .big-stat span { color: var(--io-orange); }

/* Banner páginas interiores */
.page-banner { position: relative; isolation: isolate; background-color: var(--io-ink); background-size: cover; background-position: center; padding: clamp(4rem, 9vw, 6.5rem) 0; color: #fff; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 20, .78) 0%, rgba(14, 16, 20, .88) 100%), radial-gradient(ellipse at 50% 120%, rgba(255, 106, 35, .35), transparent 60%); }
.page-banner h1 { max-width: 56rem; margin-bottom: 1rem; }
.page-banner .lead { color: rgba(255, 255, 255, .78); max-width: 46rem; }
.page-banner .breadcrumb { justify-content: center; }
.breadcrumb { --bs-breadcrumb-divider: "›"; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); font-size: .88rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--io-orange); }
.page-hero { padding: 3rem 0 2rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: var(--io-muted); --bs-breadcrumb-item-active-color: var(--io-muted); }
.page-hero .breadcrumb a { color: var(--io-ink); }
.byline { color: var(--io-muted); font-size: .92rem; margin: 0; }

/* Tarjetas */
.soft-card { display: block; padding: 1.75rem; border-radius: var(--io-radius); background: var(--io-white); color: inherit; text-decoration: none; }
.soft-card p { color: var(--io-muted); font-size: .95rem; }
a.soft-card { transition: transform .2s, box-shadow .2s; }
a.soft-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.icon-badge { display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); font-size: 1.35rem; flex: 0 0 auto; }
.icon-badge-sm { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; }
.soft-card .big-stat, .big-stat { font-family: var(--io-head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--io-ink); margin-bottom: .4rem; }
.img-card { position: relative; border-radius: var(--io-radius); overflow: hidden; min-height: 320px; }
.img-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass-chip { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 99px; background: rgba(22, 25, 30, .6); color: #fff; backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; }
.glass-chip .bi { color: var(--io-orange); }
.checks li { display: flex; gap: .65rem; padding: .35rem 0; }
.checks .bi { color: var(--io-orange-hl); margin-top: .22rem; }
.section-dark .checks .bi { color: var(--io-orange); }

/* Servicios: tarjetas con imagen */
.svc-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; border-radius: var(--io-radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 20, .1) 20%, rgba(14, 16, 20, .92) 85%); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card .icon-badge { position: absolute; top: 1.25rem; left: 1.25rem; }
.svc-body { padding: 1.5rem; }
.svc-body h3 { color: #fff; }
.svc-body p { color: rgba(255, 255, 255, .78) !important; font-size: .93rem; }
.svc-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--io-orange); font-size: .9rem; }

/* Salud: imagen ancha con características */
.wide-img { position: relative; border-radius: var(--io-radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.wide-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wide-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(14, 16, 20, .9) 100%); }
.wide-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 2rem; width: 100%; }
.wide-features li { display: flex; align-items: center; gap: .9rem; color: #fff; font-family: var(--io-head); font-weight: 600; }
@media (max-width: 767.98px) { .wide-features { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; } .wide-img { min-height: 520px; } }

/* Metodología: pasos */
.step-card { position: relative; overflow: hidden; padding: 1.75rem 1.75rem 3.5rem; border-radius: var(--io-radius); background: var(--io-white); }
.step-card h3 { margin: 1.2rem 0 .5rem; }
.step-card p { color: var(--io-muted); font-size: .95rem; margin: 0; }
.step-big { position: absolute; right: 1.25rem; bottom: -.6rem; font-family: var(--io-head); font-weight: 800; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(0, 0, 0, .12); }
.mini-steps li { display: flex; gap: 1rem; padding: 1rem; margin-bottom: .75rem; background: var(--io-white); border-radius: var(--io-radius-sm); }
.mini-step { flex: 0 0 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.method-row { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 1.5rem; margin-bottom: 1rem; background: var(--io-white); border-radius: var(--io-radius); }
.method-num { height: 3.5rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); font-family: var(--io-head); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.method-body h3 .bi { color: var(--io-orange-hl); }
.pill-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.pill-list li { font-size: .8rem; padding: .25rem .7rem; border-radius: 99px; background: var(--io-cream); color: var(--io-ink-2); font-weight: 500; }

/* Proyectos: tarjetas con imagen */
.proj-card { position: relative; border-radius: var(--io-radius); overflow: hidden; aspect-ratio: 4 / 4.4; isolation: isolate; }
.proj-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.proj-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(14, 16, 20, .9) 100%); }
.proj-card:hover img { transform: scale(1.06); }
.proj-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; }
.proj-body h3 { color: #fff; }
.proj-loc { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.pill-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--io-ink); background: var(--io-orange); padding: .25rem .65rem; border-radius: 99px; margin-bottom: .6rem; }
.pill-tag::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: var(--io-ink); }
.proj-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; font-weight: 600; font-size: .88rem; color: var(--io-orange); text-decoration: none; }
.btn-photo { background: none; border: 0; padding: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.btn-filter { --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1.1rem; --bs-btn-font-size: .9rem; background: var(--io-white); color: var(--io-ink); border: 0; }
.btn-filter:hover { background: var(--io-cream-2); }
.btn-filter.active { background: var(--io-orange); color: var(--io-ink); }
.obra.d-none-filter { display: none; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--io-ink); background: var(--io-orange); padding: .2rem .6rem; border-radius: 99px; margin-bottom: .5rem; }
.case-card { color: inherit; text-decoration: none; border: 0; border-radius: var(--io-radius); overflow: hidden; background: var(--io-white); transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.case-card .card-img-top { aspect-ratio: 10 / 6; object-fit: cover; border-radius: 0; }
.case-card .card-body { padding: 1.5rem; }
.case-card p { color: var(--io-muted); }

/* Sectores y clientes */
.sector-card h3 { margin: 1.1rem 0 .4rem; }
.sector-count { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--io-orange-ink); }
.logo-strip > p { text-align: center; font-weight: 600; color: var(--io-muted); margin-bottom: 1.25rem; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; }
.logos li { display: grid; place-items: center; padding: 1rem; min-height: 96px; border-radius: var(--io-radius-sm); background: var(--io-white); }
.logos img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.clients { padding: 3rem 0; }
.clients-title { text-align: center; font-weight: 600; color: var(--io-muted); margin-bottom: 1.25rem; }
@media (max-width: 767.98px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* Lista de servicios / lecturas */
.spec-list { margin: 0; display: grid; gap: .9rem; }
.spec-row { display: grid; grid-template-columns: 3rem 1fr 3rem; gap: 1rem; align-items: center; padding: 1.25rem 1.4rem; border-radius: var(--io-radius); background: var(--io-white); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.spec-row:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .07); }
.spec-num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--io-cream); font-family: var(--io-head); font-weight: 700; color: var(--io-ink); }
.spec-title { display: block; margin-bottom: .25rem; color: var(--io-ink); font-family: var(--io-head); }
.spec-desc { display: block; color: var(--io-muted); font-size: .95rem; }
.spec-go { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); transition: transform .2s; }
.spec-row:hover .spec-go { transform: rotate(45deg); }
@media (max-width: 575.98px) { .spec-row { grid-template-columns: 1fr 2.6rem; } .spec-num { display: none; } .spec-go { width: 2.6rem; height: 2.6rem; } }

/* Matriz de criticidad */
.matrix-card { background: var(--io-white); color: var(--bs-body-color); border-radius: var(--io-radius); padding: 1.5rem; margin: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .1); }
.matrix-caption { display: flex; flex-direction: column; margin-bottom: 1rem; }
.matrix-caption strong { font-family: var(--io-head); color: var(--io-ink); font-size: 1.1rem; }
.matrix-caption span { font-size: .85rem; color: var(--io-muted); }
.matrix { font-size: .9rem; --bs-table-bg: transparent; }
.matrix thead th { white-space: normal; background: var(--io-ink); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; vertical-align: middle; text-align: center; border: 0; }
.matrix thead th:first-child { text-align: left; border-radius: 10px 0 0 10px; }
.matrix thead th:last-child { border-radius: 0 10px 10px 0; }
.matrix thead th .bi { display: block; margin: 0 auto .3rem; font-size: 1.1rem; color: var(--io-orange); }
.matrix tbody th { font-weight: 600; white-space: nowrap; color: var(--io-ink); }
.matrix td { text-align: center; }
.dot { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; }
.dot.n1, .badge-level.n1 { background: #d62828; }
.dot.n2, .badge-level.n2 { background: #f07d1a; }
.dot.n3, .badge-level.n3 { background: #e9b824; }
.dot.n4, .badge-level.n4 { background: #2f9e57; }
.dot.n0 { background: transparent; border: 1.5px solid #9aa0a8; }
.badge-level { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; }
.badge-level.n3 { color: #3a2e00; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; font-size: .8rem; color: var(--io-muted); }
.matrix-legend li { display: flex; align-items: center; gap: .4rem; }

/* Bloques varios */
.aside-card { padding: 1.75rem; border-radius: var(--io-radius); background: var(--io-white); }
.fact { padding: 1.75rem; border-radius: var(--io-radius); background: var(--io-white); height: 100%; }
.fact strong { display: block; font-family: var(--io-head); font-size: 2.4rem; font-weight: 700; color: var(--io-ink); line-height: 1.1; }
.fact strong::first-letter { color: var(--io-orange-hl); }
.fact span { color: var(--io-muted); font-size: .92rem; }
.ficha div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--io-line); }
.ficha dt { font-weight: 600; font-size: .9rem; color: var(--io-ink); }
.ficha dd { margin: 0; text-align: right; font-size: .9rem; }
.result { padding: 1.25rem; border-radius: var(--io-radius-sm); background: var(--io-white); text-align: center; }
.result span { display: block; font-size: .85rem; color: var(--io-muted); margin-top: .3rem; }
.quote { border-left: 4px solid var(--io-orange); padding: .5rem 0 .5rem 1.25rem; font-size: 1.15rem; }
.pending { background: #fff4c2; border: 1px dashed #b48f00; color: #5c4a00; padding: .05rem .35rem; border-radius: 6px; font-size: .9em; }
.draft-note { background: #fff8e1; border: 1px dashed #b48f00; border-radius: var(--io-radius-sm); padding: .9rem 1.1rem; margin-bottom: 2rem; font-size: .92rem; }
.socio { padding: 1.75rem; border-radius: var(--io-radius); background: var(--io-white); margin-bottom: 1.25rem; }
.socio-head { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; font-family: var(--io-head); }
.exp summary { cursor: pointer; font-weight: 600; color: var(--io-orange-ink); }
.exp-title { font-family: var(--io-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--io-ink); }
.exp-list { padding-left: 1.1rem; font-size: .92rem; color: var(--io-muted); }

/* FAQ */
.faq { --bs-accordion-bg: var(--io-white); --bs-accordion-border-width: 0; --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(255, 106, 35, .3); --bs-accordion-active-bg: var(--io-white); --bs-accordion-active-color: var(--io-ink); }
.faq .accordion-item { border-radius: var(--io-radius-sm) !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { font-family: var(--io-head); font-weight: 600; color: var(--io-ink); padding: 1.15rem 1.4rem; box-shadow: none; border-radius: var(--io-radius-sm) !important; }
.faq .accordion-button::after { background-image: none; content: "+"; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--io-cream); font-size: 1.2rem; transform: none; }
.faq .accordion-button:not(.collapsed)::after { content: "−"; background: var(--io-orange); transform: none; }
.faq .accordion-body { padding: 0 1.4rem 1.25rem; color: var(--io-muted); }

/* Formulario */
.form-card { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--io-radius); background: var(--io-white); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--io-ink); }
.form-control, .form-select { padding: .8rem 1rem; border-radius: var(--io-radius-sm); border-color: transparent; background-color: var(--io-cream); }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--io-orange); box-shadow: 0 0 0 .2rem rgba(255, 106, 35, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.next-steps li { display: flex; gap: .9rem; align-items: flex-start; padding: .55rem 0; }
.next-steps span { flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.section-dark .next-steps li { color: rgba(255, 255, 255, .85); }
.ok-icon .bi { font-size: 4rem; color: var(--io-orange-hl); }

/* Artículos */
.article h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.article p, .article li { font-size: 1.06rem; line-height: 1.75; }
.article .lead { font-size: 1.2rem; color: var(--io-ink-2); }
.article .table { --bs-table-bg: var(--io-white); }

/* CTA */
.cta-wrap { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.cta-box { padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--io-radius) + 8px); color: rgba(255, 255, 255, .75); background: radial-gradient(ellipse at 100% 0%, rgba(255, 106, 35, .45) 0%, transparent 55%), linear-gradient(135deg, #1d2128 0%, var(--io-ink) 100%); }
.section + .cta-wrap, .bg-soft + .cta-wrap, .section-dark + .cta-wrap { padding-top: clamp(4rem, 8vw, 6rem); }

/* Footer */
.site-footer { position: relative; overflow: hidden; color: rgba(255, 255, 255, .65); padding: 4.5rem 0 0; font-size: .93rem; background: radial-gradient(ellipse at 0% 0%, rgba(255, 106, 35, .18) 0%, transparent 40%), var(--io-ink); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--io-orange); }
.site-footer li { padding: .28rem 0; }
.site-footer li a::before { content: ""; display: inline-block; width: .35rem; height: .35rem; border-radius: 50%; background: var(--io-orange); margin-right: .55rem; vertical-align: middle; }
.footer-brand { font-family: var(--io-head); font-weight: 700; font-size: 1.6rem; color: #fff; }
.footer-title { font-family: var(--io-head); color: #fff; font-weight: 600; font-size: 1.05rem; margin-bottom: .9rem; }
.social { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 1.05rem; }
.social:hover { background: var(--io-orange); color: var(--io-ink) !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--io-line-light); margin-top: 3rem; padding: 1.4rem 0; font-size: .85rem; }
.footer-giant { margin: 0; text-align: center; font-family: var(--io-head); font-weight: 800; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1); user-select: none; transform: translateY(12%); }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 1030; display: inline-flex; align-items: center; gap: .5rem; background: #25d366; color: #0b2e17; padding: .8rem 1.15rem; border-radius: 99px; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.wa-float .bi { font-size: 1.35rem; }
.wa-float:hover { background: #2ee070; color: #0b2e17; }
@media (max-width: 575.98px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

@media (max-width: 575.98px) {
  .matrix-card { padding: 1rem; }
  .matrix { font-size: .78rem; }
  .matrix thead th { font-size: .58rem; padding: .45rem .3rem; }
  .matrix tbody th { white-space: normal; min-width: 7rem; }
  .matrix td, .matrix th { padding: .45rem .3rem; }
  .badge-level { width: 1.45rem; height: 1.45rem; font-size: .75rem; }
  .glass-stats strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.section-dark .form-card p, .section-dark .soft-card p, .section-dark .matrix-card p { color: var(--io-muted); }
.section-dark .form-card h3, .section-dark .matrix-card h3 { color: var(--io-ink); }
.row > [class*="col"] > .section-head { margin-bottom: 0; }

/* Proyectos: icono de ampliar */
.proj-zoom { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--io-ink); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.proj-card:hover .proj-zoom, .proj-card:focus-within .proj-zoom { opacity: 1; transform: none; }
.proj-card .btn-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: zoom-in; border-radius: var(--io-radius); }
.proj-card .btn-photo:focus-visible { outline: 3px solid var(--io-orange); outline-offset: -3px; border-radius: var(--io-radius); }

/* Galería de fotos a pantalla completa */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; align-items: center; background: rgba(10, 12, 15, .97); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; padding: 0 1rem 1rem; }
.lightbox.is-open { opacity: 1; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0 .5rem; color: rgba(255, 255, 255, .75); font-size: .9rem; font-weight: 600; }
.lb-stage { grid-row: 2; grid-column: 2; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; }
.lb-img { display: block; width: 100%; height: calc(100vh - 9rem); height: calc(100dvh - 9rem); object-fit: contain; transition: opacity .2s; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.lightbox.is-loading .lb-img { opacity: .35; }
.lb-cap { text-align: center; color: #fff; }
.lb-cap strong { display: block; font-family: var(--io-head); font-size: 1.1rem; }
.lb-cap span { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.lb-btn { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; transition: background .2s, color .2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--io-orange); color: var(--io-ink); outline: none; }
.lb-prev { grid-row: 2; grid-column: 1; margin-right: 1rem; }
.lb-next { grid-row: 2; grid-column: 3; margin-left: 1rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }
@media (max-width: 767.98px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 0 .75rem .75rem; }
  .lb-stage { grid-column: 1; }
  .lb-img { height: calc(100vh - 12rem); height: calc(100dvh - 12rem); }
  .lb-prev, .lb-next { grid-row: 3; grid-column: 1; margin: 0; }
  .lb-prev { justify-self: start; } .lb-next { justify-self: end; }
}

/* Ajustes del cliente: títulos en mayúscula y textos justificados */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-title, .hero-title, .spec-title, .footer-brand, .matrix-caption strong { text-transform: uppercase; letter-spacing: .01em; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; }
.display-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; }
.page-banner h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; }
main p, main li, .accordion-body, .site-footer p { text-align: justify; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
.checks li, .text-center p, .text-center li, .page-banner p, .inline-cta, .logo-strip p, .clients-title, .proj-loc, .glass-stats li, .big-stat, .sector-count, main .eyebrow, .form-text, .ficha dd, .result, .next-steps li, .matrix-legend li, .pill-list li, .wide-features li, .glass-chip, .breadcrumb li { text-align: inherit; hyphens: manual; -webkit-hyphens: manual; }
.glass-card p { hyphens: manual; -webkit-hyphens: manual; }
@media (min-width: 992px) { .cta-actions .btn { white-space: nowrap; } }
@media (max-width: 991.98px) { .cta-actions { align-items: flex-start; } }
.stage-list { margin: 0; }
.stage-list li { display: flex; align-items: center; gap: .65rem; padding: .3rem 0; text-align: left; color: var(--io-ink-2); font-size: .95rem; }
.stage-list span { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--io-orange); color: var(--io-ink); display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.reasons-head { margin: 3.5rem 0 1.5rem; display: flex; align-items: center; gap: 1rem; }
.reasons-head::after { content: ""; flex: 1; height: 1px; background: var(--io-line); }
.reason-card { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; padding-right: 4.5rem; }
.reason-body { flex: 1; }
.reason-card h4 { margin: .35rem 0 .45rem; line-height: 1.3; }
.reason-card .reason-num { position: absolute; top: 1.4rem; right: 1.5rem; }
@media (max-width: 575.98px) { .reason-card { flex-direction: column; padding-right: 1.75rem; } }
.reason-num { font-family: var(--io-head); font-weight: 800; font-size: 2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(0, 0, 0, .18); }
.logo-text span { font-family: var(--io-head); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; color: #8b9097; transition: color .2s; }
.logos li.logo-text:hover span { color: var(--io-ink); }
.logos img { max-width: 82%; object-fit: contain; }
.logos img[src*="cliente-11"] { max-height: 44px; }
.result-text { text-align: left; height: 100%; } .result-text span { font-size: .92rem; margin-top: .4rem; }
.other-services { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--io-radius); background: var(--io-white); }
.other-services .btn .bi { color: var(--io-orange-hl); }
.other-services .btn:hover .bi { color: var(--io-orange); }
[id="dron"], [id="ito-ambiental"], [id="bim"], [id="economia-circular"] { scroll-margin-top: 110px; }
:target > .soft-card { box-shadow: 0 0 0 3px var(--io-orange); transition: box-shadow .3s; }

/* Ficha del proyecto: etiqueta arriba y valor abajo, alineados a la izquierda */
.ficha { margin: 0; }
.ficha div { display: block; padding: .8rem 0; border-bottom: 1px solid var(--io-line); }
.ficha div:last-child { border-bottom: 0; padding-bottom: 0; }
.ficha dt { display: block; font-family: var(--io-head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--io-muted); margin-bottom: .2rem; }
.ficha dd { display: block; margin: 0; text-align: left !important; font-size: 1rem; font-weight: 600; color: var(--io-ink); line-height: 1.35; }

/* Proyectos agrupados por sector */
.obra-group + .obra-group { margin-top: 3.5rem; }
.obra-group.d-none-filter { display: none; }
.group-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--io-line); }
.group-count { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--io-muted); }
.obra-group[id] { scroll-margin-top: 110px; }

/* Menú Proyectos en dos columnas por sector */
.dropdown-menu.mega .mega-group { list-style: none; padding: .25rem 0; }
.dropdown-menu.mega .mega-top { border-bottom: 1px solid var(--io-line); margin-bottom: .25rem; padding-bottom: .5rem; }
@media (min-width: 992px) {
  .dropdown-menu.mega { min-width: 600px; }
  .dropdown-menu.mega.show, .navbar-nav .dropdown:hover > .dropdown-menu.mega { display: grid; grid-template-columns: 1fr 1fr; column-gap: .5rem; }
  .dropdown-menu.mega .mega-top { grid-column: 1 / -1; display: flex; gap: .25rem; }
  .dropdown-menu.mega .mega-top .dropdown-item { width: auto; font-weight: 600; }
}
@media (min-width: 992px) {
  .dropdown-menu.mega .mega-group:nth-child(2) { grid-column: 1; grid-row: 2 / span 4; }
  .dropdown-menu.mega .mega-group:nth-child(n+3) { grid-column: 2; }
}
.staff { border: 2px dashed rgba(255, 106, 35, .45); } .staff .avatar .bi { font-size: 1.4rem; }

/* Título "Staff de residentes de obra" en una sola línea */
.staff h3 { white-space: nowrap; font-size: clamp(1rem, 4.6vw, 1.5rem); }
@media (max-width: 575.98px) {
  .socio-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
.socio-head p { text-align: left !important; }
.brand-desc { text-transform: uppercase; letter-spacing: .03em; font-weight: 600; font-size: .68rem; }
