:root {
    --azul-corp: #1b365d;
    --azul-innov: #5bb4e5;
    --azul-logo-mid: #3a86c8;
    --mobile-header-h: 3.5rem;
    --mobile-dock-h: 3.25rem;
}
body { font-family: 'Inter', sans-serif; }
h1, h2, h3, .font-brand {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
}
.hero-phrase-stack {
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* —— Secciones principales —— */
.folio-page {
    scroll-margin-top: 5.5rem;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid rgba(0, 75, 141, 0.08);
}
@media (min-width: 1024px) {
    .folio-page { scroll-margin-top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
}
.folio-page--hero {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#hero.folio-page--hero,
#hero.folio-page--hero.wp-block-group {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#hero .hero-bg-wrap,
#hero .hero-bg-wrap.wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}
#site-main > #hero:first-child,
#site-main > .wp-block-group#hero:first-child {
    margin-block-start: 0 !important;
}
@media (min-width: 1024px) {
    #site-main {
        padding-top: 0 !important;
    }
    .folio-page--hero { justify-content: center; }
}
body.admin-bar #hero.folio-page--hero {
    min-height: calc(100dvh - 32px);
    min-height: calc(100vh - 32px);
}
@media (min-width: 783px) {
    body.admin-bar #hero.folio-page--hero {
        min-height: calc(100dvh - 32px);
    }
}
.folio-page--hero .hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.folio-page--hero .hero-bg-wrap .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.folio-page--hero .hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }

