/* ==========================================================================
   Ignitegra – hoja de estilos principal
   ========================================================================== */

@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/RobotoCondensed-300_800.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-400.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #fe0000;
    --red-dark: #d73502;
    --red-soft: #ff2a2a;
    --ink: #222222;
    --ink-2: #181d23;
    --text: #7a7a7a;
    --text-2: #575a5f;
    --dark: #080a14;
    --dark-2: #303030;
    --light: #eeeeee;
    --line: #dadada;
    --white: #ffffff;

    --font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --font-body: "Roboto", Arial, sans-serif;

    --container: 1280px;
    --gutter: 20px;
    --section-y: 90px;
    --shadow: 0 3px 15px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --topbar-h: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    font-family: var(--font-head);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--light);
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
main:focus { outline: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--red); color: var(--white); padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.icon { width: 1em; height: 1em; flex: none; }
.icon--solid { fill: currentColor; stroke: none; }
.icon--solid path, .icon--solid rect, .icon--solid circle { stroke: none; }
.icon--bold { stroke-width: 2.4; }
.icon--fill path:first-child { fill: currentColor; }
.icon--fill path:last-child { stroke: var(--red); }

/* ---------- Tipografía común ---------- */
.eyebrow {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}
.section-title { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.section-title--md { font-size: 29px; }
.section-title--lg { font-size: 28px; font-weight: 600; }
.section-title--invert { color: var(--white); }
.lead { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text); margin-top: 20px; }
.lead--dark { color: #333; font-family: var(--font-head); font-size: 15px; }
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--light); }
.section--white { background: var(--white); }
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: 0 22px;
    font-family: var(--font-head); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
    border: 2px solid transparent; border-radius: 0;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--dark); border-color: var(--dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--light:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn--block { width: 100%; }
.link-accent { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--red); transition: color .2s; }
.link-accent:hover { color: var(--ink); }

/* ---------- Cabecera ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: var(--white); }
.topbar { background: rgba(8, 10, 20, .75); font-size: 14px; font-weight: 500; }
.topbar__list { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 34px; padding-block: 11px; }
.topbar__list li, .topbar__list a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__list a:hover { color: var(--red); }
.topbar .icon { color: var(--red); font-size: 14px; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; }
.navbar__logo { display: block; width: 190px; flex: none; }
.navbar__logo img { width: 190px; height: auto; }

/* Al hacer scroll, en escritorio queda fija solo la barra de contacto (como la referencia). */
.site-header.is-stuck { position: fixed; animation: slideDown .35s var(--ease); }
.site-header.is-stuck .topbar { background: rgba(60, 62, 70, .9); }
.site-header.is-stuck .navbar { display: none; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.progress { position: fixed; inset: 0 auto auto 0; z-index: 60; height: 4px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

.nav__toggle, .nav__close, .nav__panel-head, .nav__cta { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    position: relative; display: block; padding: 13px 14px;
    font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--white);
    transition: color .2s;
}
.nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: rgba(255, 255, 255, .6); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--red); }

.nav__langs { display: flex; align-items: center; }
.lang-switch { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0 0 0 6px; }
.lang-switch__link { display: grid; place-items: center; padding: 13px 4px; opacity: .72; }
.lang-switch__flag { width: 18px; height: 12px; display: block; }
.lang-switch__link.is-current, .lang-switch__link:hover { opacity: 1; }

