/* ==========================================================================
   MACROS Engineering — Hoja de estilos global (único CSS del sitio)
   --------------------------------------------------------------------------
   1. Fuentes
   2. Variables
   3. Reset / base
   4. Tipografía
   5. Layout (container, section, grid, split)
   6. Componentes: botones, eyebrow, encabezados de sección, listas
   7. Header / navegación
   8. Hero slider
   9. Tarjetas: servicio, proyecto, testimonio
   10. Media frame, marquee de clientes, estadísticas
   11. CTA, footer, botón flotante, modales
   11b. Páginas interiores (page-hero, feature-rows, info-box, values)
   12. Utilidades
   13. Responsive
   ========================================================================== */

/* 1. Fuentes ------------------------------------------------------------- */
@font-face {
    font-family: "Gilroy";
    src: url("../font/Gilroy-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* 2. Variables ----------------------------------------------------------- */
:root {
    /* Colores de marca */
    --c-accent: #17a2d8;
    --c-accent-dark: #128bbb;
    --c-blue: #1e5ea8;
    --c-blue-light: #3a74d0;
    --c-navy: #13233a;
    --c-navy-2: #232b39;
    --c-slate: #2f3340;
    --c-slate-2: #3b4050;

    /* Texto */
    --c-heading: #13233a;
    --c-text: #4a5566;
    --c-muted: #6f7a8a;
    --c-light: #ffffff;
    --c-light-muted: rgba(255, 255, 255, .62);

    /* Superficies */
    --c-white: #ffffff;
    --c-border: #e6e9ee;
    --c-border-dark: rgba(255, 255, 255, .12);
    --c-card-dark: rgba(255, 255, 255, .045);
    --c-bg-light: #f4f6f9;
    --c-bg-soft: #f9f9f9;

    /* Tipografía */
    --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ff-heading: "Gilroy", "Inter", system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: 24px;
    --section-y: 120px;
    --header-h: 90px;

    /* Otros */
    --radius: 2px;
    --shadow-sm: 0 6px 20px rgba(19, 35, 58, .08);
    --shadow-md: 0 18px 45px rgba(19, 35, 58, .12);
    --shadow-accent: 0 10px 25px rgba(23, 162, 216, .35);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t: .3s var(--ease);
}

/* 3. Reset / base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--t); }

ul, ol { margin: 0; padding: 0; list-style: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

address { font-style: normal; }

figure, blockquote { margin: 0; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* 4. Tipografía ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--ff-heading);
    font-weight: 500;
    line-height: 1.15;
    color: var(--c-heading);
    letter-spacing: -.01em;
}

/* Títulos de sección (reutilizables en todas las páginas) */
.title {
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.15;
    color: var(--c-heading);
    margin: 0 0 20px;
}
.title--xl { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.12; }
.title--md { font-size: clamp(26px, 2.6vw, 34px); }
.title--sm { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 8px; }

/* Títulos de tarjeta (Inter semibold, como en el diseño) */
.card-title {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: var(--c-heading);
    margin: 0 0 12px;
}

.lead { font-size: 17px; line-height: 1.75; color: var(--c-text); }
.text-sm { font-size: 14px; line-height: 1.7; }
.text-muted { color: var(--c-muted); }

/* Eyebrow / antetítulo en mayúsculas */
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-accent);
}

/* 5. Layout -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--sm { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--tight-top { padding-top: calc(var(--section-y) * .67); }

/* Variante oscura: invierte colores de títulos y textos */
.section--dark { background-color: var(--c-slate); color: var(--c-light-muted); }
.section--navy { background-color: var(--c-navy-2); color: var(--c-light-muted); }
.section--dark.section--soft-dark { background-color: var(--c-slate-2); } /* gris oscuro más claro (interiores) */
.section--light { background-color: var(--c-bg-light); }
.section--dark .title,
.section--navy .title,
.section--dark .card-title,
.section--navy .card-title { color: var(--c-light); }
.section--dark .lead,
.section--navy .lead { color: var(--c-light-muted); }