/* —— Hero: fondo dinámico de marca (paleta-colores) —— */
.hero-bg--brand { background: #1B365D; }
.hero-bg__layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-bg__base {
    background: linear-gradient(145deg, #1B365D 0%, #152a47 45%, #0f2038 100%);
}
.hero-bg__glow {
    background: radial-gradient(ellipse 70% 55% at 15% 85%, rgba(91, 180, 229, 0.22), transparent 60%);
    animation: hero-glow-move 14s ease-in-out infinite alternate;
}
.hero-bg__grid {
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 72px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 72px);
    opacity: 0.45;
    animation: hero-grid-drift 24s linear infinite;
}
.hero-bg__orb {
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}
.hero-bg__orb--1 {
    width: 55%;
    height: 45%;
    top: -10%;
    right: -8%;
    background: rgba(91, 180, 229, 0.35);
    animation: hero-orb-1 16s ease-in-out infinite alternate;
}
.hero-bg__orb--2 {
    width: 40%;
    height: 35%;
    bottom: 5%;
    left: -5%;
    background: rgba(58, 134, 200, 0.28);
    animation: hero-orb-2 12s ease-in-out infinite alternate;
}
.hero-bg__building-lines {
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 48px, rgba(255, 255, 255, 0.06) 48px, rgba(255, 255, 255, 0.06) 52px),
        repeating-linear-gradient(0deg, transparent 0, transparent 28px, rgba(255, 255, 255, 0.05) 28px, rgba(255, 255, 255, 0.05) 32px);
    mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    animation: hero-lines-shift 20s ease-in-out infinite alternate;
}
.hero-bg__rules {
    display: none;
}
.hero-bg__brand-bands {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
}
.hero-bg__letterhead {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.hero-bg__stripe {
    display: block;
    width: 100%;
}
.hero-bg__stripe--white {
    height: 3px;
    background: rgba(255, 255, 255, 0.92);
}
.hero-bg__stripe--innov {
    height: 8px;
    background: linear-gradient(90deg, #5bb4e5 0%, #7ec8ef 38%, #5bb4e5 72%, #3a86c8 100%);
}
.hero-bg__stripe--mid {
    height: 5px;
    background: #3a86c8;
    opacity: 0.88;
}
.hero-bg__stripe-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 4.5rem;
    background: linear-gradient(180deg, #5bb4e5 0%, rgba(91, 180, 229, 0.15) 100%);
    box-shadow: 2px 0 14px rgba(91, 180, 229, 0.35);
}
.brand-rule-double {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.brand-rule-double__thick { height: 3px; background: rgba(255, 255, 255, 0.85); border-radius: 2px; }
.brand-rule-double__thin { height: 1px; background: rgba(255, 255, 255, 0.65); }
.hero-bg__corner {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}
.hero-bg__corner--main {
    width: 44%;
    height: 30%;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-bg__corner--accent {
    width: 34%;
    height: 22%;
    background: linear-gradient(135deg, rgba(91, 180, 229, 0.18), rgba(27, 54, 93, 0.75));
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
    animation: hero-corner-shift 11s ease-in-out infinite alternate;
}
.hero-bg__logo-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    opacity: 0.14;
    z-index: 1;
}
.hero-bg__logo-band img {
    height: 1.75rem;
    width: auto;
    filter: brightness(0) invert(1);
}
.hero-bg--brand::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(105deg, rgba(27, 54, 93, 0.82) 0%, rgba(27, 54, 93, 0.45) 48%, rgba(27, 54, 93, 0.12) 100%);
}

/* —— Hero: variante isotipo (centro-derecha, altura carrusel) —— */
.hero-bg--watermark::after {
    background: linear-gradient(
        105deg,
        rgba(27, 54, 93, 0.88) 0%,
        rgba(27, 54, 93, 0.58) 36%,
        rgba(27, 54, 93, 0.4) 52%,
        rgba(27, 54, 93, 0.36) 100%
    );
}
.hero-bg__isotype-panel {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 56%;
    right: auto;
    bottom: auto;
    width: min(54%, 26rem);
    height: min(48vh, 24rem);
    transform: translate(-42%, -38%);
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 88% 78% at 52% 50%, #000 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 88% 78% at 52% 50%, #000 50%, transparent 100%);
}
.hero-bg__isotype-panel img {
    display: block;
    width: 100%;
    max-width: 24rem;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.92;
    mix-blend-mode: screen;
}
@media (min-width: 1024px) {
    .hero-bg__isotype-panel {
        top: 51%;
        left: 58%;
        width: min(48%, 24rem);
        height: min(44vh, 22rem);
        transform: translate(-44%, -36%);
    }
    .hero-bg__isotype-panel img {
        opacity: 0.95;
    }
}
@media (max-width: 639px) {
    .hero-bg__isotype-panel {
        top: 42%;
        bottom: auto;
        left: 50%;
        width: min(70%, 16.5rem);
        height: min(28vh, 11rem);
        transform: translate(-50%, -58%);
        -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 48%, #000 45%, transparent 100%);
        mask-image: radial-gradient(ellipse 90% 72% at 50% 48%, #000 45%, transparent 100%);
    }
    .hero-bg__isotype-panel img {
        opacity: 0.75;
    }
}
.hero-bg__brand-bands--tapered {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1.35rem 8% 0;
    pointer-events: none;
}
.hero-bg__band {
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}
.hero-bg__band--innov {
    width: min(70%, 26rem);
    height: 8px;
    background: linear-gradient(90deg, #5bb4e5 0%, #3a86c8 100%);
}
.hero-bg__band--mid {
    width: min(55%, 20rem);
    height: 5px;
    background: #3a86c8;
}
.hero-bg__band--light {
    width: min(40%, 15rem);
    height: 3px;
    background: rgba(255, 255, 255, 0.95);
}
@keyframes hero-glow-move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(4%, -3%) scale(1.08); }
}
@keyframes hero-grid-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-36px, -28px); }
}
@keyframes hero-rules-pulse {
    0%, 100% { opacity: 0.32; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.48; transform: translateX(-50%) scaleX(1.04); }
}
@keyframes hero-corner-shift {
    from { transform: translate(0, 0); opacity: 0.85; }
    to { transform: translate(-2%, -1.5%); opacity: 1; }
}
@keyframes hero-letterhead-shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}
.hero-bg__stripe--innov {
    animation: hero-letterhead-shimmer 12s ease-in-out infinite;
}
@keyframes hero-orb-1 {
    from { transform: translate(0, 0); }
    to { transform: translate(-6%, 8%); }
}
@keyframes hero-orb-2 {
    from { transform: translate(0, 0); }
    to { transform: translate(8%, -5%); }
}
@keyframes hero-lines-shift {
    from { transform: scale(1) translateX(0); }
    to { transform: scale(1.03) translateX(-2%); }
}