/* ---------- Formas inferiores en V ---------- */
.shape-bottom { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--light); pointer-events: none; z-index: 2; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 780px; display: grid; align-items: center; overflow: hidden; background: var(--dark); color: var(--white); isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; background: rgba(8, 10, 20, .45); z-index: -1; }
.hero__content { text-align: center; padding-top: 150px; padding-bottom: 120px; }
.hero__title { font-size: clamp(42px, 6vw, 85px); font-weight: 500; line-height: 1; color: var(--line); }
.hero__subtitle { margin-top: 20px; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; color: var(--red); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { position: relative; min-height: 390px; display: grid; align-items: center; overflow: hidden; color: var(--white); isolation: isolate; background: var(--dark); }
.page-hero--post { min-height: 450px; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__overlay { position: absolute; inset: 0; background: rgba(8, 10, 20, .62); z-index: -1; }
.page-hero__content { text-align: center; padding-top: 130px; padding-bottom: 80px; }
.page-hero__title { font-size: clamp(32px, 3.4vw, 45px); font-weight: 600; }
.page-hero--post .page-hero__title { text-transform: uppercase; }
.breadcrumb ol { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); margin-right: 6px; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Lista de ventajas ---------- */
.feature-list { margin-top: 30px; display: grid; gap: 14px; position: relative; }
.feature-list__item { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 20px; align-items: start; min-height: 50px; }
.feature-list__item:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 50px; height: 14px; border-left: 1px solid var(--line); }
.feature-list__icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 18px; transition: background-color .25s, color .25s; }
.feature-list__icon .icon--fill path:last-child { stroke: var(--red); }
.feature-list__title { font-size: 24px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.feature-list__text { margin-top: 8px; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.values .feature-list__icon { background: var(--white); color: var(--red); outline: 1px solid var(--red); outline-offset: -1px; }
.values .feature-list__icon .icon--fill path:last-child { stroke: var(--white); }
.values .feature-list__item:hover .feature-list__icon { background: var(--red); color: var(--white); }
.values .feature-list__item:hover .feature-list__icon .icon--fill path:last-child { stroke: var(--red); }

/* ---------- Empresa (home) ---------- */
.company { padding-top: 40px; padding-bottom: 120px; }
.company__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.company__media { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding-top: 30px; }
.company__img img { width: 100%; height: 100%; object-fit: cover; }
.company__img--a { aspect-ratio: 340 / 445; margin-top: 30px; }
.company__img--b { aspect-ratio: 350 / 520; margin-top: -30px; }
.counter-card {
    position: absolute; left: 30px; bottom: -40px; width: 280px; padding: 18px 20px 26px;
    background: var(--white); box-shadow: 8px 8px 0 rgba(0, 0, 0, .12), var(--shadow); text-align: center;
}
.counter-card__number { display: block; font-size: 65px; font-weight: 700; line-height: 1; color: var(--red); }
.counter-card__label { display: block; margin-top: 10px; font-size: 17px; color: var(--text); }
.company__body { padding-top: 0; }

/* ---------- Banda de presupuesto ---------- */
.quote-band { position: relative; background: var(--dark); color: var(--white); padding: 0 0 150px; isolation: isolate; margin-top: 0; }
.quote-band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; z-index: -1; }
.quote-band__grid { display: grid; grid-template-columns: 560px 1fr; gap: 80px; align-items: start; }
.quote-card {
    position: relative; margin-top: -25px; padding: 60px 40px 70px; text-align: center;
    background: var(--red); box-shadow: var(--shadow-lg);
}
.quote-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 25px; background: var(--red-soft); }
.quote-card__title { font-size: 32px; font-weight: 500; margin-top: 20px; }
.quote-card__divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 26px; font-size: 20px; }
.quote-card__divider span { width: 50px; border-top: 1px dashed rgba(255, 255, 255, .9); }
.quote-card__phones { font-size: 26px; line-height: 1.2; }
.quote-card__mail { font-size: 22px; margin-top: 10px; }
.quote-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.quote-band__text { padding-top: 100px; }
.quote-band__heading { font-size: 28px; font-weight: 700; }
.quote-band__text p:last-child { margin-top: 20px; font-family: var(--font-body); font-size: 16px; line-height: 1.5; }