/* Imagen de fondo con overlay (usar dentro de .section) */
.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.section-bg img { width: 100%; height: 100%; object-fit: cover; }
.section-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay, rgba(47, 51, 64, .9));
}
/* Imagen ya tratada (tinte u opacidad incluidos en el archivo): sin overlay */
/* Imagen con blend multiply sobre gris (export de Figma). La imagen va inline: style="background-image: url(…)" */
.section-bg--blend {
    background: lightgray 50% / cover no-repeat;
    background-blend-mode: multiply;
    opacity: var(--bg-opacity, 0.1); /* opacidad de la capa (10 %); ajustable con style="--bg-opacity: …" */
}
.section-bg--blend::after,
.section-bg--raw::after,
.hero__bg--raw::after { display: none; }
.section-bg + .container,
.section > .container { position: relative; z-index: 1; }

/* Encabezado de sección */
.section-head { margin-bottom: 60px; max-width: 700px; }
.section-head .title { margin-bottom: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { max-width: 540px; margin-inline: auto; }
.section-head--wide { max-width: 820px; }
.section-head--wide .lead { max-width: none; }
.section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr minmax(0, 400px);
    gap: 40px;
    align-items: end;
}
.section-head--split .lead { font-size: 15px; margin-bottom: 8px; }

/* Grillas */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Split: texto + imagen */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.split--reverse .split__media { order: -1; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.actions--center { justify-content: center; }

/* 6. Botones ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 32px;
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background-color var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--c-accent); color: var(--c-light); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--c-accent-dark); }

.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--c-light); }
.btn--ghost:hover { border-color: var(--c-light); background: rgba(255, 255, 255, .08); }

.btn--outline { border-color: var(--c-accent); color: var(--c-accent); }
.btn--outline:hover { background: var(--c-accent); color: var(--c-light); }

.btn--lg { min-width: 250px; }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 13px; }

/* Listas */
.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    margin-top: 28px;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-heading);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1px;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317a2d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.1V12a9 9 0 1 1-5.3-8.2'/%3E%3Cpath d='M21 4 12 13l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list--single { grid-template-columns: 1fr; }

/* Lista con íconos (datos de contacto) */
.icon-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}
.icon-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--c-accent); }
.icon-list a:hover { color: var(--c-light); }

/* 7. Header / navegación ------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    color: var(--c-light);
    transition: background-color var(--t), box-shadow var(--t);
}
.site-header.is-scrolled {
    background: rgba(19, 35, 58, .96);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: var(--header-h);
    transition: height var(--t);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }

.site-logo img { width: 156px; height: auto; }

/* Menú principal: estructura de wp_nav_menu()
   nav.main-navigation > div.menu-*-container > ul.menu > li.menu-item > a
   Submenús: li.menu-item-has-children > ul.sub-menu                      */
.main-navigation { display: flex; align-items: center; gap: 36px; }

.menu { display: flex; align-items: center; gap: 34px; }
.menu li { position: relative; }
.menu a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-light);
}
.menu a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 2px;
    width: 100%; height: 1px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.menu a:hover::after,
.menu .current-menu-item > a::after,
.menu .current_page_item > a::after,
.menu .current-menu-ancestor > a::after,
.menu .current-menu-parent > a::after,
.menu .current_page_parent > a::after { transform: scaleX(1); }

/* Submenú desplegable (desktop) */
.menu .sub-menu {
    position: absolute;
    top: 100%; left: -20px;
    z-index: 10;
    min-width: 230px;
    padding: 12px 0;
    background: var(--c-navy);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.menu .sub-menu a { padding: 9px 20px; font-size: 12px; }
.menu .sub-menu a::after { display: none; }
.menu .sub-menu a:hover,
.menu .sub-menu .current-menu-item > a { color: var(--c-accent); }
.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Selector de idioma: markup de Polylang (pll_the_languages) */
.lang-switch { display: flex; align-items: center; font-size: 13px; font-weight: 500; }
.lang-switch li + li::before { content: "/"; margin: 0 6px; color: var(--c-light-muted); }
.lang-switch a { color: var(--c-light-muted); }
.lang-switch a:hover,
.lang-switch .current-lang a { color: var(--c-accent); }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    color: var(--c-light-muted);
    transition: color var(--t), background-color var(--t), border-color var(--t);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { color: var(--c-accent); }
.social-icon--box {
    width: 40px; height: 40px;
    border: 1px solid var(--c-border-dark);
    border-radius: 8px;
    background: rgba(30, 94, 168, .25);
}
.social-icon--box:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-light); }