.hero-bg:not(.hero-bg--brand)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg, rgba(0, 75, 141, 0.92) 0%, rgba(0, 75, 141, 0.55) 45%, rgba(0, 75, 141, 0.15) 100%);
}
.hero-phrase-stage { max-width: 40rem; }
.hero-phrase-stack {
    position: relative;
    min-height: 5.5rem;
}
@media (min-width: 640px) {
    .hero-phrase-stack { min-height: 4.25rem; }
}
@media (min-width: 1024px) {
    .hero-phrase-stack { min-height: 3.6rem; }
}
.hero-phrase {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.hero-phrase.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.hero-phrase.is-leaving {
    position: absolute;
    opacity: 0;
    transform: translateY(-1rem);
}
.hero-subtitle {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-subtitle.is-changing {
    opacity: 0;
    transform: translateY(0.5rem);
}
.hero-phrase-controls,
#hero-phrase-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    z-index: 20;
}
.hero-phrase-dots-track,
#hero-phrase-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.hero-phrase-dot {
    width: 2.25rem;
    height: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.28);
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hero-phrase-dot.is-active {
    width: 2.75rem;
    background: var(--azul-innov, #5bb4e5);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(91, 180, 229, 0.65);
    transform: scaleY(1.15);
}
.hero-phrase-dot:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: #fff;
}
.hero-phrase-dot.is-active:hover {
    background: #7ec8ef;
}
.hero-phrase-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid rgba(91, 180, 229, 0.9);
    background: rgba(27, 54, 93, 0.72);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.hero-phrase-nav__svg {
    display: block;
    width: 0.875rem;
    height: 0.875rem;
    pointer-events: none;
}
.hero-phrase-nav:hover {
    background: rgba(91, 180, 229, 0.35);
    border-color: #fff;
    transform: scale(1.05);
}
.hero-phrase-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.brand-logo { object-fit: contain; }
.brand-logo-sidebar {
    width: 100%;
    max-width: 13.5rem;
    height: auto;
}
.brand-logo-header {
    height: 2.25rem;
    width: auto;
    max-width: 9.5rem;
}
.brand-logo-footer {
    width: 100%;
    max-width: 10rem;
    height: auto;
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--azul-innov);
    background: #fff;
}
.site-footer__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--azul-corp);
}
.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(30, 41, 59, 0.78);
    transition: color 0.2s;
}
.site-footer__link:hover { color: var(--azul-innov); }
.site-footer__tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(27, 54, 93, 0.88);
}
.site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    border: 1px solid rgba(27, 54, 93, 0.12);
    color: var(--azul-corp);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.site-footer__social:hover {
    color: #fff;
    background: var(--azul-innov);
    border-color: var(--azul-innov);
}
.site-footer__bottom {
    border-top: 1px solid rgba(27, 54, 93, 0.08);
    background: #f8fafc;
}
.site-footer__credit {
    margin-top: 0.5rem;
    font-size: 10px;
    color: rgba(30, 41, 59, 0.5);
}
.site-footer__credit a {
    font-weight: 600;
    color: rgba(27, 54, 93, 0.65);
    transition: color 0.2s;
}
.site-footer__credit a:hover { color: var(--azul-innov); }
@media (max-width: 767px) {
    .site-footer__grid {
        text-align: center;
    }
    .site-footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .site-footer__main ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .site-footer__main ul li {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 20rem;
    }
    .site-footer__link {
        justify-content: center;
        text-align: center;
    }
}

/* —— Layout: barra lateral vs vista completa —— */
.site-aside {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 200;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    display: none;
    flex-direction: column;
    border-right: 1px solid rgba(27, 54, 93, 0.1);
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.site-aside > div,
.site-aside nav {
    background-color: #ffffff;
}

.site-aside nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.375rem;
}