/* ---------- Servicios ---------- */
.services { padding-top: 70px; }
.services__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.service-card {
    grid-column: span 2; position: relative; display: block; padding: 40px 40px 36px;
    background: var(--white); border-top: 6px solid var(--red); box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .6s ease, color .4s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    top: -101%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 0;
    pointer-events: none;
    transition: top .6s ease, opacity .6s ease;
}
.service-card:hover::before,
.service-card:focus-visible::before { top: 0; }
.service-card > * { position: relative; z-index: 1; }
.service-card:nth-child(n+4) { grid-column: span 3; }
.service-card__icon { display: block; font-size: 40px; color: var(--red); margin-bottom: 22px; transition: color .4s ease, opacity .4s ease; }
.service-card__title { font-size: 25px; font-weight: 500; line-height: 1.2; color: var(--ink); transition: color .4s ease; }
.service-card__text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text); transition: color .4s ease; }
.service-card--featured { background: var(--red); border-top-color: var(--white); }
.service-card--featured :is(.service-card__icon, .service-card__title, .service-card__text) { color: var(--white); }
.service-card--featured::before { top: 0; opacity: 0; }
.service-card--featured:hover::before,
.service-card--featured:focus-visible::before { opacity: 1; }
.service-card:hover,
.service-card:focus-visible { border-top-color: var(--dark); }
.service-card:hover .service-card__title,
.service-card:focus-visible .service-card__title { color: var(--red); }
.service-card:hover .service-card__text,
.service-card:focus-visible .service-card__text { color: #eeeeee; }
.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon { opacity: 0; }
.service-card--featured:hover .service-card__title,
.service-card--featured:focus-visible .service-card__title { color: var(--white); }
.services--full .services__grid { grid-template-columns: repeat(2, 1fr); }
.services--full .service-card, .services--full .service-card:nth-child(n+4) { grid-column: span 1; }
.services--full .service-card:last-child { grid-column: 1 / -1; }
.services--full .service-card__text + .service-card__text { margin-top: 12px; }
.services--full .service-card { scroll-margin-top: 110px; }

/* ---------- Proceso ---------- */
.process { position: relative; padding: 100px 0 60px; background: var(--dark); isolation: isolate; color: var(--white); }
.process__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; z-index: -1; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1140px; margin-inline: auto; counter-reset: step; }
.step-card {
    position: relative; padding: 32px 12px 40px; text-align: center; color: var(--ink);
    background: var(--white); border-top: 6px solid var(--red); min-height: 229px;
    overflow: hidden;
    transition: border-color .6s ease, box-shadow .3s, color .4s ease;
}
.step-card::before {
    content: "";
    position: absolute;
    top: -101%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 0;
    pointer-events: none;
    transition: top .6s ease;
}
.step-card:hover::before { top: 0; }
.step-card > * { position: relative; z-index: 1; }
.step-card:hover { border-top-color: var(--dark); }
.step-card__icon { display: inline-block; font-size: 46px; color: var(--red); transition: color .4s ease, opacity .4s ease; }
.step-card__title { margin-top: 18px; font-size: 23px; font-weight: 800; line-height: 1.2; transition: color .4s ease; }
.step-card__text { margin: 10px auto 0; max-width: 205px; font-size: 17px; line-height: 1.5; color: var(--text); transition: color .4s ease; }
.step-card__num { position: absolute; right: 18px; bottom: 14px; z-index: 1; font-size: 32px; font-weight: 700; line-height: 1; color: #dcdcdc; }
.step-card:hover .step-card__title { color: var(--red); }
.step-card:hover .step-card__icon { opacity: 0; }
.step-card:hover .step-card__text { color: #eeeeee; }

/* ---------- Valores ---------- */
.values { padding-top: 120px; padding-bottom: 80px; }
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.values__media { position: relative; padding: 0 20px 20px 0; }
.values__frame { position: absolute; top: -20px; right: 0; width: 45%; height: calc(100% + 0px); background: var(--red); }
.values__img { position: relative; aspect-ratio: 600 / 525; overflow: hidden; }
.values__img img { width: 100%; height: 100%; object-fit: cover; }
.values__card { position: absolute; right: 60px; top: 50%; width: 330px; padding: 26px 26px 28px; background: var(--white); transform: translateY(-50%); box-shadow: var(--shadow); }
.values__card-text { font-size: 20px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--ink); margin-bottom: 24px; }

/* ---------- Actualidad (home) ---------- */
.news { padding-top: 40px; }
.news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.news__body .btn { margin-top: 34px; }
.post-card { background: var(--white); display: flex; flex-direction: column; box-shadow: 0 0 10px rgba(0, 0, 0, .05); transition: box-shadow .3s; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 616 / 289; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: #080a146b; color: var(--white); font-size: 18px;
    opacity: 0; visibility: hidden; transition: 300ms; pointer-events: none;
}
.post-card__overlay .icon { width: 18px; height: 18px; }
.post-card:hover .post-card__overlay,
.post-card:focus-within .post-card__overlay { opacity: 1; visibility: visible; }
.post-card__body { padding: 20px 10px 18px; }
.post-card__title { font-size: 31px; font-weight: 500; line-height: 1.2; text-transform: uppercase; color: var(--red); }
.post-card__title a:hover { color: var(--ink); }
.post-card__meta { margin-top: 10px; font-size: 14px; color: var(--text); }
.post-card__excerpt { margin-top: 10px; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text); }
.post-card__more { display: inline-block; margin-top: 16px; font-weight: 600; text-transform: uppercase; color: var(--red); font-size: 14px; }
.post-card__more:hover { color: var(--ink); }