.menu-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.menu-toggle span {
    display: block;
    width: 26px; height: 2px;
    background: var(--c-light);
    transition: transform var(--t), opacity var(--t);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 8. Hero slider --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 780px;
    height: 100vh;
    max-height: 920px;
    overflow: hidden;
    background: var(--c-navy);
    color: var(--c-light);
}
.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--ease), visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.72) 0%, rgba(11, 31, 58, 0.56) 50%, rgba(13, 45, 94, 0.32) 100%);
}

.hero__content { position: relative; z-index: 1; max-width: 760px; padding-top: 40px; }
.hero__content > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }

.hero__title { color: var(--c-light); margin-bottom: 14px; }
.hero__text { font-size: 18px; color: rgba(255, 255, 255, .8); }
.hero .actions { margin-top: 56px; }

.hero__dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 80px;
    z-index: 2;
}

/* Paginación de sliders (reutilizable) */
.slider-dots { display: flex; align-items: center; gap: 10px; }
.slider-dots button {
    width: 12px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    transition: width var(--t), background-color var(--t);
}
.slider-dots button:hover { background: rgba(255, 255, 255, .7); }
.slider-dots button.is-active { width: 32px; background: var(--c-accent); }

/* 9. Tarjetas ------------------------------------------------------------ */

/* Tarjeta de servicio (fondo oscuro) */
.service-card {
    height: 100%;
    padding: 28px 24px 30px;
    background: var(--c-card-dark);
    border: 1px solid var(--c-border-dark);
    backdrop-filter: blur(2px);
    transition: background-color var(--t), border-color var(--t);
}
.service-card[role="button"] { cursor: pointer; }
.service-card:hover,
.service-card:focus-visible {
    background: rgba(58, 118, 190, .85);
    border-color: rgba(58, 118, 190, .85);
}
.service-card__icon { width: 52px; height: 52px; margin-bottom: 26px; color: var(--c-light); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card .card-title { font-size: 15px; margin-bottom: 14px; }
.service-card p { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .55); transition: color var(--t); }
.service-card:hover p,
.service-card:focus-visible p { color: rgba(255, 255, 255, .72); }

/* Tarjeta de proyecto */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--c-white);
    box-shadow: var(--shadow-md);
    transition: translate var(--t), box-shadow var(--t);
}
/* Se usa "translate" (no "transform") para no chocar con la animación .reveal */
.project-card:hover { translate: 0 -6px; box-shadow: 0 26px 55px rgba(19, 35, 58, .16); }
.project-card__media { position: relative; aspect-ratio: 577 / 320; overflow: hidden; background: var(--c-navy); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media .badge { position: absolute; top: 20px; left: 20px; }
.project-card__body { padding: 36px 32px 60px; }
.project-card__meta {
    display: block;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-accent);
}
.project-card .card-title { font-size: 20px; line-height: 1.5; }
.project-card .card-title a:hover { color: var(--c-accent); }
.project-card p { font-size: 14px; line-height: 1.75; color: var(--c-text); }

.badge {
    display: inline-block;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    background: var(--c-accent);
    color: var(--c-light);
}
.badge--sm { padding: 5px 9px; font-size: 10px; }

/* Tarjeta de entrada (listado de proyectos / posts → template-parts/content-card.php) */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--c-white);
    box-shadow: 0 10px 30px rgba(19, 35, 58, .07);
    transition: translate var(--t), box-shadow var(--t);
}
.post-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.post-card__media { position: relative; display: block; aspect-ratio: 376 / 200; overflow: hidden; background: var(--c-navy); }
.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.05); }
.post-card__media .badge { position: absolute; top: 16px; left: 16px; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 24px; }
.post-card__date {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9aa3b0;
}
.post-card__title {
    margin: 0 0 14px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--c-heading);
}
.post-card__title a:hover { color: var(--c-accent); }
.post-card__excerpt { flex: 1; margin-bottom: 28px; font-size: 14px; line-height: 1.55; color: var(--c-text); }
.post-card__footer { padding-top: 18px; border-top: 1px solid var(--c-border); }