@media (min-width: 1024px) {
    body.has-sidebar {
        background-color: #f8fafc !important;
        background-image: none !important;
    }
    body.has-sidebar #site-main {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
        max-width: calc(100vw - 280px) !important;
        box-sizing: border-box !important;
        overflow-x: clip;
    }
    body.has-sidebar .site-aside {
        display: flex !important;
        transform: translateX(0);
    }

    body.is-fullwidth {
        background: var(--lc-neutro, #f8fafc);
    }
    body.is-fullwidth #site-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.is-fullwidth .site-aside {
        display: flex !important;
        transform: translateX(-100%);
        box-shadow: none;
        pointer-events: none;
    }
}

#site-main {
    min-height: 100vh;
}

.layout-fabs {
    position: fixed;
    top: 1rem;
    z-index: 55;
    display: none;
}
@media (min-width: 1024px) {
    .layout-fabs { display: flex; }
    body.has-sidebar .layout-fabs { right: 1rem; left: auto; }
    body.is-fullwidth .layout-fabs { left: 1rem; right: auto; }
}
.layout-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    border: 1px solid rgba(27, 54, 93, 0.12);
    background: #fff;
    color: var(--azul-corp);
    box-shadow: 0 4px 16px rgba(0, 30, 60, 0.12);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.layout-fab:hover {
    color: var(--azul-innov);
    border-color: rgba(91, 180, 229, 0.45);
    background: #f0f9ff;
}
.nav-side-util {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    border: 1px dashed rgba(27, 54, 93, 0.2);
    background: #f8fafc;
    padding: 0.55rem 0.75rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(27, 54, 93, 0.7);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-side-util:hover {
    border-color: var(--azul-innov);
    color: var(--azul-corp);
    background: #e8f6fc;
}
.folio-page--hero .hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 1023px) {
    #hero.folio-page--hero {
        min-height: calc(100dvh - var(--mobile-header-h) - var(--mobile-dock-h) - env(safe-area-inset-bottom, 0px));
        min-height: calc(100vh - var(--mobile-header-h) - var(--mobile-dock-h) - env(safe-area-inset-bottom, 0px));
        scroll-margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    .folio-page--hero .hero-content {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .folio-page:not(#hero) {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}
@media (min-width: 1024px) {
    .folio-page--hero .hero-content { justify-content: center; }
}
.folio-page-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(0, 75, 141, 0.25);
}
@media (min-width: 1024px) {
    .folio-page-num { top: 2rem; right: 2.5rem; }
}
.folio-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* Contacto: sin borde superior; la línea azul queda solo en .site-footer */
#contacto.folio-page,
#contacto.wp-block-group {
    border-top: none !important;
}

/* Etiquetas de sección eliminadas del diseño */
#hero .folio-kicker,
#nosotros .folio-kicker,
#proyecto .folio-kicker,
#contacto .folio-kicker {
    display: none !important;
}
.folio-cover-overlay {
    background: linear-gradient(105deg, rgba(0, 75, 141, 0.92) 0%, rgba(0, 75, 141, 0.55) 45%, rgba(0, 75, 141, 0.15) 100%);
}
.project-spread {
    display: grid;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0, 75, 141, 0.1);
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 75, 141, 0.06);
}
.project-gallery__caption {
    margin: 0;
    padding: 0.75rem 1rem 1rem;
}
.project-gallery__img img,
.project-gallery .wp-block-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}
@media (min-width: 768px) {
    .project-spread { grid-template-columns: 1.15fr 1fr; min-height: 280px; }
    .project-spread__cols {
        display: grid !important;
        grid-template-columns: 1.15fr 1fr;
        gap: 0;
        min-height: 280px;
        align-items: stretch;
    }
    .project-spread__cols > .wp-block-column { margin: 0; }
    .project-spread__cols .media-frame { min-height: 280px; height: 100%; }
}
.project-spread img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
@media (min-width: 1024px) {
    .project-spread { min-height: 320px; }
}
.status-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* —— Imágenes —— */
.media-frame {
    position: relative;
    overflow: hidden;
}
.media-frame .wp-block-image {
    margin: 0;
    height: 100%;
}
.media-frame .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}
.media-frame img {
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.media-frame:hover img { transform: scale(1.04); }

/* —— Nosotros: imagen a pantalla completa del contenedor —— */
.nosotros-media {
    line-height: 0;
    background: #f8fafc;
}
.nosotros-media .wp-block-image,
.nosotros-media figure {
    margin: 0;
    height: 100%;
}
.nosotros-media img,
.nosotros-media__img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 520px;
    object-fit: cover;
    object-position: center center;
}
@media (min-width: 1024px) {
    .nosotros-media {
        min-height: 100%;
        height: 100%;
        align-self: stretch;
    }
    .nosotros-media img,
    .nosotros-media__img img {
        min-height: 480px;
        max-height: none;
    }
    #nosotros .wp-block-columns.items-center {
        align-items: stretch !important;
    }
    #nosotros .wp-block-column:last-child {
        display: flex;
        flex-direction: column;
    }
}