/* ---------- Contacto ---------- */
.contact { padding-top: 60px; padding-bottom: 130px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; margin-bottom: 40px; }
.contact__grid--single { grid-template-columns: 1fr; max-width: 890px; margin-inline: auto; }
.contact .section-head { margin-bottom: 28px; }
.contact-form { display: grid; gap: 18px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field__input {
    width: 100%; min-height: 44px; padding: 10px 16px;
    font-family: var(--font-head); font-size: 14px; font-weight: 500; color: #1f2124;
    background: var(--white); border: 1px solid var(--line); border-radius: 0; transition: border-color .2s;
}
.field__input::placeholder { color: #8a8d93; font-size: 12px; letter-spacing: 3.6px; text-transform: uppercase; }
.field__input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(254, 0, 0, .15); }
.field__input--area { min-height: 90px; resize: vertical; }
.field.has-error .field__input { border-color: var(--red); }
.field__error { font-size: 13px; color: #c00000; min-height: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; font-size: 13px; letter-spacing: .12em; }
.field--check input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.field--check a { color: #b8005c; }
.field--check a:hover { text-decoration: underline; }
.field--check .field__error { grid-column: 1 / -1; }
.contact-form__submit { min-height: 44px; font-size: 16px; font-weight: 400; margin-top: 12px; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { padding: 14px 16px; font-size: 15px; border-left: 4px solid; }
.form-status--ok { background: #eaf7ee; border-color: #2e8b57; color: #1d5e3a; }
.form-status--error { background: #fdecec; border-color: var(--red); color: #8a0000; }

.contact-info { display: grid; gap: 30px; padding-top: 0; }
.contact-info__item { display: grid; grid-template-columns: 62px 1fr; gap: 20px; align-items: center; min-height: 62px; }
.contact-info__icon { width: 62px; height: 62px; display: grid; place-items: center; background: var(--white); color: var(--red); font-size: 30px; box-shadow: var(--shadow); }
.contact-info__title { font-size: 22px; font-weight: 500; color: var(--ink); }
.contact-info p { margin-top: 4px; font-family: var(--font-body); font-size: 16px; color: var(--text); }
.contact-info a:hover { color: var(--red); }

.map { position: relative; min-height: 420px; background: #e5e3df; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; text-align: center;
    background:
        linear-gradient(rgba(238, 238, 238, .86), rgba(238, 238, 238, .86)),
        repeating-linear-gradient(0deg, transparent 0 39px, #d4d1cb 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, #d4d1cb 39px 40px);
}
.map__pin { font-size: 44px; color: var(--red); }
.map__address { font-size: 18px; color: var(--ink); }
.map__note { max-width: 420px; font-family: var(--font-body); font-size: 13px; color: var(--text); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--dark); color: var(--white); padding: 100px 0 30px; isolation: isolate; }
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 70px; background: var(--light);
    clip-path: polygon(0 0, 100% 0, 100% 0, 73.8% 100%, 0 0);
}
.site-footer__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .08; z-index: -1; }
.footer-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-box {
    display: flex; align-items: center; gap: 18px; min-height: 140px; padding: 30px 28px 30px 40px;
    background: #303030; border-top: 6px solid var(--red); transition: background-color .25s;
}
.footer-box:hover { background: #3c3c3c; }
.footer-box--accent { background: var(--red); border-top-color: var(--red); }
.footer-box--accent:hover { background: var(--red-dark); }
.footer-box__icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); font-size: 20px; }
.footer-box--accent .footer-box__icon { background: var(--white); color: var(--red); }
.footer-box__title { display: block; font-size: 20px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.footer-box:first-child .footer-box__title { font-size: 25px; }
.footer-box__text { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 15px; }

.footer-cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; gap: 40px; padding: 60px 0 50px; border-bottom: 1px solid rgba(255, 255, 255, .15); align-items: start; }
.footer-cols__brand { display: grid; place-items: center start; padding-left: 60px; padding-top: 30px; }
.footer-logo { width: 190px; }
.footer-title { font-size: 25px; font-weight: 500; margin-bottom: 18px; }
.footer-title--accent { color: var(--red); }
.footer-list { display: grid; gap: 8px; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: #e8e8e8; transition: color .2s, transform .2s; }
.footer-list a .icon { color: var(--red); font-size: 14px; stroke-width: 2.5; }
.footer-list a:hover { color: var(--red); transform: translateX(3px); }
.footer-text { font-size: 16px; font-weight: 300; line-height: 1.5; }
.footer-link-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; text-transform: uppercase; font-size: 14px; color: var(--red); }
.footer-link-cta:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 30px; }
.footer-bottom p { font-size: 16px; font-weight: 600; line-height: 1.5; }
.footer-funding { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-funding img { width: 300px; height: auto; background: var(--white); }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 20px; box-shadow: var(--shadow); transition: background-color .2s; }
.to-top:hover { background: var(--dark); }

/* ---------- Barra de accesibilidad ---------- */
.a11y-toolbar { position: fixed; left: 0; top: 43vh; z-index: 120; }
.a11y-toolbar__list { list-style: none; margin: 0; padding: 0; }
.a11y-toolbar__btn {
    position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    background: #e2e2e2; color: #181818; font-size: 20px; border-top: 1px solid #f5f5f5; border-bottom: 1px solid #d2d2d2;
}
.a11y-toolbar li:first-child .a11y-toolbar__btn { border-radius: 0 4px 0 0; }
.a11y-toolbar li:last-child .a11y-toolbar__btn { border-radius: 0 0 4px 0; }
.a11y-toolbar__btn:hover, .a11y-toolbar__btn.is-active { background: #181818; color: #fff; }
.a11y-toolbar__btn.is-active { border-bottom-color: #525252; }
.a11y-toolbar__icon { width: 1em; height: 1em; stroke-width: 2.4; }
.a11y-toolbar__tip {
    position: absolute; left: 100%; top: 50%; margin-left: 3px; transform: translateY(-50%);
    padding: 0; border-radius: 3px; background: #f0f0f0ee; color: #333; box-shadow: 0 0 1px #000;
    font: 400 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap;
    clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; pointer-events: none;
}
.a11y-toolbar__btn:hover .a11y-toolbar__tip,
.a11y-toolbar__btn:focus-visible:not(.tip-dismissed) .a11y-toolbar__tip { clip-path: none; width: auto; height: auto; padding: 7px 6px; overflow: visible; }
@media (max-width: 800px) { .a11y-toolbar { display: none; } }

/* ---------- La empresa ---------- */
.about { padding-top: 50px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; max-width: 1140px; margin-inline: auto; }
.about__body .lead + .lead { margin-top: 16px; }
.about__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Banda de ayuda (servicios) ---------- */
.help-band { background: var(--red); color: var(--white); padding-block: 40px; }
.help-band__inner { display: flex; align-items: center; gap: 30px; max-width: 1140px; }
.help-band__icon { font-size: 54px; flex: none; }
.help-band__text { flex: 1; }
.help-band__eyebrow { font-size: 18px; font-weight: 500; }
.help-band__title { font-size: 32px; font-weight: 700; }

/* ---------- Galería ---------- */
.gallery { padding-top: 10px; }
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery__item { display: block; aspect-ratio: 210 / 140; overflow: hidden; background: #ddd; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); filter: brightness(.85); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 20, .94); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { display: grid; justify-items: center; gap: 12px; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox__count { font-size: 14px; opacity: .8; }
.lightbox__btn { display: grid; place-items: center; width: 50px; height: 50px; margin: auto; background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .4); font-size: 22px; transition: background-color .2s; }
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* ---------- Blog ---------- */
.blog { padding-top: 20px; }
.blog__panel { max-width: 1110px; margin-inline: auto; padding: 45px; background: var(--white); border-radius: 6px; box-shadow: var(--shadow); }
.blog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.blog .post-card { box-shadow: none; }
.blog .post-card__media { aspect-ratio: 4 / 3; border-radius: 6px; box-shadow: 0 10px 25px rgba(0, 0, 0, .15); }
.blog .post-card__title { font-size: 28px; }
.blog .post-card__body { padding: 16px 0 0; }

/* ---------- Artículo ---------- */
.article-wrap { padding-top: 50px; }
.article-wrap__grid { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; max-width: 1140px; margin-inline: auto; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 40px; padding-top: 30px; }
.sidebar__title { font-size: 26px; font-weight: 500; color: var(--red); padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: inline-block; justify-self: start; }
.sidebar__list { display: grid; gap: 14px; margin-top: -14px; }
.sidebar__list a { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #333; }
.sidebar__list .icon { color: var(--red); stroke-width: 2.5; }
.sidebar__list a:hover { color: var(--red); }
.sidebar__cta { position: relative; display: grid; gap: 14px; justify-items: start; padding: 40px 30px; color: var(--white); background-size: cover; background-position: center; isolation: isolate; }
.sidebar__cta::before { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 20, .72); z-index: -1; }
.sidebar__cta-title { font-size: 28px; font-weight: 700; }
.sidebar__cta-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; }
.sidebar__cta-phone .icon { color: var(--red); }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px 28px; font-family: var(--font-body); font-size: 15px; color: #444; }
.article__meta span { display: inline-flex; align-items: center; gap: 8px; }
.article__meta span + span { padding-left: 28px; border-left: 2px solid var(--ink); }
.article__img { margin-top: 20px; }
.article__img img { width: 100%; max-height: 720px; object-fit: cover; }
.article__body { margin-top: 30px; display: grid; gap: 16px; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: #555; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid #e2e2e2; }
.article__nav-link { display: grid; gap: 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.article__nav-link span { font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--red); }
.article__nav-link--next { text-align: right; }
.article__nav-link:hover { color: var(--red); }

/* ---------- Contacto (página) ---------- */
.contact-cards { padding-top: 50px; padding-bottom: 20px; }
.contact-cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.contact-card__icon { display: inline-block; font-size: 58px; color: var(--red); }
.contact-card__title { margin-top: 12px; font-size: 22px; font-weight: 500; }
.contact-card p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: #444; }
.contact-card a:hover { color: var(--red); }

/* ---------- Legal / 404 ---------- */
.legal__inner { max-width: 900px; }
.legal__data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; margin: 0 0 30px; padding: 26px; background: var(--light); }
.legal__data dt { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--red); }
.legal__data dd { margin: 2px 0 0; font-family: var(--font-body); font-size: 15px; color: #333; }
.legal__body { display: grid; gap: 12px; margin-top: 30px; font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: #555; }
.legal__body h2 { margin-top: 16px; font-size: 22px; color: var(--ink); }
.notice { padding: 16px 20px; border-left: 4px solid var(--red); background: #fff6f6; font-family: var(--font-body); font-size: 15px; color: #6b1b1b; }
.notice code { font-size: 13px; }
.pending { color: #a15c00; font-style: italic; }
.notfound { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; text-align: center; }
.notfound .lead { flex-basis: 100%; font-size: 18px; margin: 0 0 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .quote-band__grid { grid-template-columns: 460px 1fr; gap: 50px; }
    .footer-cols__brand { padding-left: 0; }
}

@media (max-width: 1024px) {
    :root { --section-y: 70px; }
    .topbar__list { justify-content: center; gap: 4px 22px; }
    .nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; background: transparent; border: 0; color: var(--white); }
    .nav__bars { display: grid; gap: 6px; width: 36px; }
    .nav__bars span { display: block; height: 3px; background: currentColor; border-radius: 2px; }
    .nav__bars span:nth-child(2) { width: 80%; justify-self: end; }
    .nav__panel {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(360px, 88vw);
        display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow-y: auto;
        background: var(--white); color: var(--ink); box-shadow: -10px 0 40px rgba(0, 0, 0, .3);
        transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s;
    }
    .nav.is-open .nav__panel { transform: none; visibility: visible; transition: transform .35s var(--ease); }
    .nav__panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
    .nav__panel-logo { width: 150px; }
    .nav__close { display: grid; place-items: center; width: 44px; height: 44px; background: var(--light); border: 0; font-size: 22px; color: var(--ink); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { color: var(--ink); padding: 15px 4px; border-bottom: 1px solid #e6e6e6; }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--red); }
    .nav__cta { display: inline-flex; margin-top: 20px; }
    .nav__langs { padding: 16px 4px 8px; border-bottom: 1px solid #e6e6e6; }
    .lang-switch { padding-left: 0; }
    .lang-switch__link { padding: 6px 4px; }
    .nav__backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(8, 10, 20, .55); }
    .navbar__logo, .navbar__logo img { width: 150px; }
    .site-header.is-stuck { background: rgba(8, 10, 20, .96); box-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
    .site-header.is-stuck .topbar { display: none; }
    .site-header.is-stuck .navbar { display: flex; padding-block: 8px; }
    .site-header.is-stuck .navbar__logo, .site-header.is-stuck .navbar__logo img { width: 110px; }

    .hero { min-height: 640px; }
    .company__grid, .values__grid, .news__grid, .contact__grid, .about__grid { grid-template-columns: 1fr; }
    .company__media { max-width: 620px; margin-inline: auto; width: 100%; margin-bottom: 40px; }
    .company__body { text-align: center; }
    .company__body .feature-list { text-align: left; max-width: 560px; margin-inline: auto; }
    .quote-band { padding-bottom: 110px; }
    .quote-band__grid { grid-template-columns: 1fr; gap: 30px; }
    .quote-band__text { padding-top: 0; text-align: center; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service-card, .service-card:nth-child(n+4) { grid-column: span 1; }
    .service-card:last-child { grid-column: 1 / -1; }
    .process__grid { grid-template-columns: repeat(2, 1fr); }
    .values__media { max-width: 640px; margin-inline: auto; width: 100%; }
    .footer-boxes { grid-template-columns: 1fr; gap: 16px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-cols__brand { grid-column: 1 / -1; place-items: center; padding-top: 0; }
    .gallery__grid { grid-template-columns: repeat(4, 1fr); }
    .article-wrap__grid { grid-template-columns: 1fr; }
    .sidebar { position: static; order: 2; }
    .contact-cards__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 767px) {
    :root { --section-y: 56px; --gutter: 16px; }
    body { font-size: 15px; }
    .topbar { font-size: 13px; }
    .topbar__list { padding-block: 8px; }
    .topbar__address { flex-basis: 100%; justify-content: center; }
    .navbar { padding-top: 12px; }
    .navbar__logo, .navbar__logo img { width: 140px; }
    .hero { min-height: 640px; }
    .hero__content { padding-top: 170px; padding-bottom: 100px; }
    .shape-bottom { height: 40px; }
    .page-hero { min-height: 330px; }
    .page-hero__content { padding-top: 150px; padding-bottom: 60px; }
    .eyebrow { font-size: 15px; margin-bottom: 14px; }
    .section-title, .section-title--md, .section-title--lg { font-size: 24px; }
    .company__body, .news__body, .values__body, .contact .section-head { text-align: center; }
    .company__media { gap: 14px; }
    .counter-card { left: 50%; transform: translateX(-50%); width: 220px; bottom: -36px; }
    .counter-card__number { font-size: 50px; }
    .feature-list__title { font-size: 20px; line-height: 1.3; }
    .feature-list__text { margin-top: 4px; }
    .quote-card { padding: 50px 20px 50px; }
    .quote-card__phones { font-size: 22px; }
    .quote-card__mail { font-size: 18px; word-break: break-word; }
    .services__grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 30px 26px; }
    .service-card__title { font-size: 22px; }
    .services--full .services__grid { grid-template-columns: 1fr; }
    .process__grid { grid-template-columns: 1fr; max-width: 360px; }
    .values { padding-top: 70px; }
    .values__body .feature-list { text-align: left; }
    .values__card { position: relative; right: auto; top: auto; width: auto; margin: -60px 16px 0; transform: none; }
    .values__frame { top: -14px; }
    .post-card__title { font-size: 24px; }
    .contact-form__row { grid-template-columns: 1fr; }
    .field--check { letter-spacing: .04em; }
    .contact-info__item { grid-template-columns: 54px 1fr; gap: 14px; }
    .contact-info__icon { width: 54px; height: 54px; font-size: 26px; }
    .map { min-height: 340px; }
    .site-footer { padding-top: 70px; }
    .site-footer::before { height: 40px; }
    .footer-box { padding: 22px 20px; min-height: 0; gap: 16px; }
    .footer-box__title, .footer-box:first-child .footer-box__title { font-size: 19px; }
    .footer-cols { grid-template-columns: 1fr; text-align: left; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-funding img { width: 100%; max-width: 300px; }
    .help-band__inner { flex-direction: column; text-align: center; gap: 14px; }
    .help-band__title { font-size: 26px; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .lightbox[open] { grid-template-columns: 50px 1fr 50px; }
    .lightbox__btn { width: 42px; height: 42px; }
    .blog__panel { padding: 22px; }
    .blog__grid { grid-template-columns: 1fr; gap: 36px; }
    .blog .post-card__title { font-size: 23px; }
    .article__nav { grid-template-columns: 1fr; }
    .article__nav-link--next { text-align: left; }
    .contact-cards__grid { grid-template-columns: 1fr; }
    .legal__data { grid-template-columns: 1fr; }
}