/* Enlace de texto con flecha ("Leer más") */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-accent);
}
.text-link svg { width: 14px; height: 14px; transition: transform var(--t); }
.text-link:hover { color: var(--c-accent-dark); }
.text-link:hover svg { transform: translateX(3px); }

/* Tarjeta de testimonio */
.testimonial-card {
    height: 100%;
    padding: 32px 32px 38px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background-color var(--t), border-color var(--t);
}
.testimonial-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(23, 162, 216, .35); }
.testimonial-card__quote {
    display: block;
    height: 24px;
    margin-bottom: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 60px;
    line-height: .85;
    color: var(--c-accent);
    opacity: .5;
}
.testimonial-card blockquote {
    margin: 0 0 30px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}
.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.testimonial-card__name { display: block; margin-bottom: 2px; font-weight: 600; font-size: 14.5px; color: var(--c-light); }
.testimonial-card__role { display: block; font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .5); }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-accent);
    color: var(--c-light);
    font-size: 13px;
    font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 10. Media frame, marquee, estadísticas --------------------------------- */

/* Imagen con marco desplazado (bloque "Quiénes somos") */
.media-frame { position: relative; margin: 0; padding: 0 16px 16px 0; }
.media-frame::before {
    content: "";
    position: absolute;
    top: 16px; left: 16px; right: 0; bottom: 0;
    background: #d9dee6;
}
.media-frame img {
    position: relative;
    width: 100%;
    aspect-ratio: 560 / 480;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Marquee de logos (el JS duplica los ítems para un loop continuo) */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: marquee var(--marquee-speed, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 60px;
    padding: 0 40px;
    border: 1px solid var(--c-border);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #a4abb6;
    white-space: nowrap;
    transition: color var(--t), border-color var(--t);
}
.logo-box img { max-height: 32px; width: auto; filter: grayscale(1); opacity: .6; transition: filter var(--t), opacity var(--t); }
.logo-box:hover { color: var(--c-heading); border-color: #cfd5de; }
.logo-box:hover img { filter: none; opacity: 1; }

/* Banda de estadísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 44px 60px;
    background: var(--c-blue);
    color: var(--c-light);
    box-shadow: 0 25px 50px rgba(30, 94, 168, .18);
}
.stat { padding: 0 16px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat__value {
    display: block;
    font-family: var(--ff-heading);
    font-size: clamp(32px, 3vw, 40px);
    line-height: 1.1;
    margin-bottom: 10px;
}
.stat__label { font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }

/* 11. CTA, footer, flotante, modal --------------------------------------- */
.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 36px 70px;
}
.cta-bar .title { color: var(--c-light); }
.cta-bar p { font-size: 15px; color: var(--c-light-muted); }

.site-footer { background: var(--c-slate-2); color: var(--c-light-muted); font-size: 14px; }
.site-footer__main {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-block: 60px 50px;
    border-top: 1px solid var(--c-border-dark);
}
.site-footer__about p { margin: 36px 0 30px; max-width: 270px; line-height: 1.75; }
.footer-title {
    margin: 10px 0 28px;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-light);
}
.footer-title + .icon-list { margin-bottom: 36px; }
.footer-menu li + li { margin-top: 14px; }
.footer-menu a:hover,
.footer-menu .current-menu-item > a { color: var(--c-light); }
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 26px;
    border-top: 1px solid var(--c-border-dark);
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
}

/* Botón flotante de contacto (WhatsApp) */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 12px 10px 22px;
    background: var(--c-accent);
    color: var(--c-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-accent);
    transition: background-color var(--t), transform var(--t);
}
.float-contact svg { width: 30px; height: 30px; }
.float-contact:hover { background: var(--c-accent-dark); transform: translateY(-2px); }