.project-hero .wp-block-image,
.project-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
}

/* —— Proyecto: carrusel de imágenes —— */
.project-carousel {
    position: relative;
}
.project-carousel__viewport {
    overflow: hidden;
    background: #fff;
}
.project-carousel__track {
    position: relative;
    min-height: 14rem;
}
@media (min-width: 640px) {
    .project-carousel__track { min-height: 18rem; }
}
@media (min-width: 1024px) {
    .project-carousel__track { min-height: 22rem; }
}
.project-carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.project-carousel__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}
.project-carousel__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
}
.project-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(27, 54, 93, 0.08);
    background: #f8fafc;
    padding: 0.75rem 1rem;
}
.project-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.project-carousel__dot {
    width: 2rem;
    height: 0.35rem;
    border: 1px solid rgba(27, 54, 93, 0.18);
    border-radius: 9999px;
    background: rgba(27, 54, 93, 0.12);
    transition: width 0.2s, background 0.2s, border-color 0.2s;
}
.project-carousel__dot.is-active {
    width: 2.5rem;
    background: var(--azul-innov, #5bb4e5);
    border-color: var(--azul-innov, #5bb4e5);
}
.project-carousel__dot:hover {
    background: rgba(91, 180, 229, 0.45);
    border-color: var(--azul-innov, #5bb4e5);
}
.project-carousel__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(27, 54, 93, 0.15);
    border-radius: 9999px;
    background: #fff;
    color: var(--azul-corp, #1b365d);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.project-carousel__nav:hover {
    background: rgba(91, 180, 229, 0.12);
    border-color: var(--azul-innov, #5bb4e5);
    transform: scale(1.05);
}
.project-carousel__nav-svg {
    display: block;
    width: 0.875rem;
    height: 0.875rem;
}

/* —— Animaciones al scroll —— */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left { transform: translateX(-2rem); }
.reveal-left.is-visible { transform: translateX(0); }
.reveal-right { transform: translateX(2rem); }
.reveal-right.is-visible { transform: translateX(0); }
.reveal-scale { transform: scale(0.94); }
.reveal-scale.is-visible { transform: scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.pillar-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(27, 54, 93, 0.1);
    border-color: rgba(91, 180, 229, 0.35);
}
.stat-pill {
    transition: transform 0.35s ease, background 0.35s ease;
}
.stat-pill:hover {
    transform: translateY(-3px);
    background: rgba(91, 180, 229, 0.06);
}
.stat-pill .stat-num {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-pill.is-visible .stat-num { transform: scale(1); }
.project-spread {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.project-spread.is-visible:hover {
    box-shadow: 0 16px 40px rgba(27, 54, 93, 0.12);
}
.contact-panel {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.contact-panel.is-visible:hover {
    box-shadow: 0 8px 32px rgba(27, 54, 93, 0.08);
    border-color: rgba(91, 180, 229, 0.25);
}

/* —— Contacto: tarjetas correo / oficina —— */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: #fff;
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: 14px;
}
.contact-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}
.contact-card__icon--mail {
    background: rgba(91, 180, 229, 0.2);
    color: #1b365d;
}
.contact-card__icon--office {
    background: rgba(16, 185, 129, 0.16);
    color: #1b365d;
}
.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.contact-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(30, 41, 59, 0.55);
}
.contact-card__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1b365d;
    line-height: 1.35;
    text-decoration: none;
    word-break: break-word;
}
.contact-card__value--text {
    font-weight: 600;
    color: rgba(30, 41, 59, 0.82);
}
a.contact-card__value:hover {
    color: #5bb4e5;
}
.contact-social {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1rem;
}
.contact-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(27, 54, 93, 0.12);
    background: #fff;
    color: #1b365d;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-social__link:hover {
    background: rgba(91, 180, 229, 0.12);
    border-color: rgba(91, 180, 229, 0.35);
    color: #5bb4e5;
}
.contact-panel--info .contact-map-wrap {
    margin-top: 1rem;
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-bg--brand .hero-bg__layer,
    .hero-bg--brand .hero-bg__rules,
    .hero-bg--brand .hero-bg__corner { animation: none !important; }
    .media-frame img { transition: none; }
    .pillar-card, .stat-pill, .project-spread { transition: none; }
}
.project-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 75, 141, 0.15);
    background: #fff;
    color: var(--azul-corp);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.project-quick-link:hover {
    border-color: var(--azul-innov);
    background: #e8f6fc;
    color: var(--azul-corp);
}
.project-spread-title {
    color: inherit;
    transition: color 0.2s;
}
.project-spread-title:hover { color: var(--azul-innov); }
.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 14px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.project-cta--primary {
    background: var(--azul-innov);
    color: #fff;
}
.project-cta--primary:hover { filter: brightness(1.08); }
.project-cta--outline {
    border: 1px solid rgba(0, 75, 141, 0.2);
    background: #fff;
    color: var(--azul-corp);
}
.project-cta--outline:hover {
    border-color: var(--azul-innov);
    color: var(--azul-innov);
}

.brand-mark { object-fit: contain; }
.nav-side-link {
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s, font-weight 0.2s;
}
.nav-side-link:hover { color: var(--azul-corp); background: rgba(0, 75, 141, 0.05); }
.nav-side-link.is-active { color: var(--azul-corp); font-weight: 700; background: rgba(0, 75, 141, 0.1); }
.mobile-dock {
    background: #ffffff;
    border-top: 1px solid rgba(0, 75, 141, 0.12);
    box-shadow: 0 -6px 24px rgba(0, 30, 60, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-mobile-link {
    position: relative;
    font-size: 10px;
    font-weight: 600;
    background: #ffffff;
    color: rgba(0, 75, 141, 0.55);
    transition: color 0.2s, background 0.2s;
}
.nav-mobile-link i { color: rgba(0, 75, 141, 0.45); transition: color 0.2s; }
.nav-mobile-link.is-active {
    color: var(--azul-corp) !important;
    background: #e8f6fc !important;
    font-weight: 700;
}
.nav-mobile-link.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--azul-innov);
}
.nav-mobile-link.is-active i { color: var(--azul-innov) !important; }

.form-field {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0, 75, 141, 0.12);
    background: #fff;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field:focus {
    outline: none;
    border-color: var(--azul-innov);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}
.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(30, 41, 59, 0.85);
}
.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 75, 141, 0.12);
    color: var(--azul-corp);
    font-size: 1rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-social-link:hover {
    color: var(--azul-innov);
    background: rgba(0, 163, 224, 0.08);
    border-color: rgba(0, 163, 224, 0.35);
}
.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 14px;
    color: var(--azul-corp);
    font-size: 1.05rem;
    transition: color 0.2s, background 0.2s;
}
.header-social-link:hover { color: var(--azul-innov); background: rgba(0, 163, 224, 0.08); }

.error-404-page {
    min-height: calc(100dvh - 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) {
    .error-404-page { min-height: 100vh; }
}
.error-404-page__logo .custom-logo-link,
.error-404-page__logo img {
    max-height: 3.5rem;
    width: auto;
    margin-inline: auto;
}

.scroll-top-fab { transition: opacity 0.25s, transform 0.25s; }
@media print {
    aside, header, .mobile-dock, .scroll-top-fab, .layout-fabs { display: none !important; }
    main { margin: 0 !important; }
    .folio-page { min-height: auto; page-break-after: always; }
}