/* Modal de video (reutilizable con data-video) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 18, 30, .9);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog { position: relative; width: 100%; max-width: 1000px; }
.modal__frame { aspect-ratio: 16 / 9; background: #000; }
.modal__frame iframe,
.modal__frame video { width: 100%; height: 100%; border: 0; }
.modal__close {
    position: absolute;
    top: -48px; right: 0;
    width: 40px; height: 40px;
    color: var(--c-light);
    font-size: 32px;
    line-height: 1;
}

/* Modal de tarjetas con navegación (reutilizable con data-card-modal) */
.modal--info { background: rgba(10, 18, 30, .45); }
.modal--info .modal__dialog {
    max-width: 670px;
    padding: 28px 28px 34px;
    background: #353b4e;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    color: var(--c-light);
    transform: translateY(16px) scale(.98);
    transition: transform var(--t);
}
.modal--info.is-open .modal__dialog { transform: none; }
.modal--info .modal__dialog:focus { outline: none; }

.modal__nav { position: absolute; top: 22px; right: 22px; display: flex; gap: 10px; }
.modal__nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border: 1.5px solid var(--c-light);
    border-radius: 50%;
    color: var(--c-light);
    transition: background-color var(--t), border-color var(--t);
}
.modal__nav button:hover { background: var(--c-accent); border-color: var(--c-accent); }
.modal__nav svg { width: 14px; height: 14px; }

.modal__body.is-changing { animation: modal-swap .35s var(--ease); }
@keyframes modal-swap { from { opacity: 0; transform: translateX(var(--swap-from, 12px)); } }
.modal__body .service-card__icon { width: 50px; height: 50px; margin-bottom: 22px; }
.modal__body .card-title {
    max-width: 300px;
    margin-bottom: 20px;
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.1;
    color: var(--c-light);
}
.modal__body p { font-size: 21px; line-height: 1.4; color: rgba(255, 255, 255, .55); }

/* 11b. Páginas interiores ------------------------------------------------ */

/* Hero de página interior (usa .section-bg para la foto de fondo) */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 630px; /* alto del banner interior (máx. 630 px) */
    padding: calc(var(--header-h) + 40px) 0 80px;
    background: var(--c-navy);
    color: var(--c-light);
    overflow: hidden;
}
.page-hero .section-bg {
    --overlay: linear-gradient(90deg, rgba(11, 31, 58, 0.90) 0%, rgba(11, 31, 58, 0.70) 50%, rgba(13, 45, 94, 0.40) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__content { max-width: 560px; }
.page-hero .title { color: var(--c-light); margin-bottom: 12px; }
.page-hero__text { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .75); }

/* Filas texto + imagen apiladas */
.feature-rows > * + * { margin-top: 110px; }
.lead strong { font-weight: 600; color: var(--c-heading); }
.media-frame--wide img { aspect-ratio: 560 / 320; }

/* Anchos acotados para grillas centradas */
.narrow { max-width: 885px; margin-inline: auto; }
.narrow--wide { max-width: 1010px; }

/* Caja informativa translúcida (fondos oscuros) */
.info-box {
    height: 100%;
    padding: 40px 44px;
    text-align: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
}
.info-box h3 {
    margin-bottom: 12px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 24px;
    color: var(--c-light);
}
.info-box p { font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, .72); }
.info-box--statement {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 40px 26px;
}
.info-box--statement p { font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, .85); }

/* Valores con ícono enmarcado */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.value-item { width: 180px; text-align: center; }
.value-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    margin: 0 auto 28px;
    border: 2px solid var(--c-blue-light);
    color: var(--c-blue-light);
    transition: background-color var(--t), color var(--t);
}
.value-item__icon svg { width: 30px; height: 30px; }
.value-item:hover .value-item__icon { background: var(--c-blue-light); color: var(--c-light); }
.value-item__label {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-blue-light);
}

/* Acordeón (data-accordion) */
.accordion { display: flex; flex-direction: column; gap: clamp(20px, 4vw, 76px); }
.accordion__header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 24px 40px 24px 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: var(--c-light);
    transition: background-color var(--t), border-color var(--t);
}
.accordion__header:hover { background: rgba(255, 255, 255, .1); }
.accordion__item.is-open .accordion__header { border-color: rgba(255, 255, 255, .18); }
.accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8);
}
.accordion__icon svg { width: 20px; height: 20px; }
.accordion__title { flex: 1; }
.accordion__arrow { width: 18px; height: 18px; flex-shrink: 0; transform: rotate(90deg); transition: transform var(--t); }
.accordion__item.is-open .accordion__arrow { transform: none; }
.accordion__panel { height: 0; overflow: hidden; transition: height .45s var(--ease); }
.accordion__item.is-open .accordion__panel { height: auto; }
.accordion__content { padding: 44px 56px 16px 88px; }
.accordion__content p { font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, .85); }

/* Galería de imágenes (3 columnas, bordes redondeados) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 76px; }
.gallery img { width: 100%; aspect-ratio: 331 / 193; object-fit: cover; border-radius: 8px; }

/* Entrada individual (single.php / single-proyecto.php) */
.container--narrow { max-width: calc(852px + var(--gutter) * 2); }
.section--soft { background-color: var(--c-bg-soft); }
.title--sans { font-family: var(--ff-body); font-weight: 700; letter-spacing: -.01em; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
    color: var(--c-muted);
}
.entry-author { display: flex; align-items: center; gap: 10px; }
.entry-author .avatar { width: 36px; height: 36px; font-size: 15px; }
.entry-author__name { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--c-heading); }
.entry-author__role { display: block; font-size: 12px; line-height: 1.3; color: #9aa3b0; }
.entry-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta__item svg { width: 14px; height: 14px; }

.share-links { display: flex; gap: 10px; margin-left: auto; }
.share-links a,
.share-links button {
    padding: 6px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-heading);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    transition: color var(--t), border-color var(--t);
}
.share-links a:hover,
.share-links button:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* Contenido del editor de WordPress (the_content) */
.entry-lead {
    margin: 0 0 56px;
    padding-left: 26px;
    border-left: 3px solid var(--c-accent);
    font-size: 18px;
    line-height: 1.75;
    color: #3a4252;
}
.entry-content { font-size: 15.5px; line-height: 1.85; color: var(--c-text); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 {
    margin: 56px 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eceff3;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 24px;
    color: var(--c-heading);
}
.entry-content h3 { margin: 40px 0 16px; font-family: var(--ff-body); font-weight: 700; font-size: 19px; }
.entry-content ul { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.entry-content a:not(.btn) { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content figure { margin: 48px 0; }
.entry-content figure img { width: 100%; }
.entry-content figcaption { margin-top: 12px; font-size: 12px; text-align: center; color: #9aa3b0; }
.entry-content blockquote {
    position: relative;
    margin: 48px 0;
    padding: 34px 34px 30px;
    background: #f1f4f8;
    border-left: 4px solid var(--c-accent);
}
.entry-content blockquote::before {
    content: "\201C";
    position: absolute;
    top: -6px; left: 34px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
    color: var(--c-accent);
    opacity: .35;
}
.entry-content blockquote p { margin-bottom: 14px; font-size: 17px; font-style: italic; line-height: 1.7; color: var(--c-heading); }
.entry-content blockquote cite {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.entry-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--c-border);
}
.entry-footer__label { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.tags-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tags-links a {
    padding: 5px 14px;
    font-size: 13px;
    color: var(--c-text);
    background: var(--c-bg-light);
    border: 1px solid #e1e6ee;
    transition: color var(--t), border-color var(--t);
}
.tags-links a:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* Formularios (markup compatible con Contact Form 7) */
.container--md { max-width: calc(1056px + var(--gutter) * 2); }
.form-intro { margin-bottom: 36px; }
.form-intro .title { margin-bottom: 10px; }
.form-intro p { font-size: 14px; color: var(--c-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.wpcf7-form-control-wrap { display: block; }
.form-control {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--c-heading);
    background: #f2f2f2;
    border: 1px solid #cdd2da;
    border-radius: 6px;
    transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
textarea.form-control { height: auto; min-height: 115px; padding: 14px 16px; resize: vertical; }
.form-control::placeholder { color: #6f7a8a; }
.form-control:focus {
    outline: none;
    background: var(--c-white);
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(23, 162, 216, .15);
}
.form-control.is-invalid,
.form-control.wpcf7-not-valid { border-color: #d64545; }
.form-error,
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; color: #d64545; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.form-response,
.wpcf7-response-output {
    margin-top: 20px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--c-heading);
    background: #eef8fc;
    border-left: 3px solid var(--c-accent);
}
.form-response:empty { display: none; }

/* 12. Utilidades --------------------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--c-accent); }
.bg-white { background: var(--c-white); }
.mt-0 { margin-top: 0 !important; }
.mt-xl { margin-top: clamp(56px, 7vw, 96px); }
.mb-0 { margin-bottom: 0 !important; }

/* Animación de entrada al hacer scroll (el JS agrega .is-visible) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease), translate var(--t), background-color var(--t), border-color var(--t), box-shadow var(--t);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .hero__content > * { opacity: 1; transform: none; }
}

/* 13. Responsive --------------------------------------------------------- */
@media (max-width: 1199px) {
    :root { --section-y: 100px; }
    .menu { gap: 22px; }
    .main-navigation { gap: 24px; }
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
    .split { gap: 48px; }
}

@media (max-width: 991px) {
    :root { --section-y: 80px; --header-h: 76px; }

    /* Menú móvil (panel lateral) */
    .menu-toggle { display: flex; }
    .main-navigation {
        position: fixed;
        top: 0; right: 0;
        width: min(360px, 100%);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 110px 32px 40px;
        background: var(--c-navy);
        box-shadow: -20px 0 40px rgba(0, 0, 0, .3);
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        overflow-y: auto;
    }
    .main-navigation.is-open { transform: none; }
    .menu { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
    .menu a { font-size: 15px; padding: 10px 0; }
    .menu .sub-menu { position: static; min-width: 0; padding: 0 0 6px 16px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .menu .sub-menu a { padding: 8px 0; font-size: 13px; }

    .section-head--split { grid-template-columns: 1fr; gap: 16px; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .accordion__content { padding-left: 24px; padding-right: 24px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; padding: 40px 24px; }
    .stat:nth-child(3) { border-left: 0; }
    .site-footer__main { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 640px; }
}

@media (max-width: 767px) {
    .page-hero { height: auto; min-height: 480px; max-height: 630px; padding-bottom: 60px; }
    .feature-rows > * + * { margin-top: 64px; }
    .info-box { padding: 32px 24px; }
    .info-box--statement { min-height: 0; }
    .values { gap: 32px 16px; }
    .value-item { width: calc(50% - 8px); }
    .value-item__label { font-size: 14px; }
    .accordion__header { padding: 16px 18px 16px 16px; font-size: 15px; }
    .accordion__icon { width: 40px; height: 40px; }
    .accordion__content { padding: 28px 0 8px; }
    .gallery { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
    .share-links { margin-left: 0; width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions .btn { width: 100%; }
    .entry-lead { font-size: 16.5px; padding-left: 18px; }
    .entry-content blockquote { padding: 30px 22px 24px; }
    :root { --section-y: 64px; --gutter: 16px; }
    .section-head { margin-bottom: 40px; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .hero__dots { bottom: 40px; }
    .hero .actions { margin-top: 36px; }
    .hero__text { font-size: 16px; }
    .actions .btn { flex: 1 1 auto; }
    .project-card__body { padding: 28px 24px 36px; }
    .cta-bar { flex-direction: column; align-items: flex-start; padding-block: 50px; }
    .site-footer__main { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__bottom { flex-direction: column; }
    .modal__body p { font-size: 17px; }
    .modal__body .card-title { font-size: 21px; padding-right: 90px; }
    .float-contact span { display: none; }
    .float-contact { padding: 10px; bottom: 20px; right: 16px; border-radius: 50%; }
    .logo-box { min-width: 130px; padding: 0 24px; font-size: 15px; }
}

@media (max-width: 479px) {
    .stats { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 28px; }
    .site-logo img { width: 130px; }
}
