/* =============================================
   NEIRAS — Estilos
   Paleta: Navy #2A4B78 + acentos azules
============================================= */

/* @font-face y --font-logo viven en css/fonts.css — cargarlo antes de este archivo */

:root {
    --navy:      #2A4B78;
    --navy-dk:   #1A3255;
    --navy-mid:  #3A6295;
    --bg:        #EEF3FA;
    --white:     #FFFFFF;
    /* Acento azul (reemplaza el dorado original) */
    --gold:      #3A6295;
    --gold-dk:   #1A3255;
    --slate:     #5C7A9E;
    --mist:      #C0D0E4;
    --text:      #1A3255;

    --font-h: 'Black Mango', 'Helvetica Neue', Arial, sans-serif;
    --font-b: 'Black Mango', 'Helvetica Neue', Arial, sans-serif;

    --sp:  108px;
    --cw:  1340px;
    --cp:  44px;
    --tr:  0.4s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-b); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html  { overflow-x: hidden; }
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
em, i, blockquote, cite { font-style: normal; }

/* ===== HELPERS ===== */
.eyebrow {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow--light { color: rgba(201,168,108,.9); }

.section-title {
    font-family: var(--font-h);
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.section-title em   { font-style: normal; font-weight: 500; color: var(--slate); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center;
    padding: 13px 32px;
    font-family: var(--font-b);
    font-size: .7rem; font-weight: 500; letter-spacing: .17em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.btn--navy         { background: var(--navy);   color: var(--white); border-color: var(--navy); }
.btn--navy:hover   { background: transparent; color: var(--navy); }
.btn--gold         { background: var(--gold);   color: var(--white); border-color: var(--gold); }
.btn--gold:hover   { background: transparent; color: var(--gold); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm   { padding: 9px 22px; font-size: .65rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== PRELOADER ===== */
.preloader {
    position: fixed; inset: 0;
    background: var(--navy-dk);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity .7s ease, visibility .7s ease;
}
.preloader.out { opacity: 0; visibility: hidden; }

.preloader__inner { text-align: center; }

.preloader__logo {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    opacity: 0;
    animation: fadeUp .8s ease .3s forwards;
}
.preloader__logo svg   { width: 56px; }
.preloader__logo span  { font-family: var(--font-h); font-size: 1.6rem; font-weight: 300; letter-spacing: .5em; color: var(--white); text-indent: .5em; }

.preloader__bar  { width: 140px; height: 1px; background: rgba(255,255,255,.15); margin: 20px auto 0; overflow: hidden; }
.preloader__fill { height: 100%; width: 0; background: var(--gold); animation: barFill 1.4s ease .9s forwards; }

@keyframes barFill { to { width: 100%; } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

/* ===== LOGO NEIRAS — oval vertical proporcional al texto ===== */
/*
   El anillo es un ÓVALO VERTICAL centrado sobre las letras.
   Ancho del anillo = 35% del ancho del texto.
   Alto del anillo = 2.4 × ancho (óvalo vertical, ratio 1:2.4)
   El padding vertical da espacio para que el anillo sobresalga.
*/
.n-logo {
    display: inline-block;
    position: relative;
    padding: 38px 0;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
}
.n-logo__ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;             /* proporcional al ancho del texto */
    aspect-ratio: 1 / 2.4; /* óvalo vertical */
    border: 2px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
}
.n-logo__name {
    display: block;
    font-family: var(--font-logo);
    font-size: 1.05rem; font-weight: 400;
    letter-spacing: .52em; text-indent: .52em;
    color: currentColor;
    white-space: nowrap;
    position: relative;
}
/* Variante grande (preloader) */
.n-logo--lg { padding: 62px 0; }
.n-logo--lg .n-logo__name { font-size: 1.7rem; letter-spacing: .58em; text-indent: .58em; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.scrolled {
    background: rgba(26,50,85,.96);
    padding: 14px 0;
    box-shadow: 0 2px 40px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
}

.nav__wrap {
    max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp);
    display: flex; align-items: center; justify-content: space-between;
}

.nav-menu { display: flex; align-items: center; gap: 40px; }

.nav-link {
    font-size: .68rem; font-weight: 400; letter-spacing: .15em;
    text-transform: uppercase; color: rgba(255,255,255,.78);
    position: relative; transition: color var(--tr);
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--gold); transition: width var(--tr);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-link--cta { background: var(--gold); color: var(--white)!important; padding: 10px 24px; }
.nav-link--cta::after { display: none; }
.nav-link--cta:hover  { background: var(--gold-dk); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001;
}
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--white); transition: var(--tr); }

/* ===== HERO ===== */
.hero {
    position: relative; height: 100vh; min-height: 680px;
    display: flex; align-items: center; overflow: hidden;
    background: var(--navy-dk); /* fallback */
}
.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,50,85,.75) 0%, rgba(26,50,85,.35) 55%, rgba(26,50,85,.6) 100%);
    z-index: 1;
}
.hero__content {
    position: relative; z-index: 2;
    max-width: var(--cw); margin: 0 auto;
    padding: 0 var(--cp);
    width: 100%;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.hero__title {
    font-family: var(--font-h);
    font-size: clamp(2.6rem, 5.5vw, 5.2rem);
    font-weight: 300; line-height: 1.15;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 22px;
    opacity: 0; animation: fadeUp .8s ease 1.6s forwards;
}
.hero__title em { font-style: normal; font-weight: 500; color: var(--gold); }
.hero .eyebrow  { opacity: 0; animation: fadeUp .8s ease 1.4s forwards; }
.hero__sub {
    font-size: .95rem; font-weight: 300;
    color: rgba(255,255,255,.78); max-width: 520px;
    margin: 0 auto 38px; line-height: 1.85;
    opacity: 0; animation: fadeUp .8s ease 1.8s forwards;
}
.hero__btns {
    display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
    opacity: 0; animation: fadeUp .8s ease 2s forwards;
}
.hero__scroll {
    position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center;
    gap: 10px; font-size: .62rem; letter-spacing: .22em;
    text-transform: uppercase; color: rgba(255,255,255,.48);
    opacity: 0; animation: fadeUp .8s ease 2.4s forwards;
}
.hero__scroll-line {
    width: 1px; height: 44px; background: rgba(255,255,255,.3);
    overflow: hidden; position: relative;
}
.hero__scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 100%; height: 100%; background: var(--gold);
    animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop { 0%{top:-100%} 100%{top:100%} }

/* ===== MARQUEE ===== */
.marquee { background: var(--navy-dk); padding: 18px 0; overflow: hidden; border-top: 1px solid rgba(58,98,149,.25); border-bottom: 1px solid rgba(58,98,149,.25); position: relative; }
.marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: mq 30s linear infinite;
    will-change: transform;
}
.marquee__track span {
    font-family: var(--font-h);
    font-size: 1.05rem; font-weight: 400;
    color: rgba(255,255,255,.68);
    white-space: nowrap;
    padding: 0 32px;
    display: inline-flex; align-items: center;
    position: relative;
}
/* Separador " · " como pseudo-elemento, simétrico entre cada palabra */
.marquee__track span::after {
    content: '·';
    position: absolute; right: -4px; top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-style: normal;
    font-size: 1.1rem;
    pointer-events: none;
}
@keyframes mq { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== ABOUT ===== */
.about { padding: var(--sp) 0; background: var(--white); }
.about__wrap { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.about__p { font-size: .93rem; font-weight: 300; color: var(--slate); line-height: 1.95; margin-bottom: 18px; }
.about__visual { position: relative; }
.about__img { width: 100%; height: 570px; object-fit: cover; background: var(--mist); }
.about__badge { position: absolute; bottom: -22px; left: -22px; background: var(--gold); padding: 22px 26px; text-align: center; }
.about__badge-n { display: block; font-family: var(--font-h); font-size: 2.3rem; font-weight: 400; color: var(--white); line-height: 1; }
.about__badge-t { display: block; font-size: .62rem; font-weight: 300; color: rgba(255,255,255,.9); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* ===== VIDEO SHOWCASE (full-width autoplay) ===== */
.vid-showcase {
    position: relative; height: 70vh; min-height: 460px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.vid-showcase__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy-dk); }
.vid-showcase__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,50,85,.65) 0%, rgba(26,50,85,.3) 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.vid-showcase__content { text-align: center; }
.vid-showcase__title {
    font-family: var(--font-h);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 300; color: var(--white); line-height: 1.15;
}
.vid-showcase__title em { font-style: normal; font-weight: 500; color: var(--gold); }

/* ===== STATS ===== */
.stats { background: var(--navy-dk); padding: 70px 0; }
.stats__grid { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); display: grid; grid-template-columns: repeat(4,1fr); }
.stats__item { text-align: center; padding: 20px 16px; border-right: 1px solid rgba(255,255,255,.1); }
.stats__item:last-child { border-right: none; }
.stats__nw { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.stats__n { font-family: var(--font-h); font-size: 3.8rem; font-weight: 300; color: var(--white); line-height: 1; }
.stats__s { font-family: var(--font-h); font-size: 2.2rem; color: var(--gold); line-height: 1.2; }
.stats__l { font-size: .66rem; font-weight: 300; color: rgba(255,255,255,.42); letter-spacing: .1em; text-transform: uppercase; margin-top: 10px; }

/* ===== SERVICES ===== */
.services { padding: var(--sp) 0; background: var(--bg); }
.services__wrap { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); }
.services__hd { max-width: 560px; margin-bottom: 54px; }
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }

.svc-card { background: var(--white); overflow: hidden; transition: transform var(--tr), box-shadow var(--tr); }
.svc-card:hover { transform: translateY(-7px); box-shadow: 0 20px 50px rgba(42,75,120,.12); }
.svc-card--dark { background: var(--navy-dk); }
.svc-card--dark .svc-card__n,
.svc-card--dark .svc-card__t,
.svc-card--dark .svc-card__p,
.svc-card--dark .svc-card__ul li { color: var(--white)!important; }
.svc-card--dark .svc-card__ul li::before { background: var(--gold)!important; }

.svc-card__img-w { height: 230px; overflow: hidden; background: var(--mist); }
.svc-card__img   { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.svc-card:hover .svc-card__img { transform: scale(1.06); }
.svc-card__body  { padding: 28px 26px 34px; }
.svc-card__n     { display: block; font-family: var(--font-h); font-size: 2.6rem; font-weight: 300; color: var(--mist); line-height: 1; margin-bottom: 8px; }
.svc-card__t     { font-family: var(--font-h); font-size: 1.5rem; font-weight: 400; color: var(--text); margin-bottom: 12px; }
.svc-card__p     { font-size: .83rem; font-weight: 300; color: var(--slate); line-height: 1.85; margin-bottom: 16px; }
.svc-card__ul    { display: flex; flex-direction: column; gap: 7px; }
.svc-card__ul li { font-size: .76rem; font-weight: 300; color: var(--text); padding-left: 14px; position: relative; }
.svc-card__ul li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 1px; background: var(--gold); }

/* ===== BRAND SHOWCASE (Construcciones + Supplies) ===== */
.brand-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
}
.brand-card {
    display: block;
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--navy-dk);
}
.brand-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform .8s ease;
}
.brand-card:hover .brand-card__img { transform: scale(1.05); }
.brand-card__ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,50,85,.9) 0%, rgba(26,50,85,.25) 65%);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    padding: 44px 48px;
    transition: background var(--tr);
}
.brand-card:hover .brand-card__ov { background: linear-gradient(to top, rgba(26,50,85,.95) 0%, rgba(26,50,85,.35) 65%); }
.brand-card__sub   { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.brand-card__title { font-family: var(--font-h); font-size: 2.4rem; font-weight: 300; color: var(--white); margin-bottom: 16px; line-height: 1.1; }
.brand-card__cta   { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.65); transition: color var(--tr); }
.brand-card:hover .brand-card__cta { color: var(--gold); }

/* ===== PROJECTS ===== */
.projects { padding: var(--sp) 0; background: var(--white); }
.projects__hd { max-width: var(--cw); margin: 0 auto 48px; padding: 0 var(--cp); }

.proj-hero { display: block; width: 100%; height: 68vh; min-height: 440px; overflow: hidden; position: relative; margin-bottom: 4px; background: var(--navy-dk); }
.proj-hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform .8s ease;
}
.proj-hero:hover .proj-hero__img { transform: scale(1.03); }
.proj-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,50,85,.8) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 52px 56px; }
.proj-hero__cat   { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.proj-hero__title { font-family: var(--font-h); font-size: 2.8rem; font-weight: 300; color: var(--white); margin-bottom: 8px; }
.proj-hero__desc  { font-size: .83rem; color: rgba(255,255,255,.7); max-width: 400px; margin-bottom: 20px; }

.projects__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }

.proj-card { display: block; overflow: hidden; background: var(--navy-dk); transition: none; }
.proj-card__iw { aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: var(--navy-dk); position: relative; }
.proj-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform .6s ease;
}
.proj-card:hover .proj-card__img { transform: scale(1.07); }
.proj-card__hov { position: absolute; inset: 0; background: rgba(26,50,85,0); display: flex; align-items: center; justify-content: center; transition: background var(--tr); }
.proj-card:hover .proj-card__hov { background: rgba(26,50,85,.4); }
.proj-card__hov span { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--white); opacity: 0; transform: translateY(8px); transition: opacity var(--tr), transform var(--tr); }
.proj-card:hover .proj-card__hov span { opacity: 1; transform: none; }
.proj-card__info { padding: 14px 18px; }
.proj-card__cat  { display: block; font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.proj-card__t    { font-family: var(--font-h); font-size: 1.05rem; font-weight: 400; color: var(--text); }

.projects__cta { text-align: center; padding: 58px var(--cp) 0; }

/* ===== VIDEO PLAYER (inline con controles) ===== */
.vid-player-section { padding: var(--sp) 0; background: var(--navy-dk); }
.vid-player-wrap { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); display: grid; grid-template-columns: 1fr 2fr; gap: 78px; align-items: center; }
.vid-player-desc { font-size: .88rem; font-weight: 300; color: rgba(255,255,255,.5); line-height: 1.9; margin-top: 4px; }
.vid-player-box  { position: relative; aspect-ratio: 16/9; background: #0a0d14; overflow: hidden; }
.vid-player-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play-btn {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.22); border: none; cursor: pointer;
    transition: background var(--tr);
}
.vid-play-btn:hover { background: rgba(0,0,0,.38); }
.vid-play-btn svg { width: 60px; height: 60px; fill: none; stroke: var(--white); stroke-width: 1.5; transition: transform var(--tr), stroke var(--tr); filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); }
.vid-play-btn:hover svg { transform: scale(1.1); stroke: var(--gold); }
.vid-play-btn.hidden { display: none; }

/* ===== PROCESS ===== */
.process { padding: var(--sp) 0; background: var(--bg); }
.process__wrap { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); }
.process__hd   { max-width: 480px; margin-bottom: 66px; }
.process__steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 38px; position: relative; }
.process__steps::before { content: ''; position: absolute; top: 32px; left: 0; right: 0; height: 1px; background: var(--mist); z-index: 0; }
.proc-step { position: relative; z-index: 1; }
.proc-step__n { width: 64px; height: 64px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: .8rem; font-weight: 500; color: var(--white); margin-bottom: 20px; }
.proc-step__b h3 { font-family: var(--font-h); font-size: 1.22rem; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.proc-step__b p  { font-size: .82rem; font-weight: 300; color: var(--slate); line-height: 1.85; }

/* ===== QUOTE ===== */
.quote-section { padding: 84px 0; background: var(--navy); border-top: 1px solid rgba(201,168,108,.2); border-bottom: 1px solid rgba(201,168,108,.2); }
.quote-section__inner { max-width: 760px; margin: 0 auto; padding: 0 var(--cp); text-align: center; }
.quote-section__inner blockquote p { font-family: var(--font-h); font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 400; color: var(--white); line-height: 1.65; margin-bottom: 20px; }
.quote-section__inner blockquote cite { font-size: .7rem; font-weight: 400; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; font-style: normal; }

/* ===== CONTACT ===== */
.contact { padding: var(--sp) 0; background: var(--white); }
.contact__wrap { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); display: grid; grid-template-columns: 1fr 1.5fr; gap: 88px; align-items: start; }
.contact__intro { font-size: .9rem; font-weight: 300; color: var(--slate); line-height: 1.95; margin-bottom: 36px; }
.contact__data  { display: flex; flex-direction: column; gap: 17px; margin-bottom: 34px; }
.contact__row   { display: flex; align-items: center; gap: 14px; }
.cico { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.contact__row a,
.contact__row span { font-size: .87rem; font-weight: 300; color: var(--text); transition: color var(--tr); }
.contact__row a:hover { color: var(--gold); }
.contact__social { display: flex; gap: 12px; }
.soc-btn { width: 40px; height: 40px; border: 1px solid var(--mist); display: flex; align-items: center; justify-content: center; transition: border-color var(--tr), background var(--tr); }
.soc-btn svg { width: 17px; height: 17px; color: var(--slate); transition: color var(--tr); }
.soc-btn:hover { border-color: var(--gold); background: var(--gold); }
.soc-btn:hover svg { color: var(--white); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fg { position: relative; }
.fg--full { grid-column: 1/-1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 13px 0 10px;
    font-family: var(--font-b); font-size: .84rem; font-weight: 300;
    color: var(--text); background: transparent;
    border: none; border-bottom: 1px solid var(--mist);
    outline: none; transition: border-color var(--tr);
    -webkit-appearance: none; appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--slate); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-bottom-color: var(--gold); }
.contact-form select { cursor: pointer; color: var(--slate); }
.contact-form select option { color: var(--text); }
.contact-form textarea { resize: none; }
.form-note { font-size: .68rem; color: var(--slate); text-align: center; margin-top: 10px; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dk); padding: 68px 0 0; }
.footer__wrap  { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); }
.footer__top   { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 58px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-logo   { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--white); margin-bottom: 8px; }
.footer-logo svg { width: 38px; }
.footer-logo span { font-family: var(--font-logo); font-size: 1.1rem; letter-spacing: .5em; font-weight: 300; text-indent: .5em; }
.footer__tag   { font-size: .68rem; color: rgba(255,255,255,.35); letter-spacing: .1em; text-transform: uppercase; }
.footer__nav ul { display: flex; flex-direction: column; gap: 13px; }
.footer__nav a  { font-size: .76rem; font-weight: 300; color: rgba(255,255,255,.52); transition: color var(--tr); }
.footer__nav a:hover { color: var(--gold); }
.footer__contact p { margin-bottom: 9px; }
.footer__contact a,
.footer__contact p { font-size: .76rem; font-weight: 300; color: rgba(255,255,255,.52); transition: color var(--tr); }
.footer__contact a:hover { color: var(--gold); }
.footer__bot { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.footer__bot p { font-size: .68rem; color: rgba(255,255,255,.26); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: .68rem; color: rgba(255,255,255,.26); transition: color var(--tr); }
.footer__legal a:hover { color: var(--gold); }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float { position: fixed; bottom: 32px; right: 32px; z-index: 990; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.wa-float.on { opacity: 1; transform: none; }
.wa-btn { width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 22px rgba(37,211,102,.36); transition: transform var(--tr), box-shadow var(--tr); }
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }
.wa-tip { background: var(--navy-dk); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: .68rem; white-space: nowrap; opacity: 0; transform: translateY(5px); transition: opacity var(--tr), transform var(--tr); pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }

/* ===== CHATBOT ===== */
.chatbot { position: fixed; bottom: 32px; right: 32px; z-index: 990; }

.chat-toggle {
    width: 60px; height: 60px;
    background: #25D366; border: none;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 22px rgba(37,211,102,.42);
    transition: transform var(--tr), box-shadow var(--tr);
    position: relative;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.chat-toggle__icon { width: 30px; height: 30px; color: var(--white); position: absolute; transition: opacity .3s, transform .3s; }
.chat-toggle__icon--open  { opacity: 1; transform: scale(1); }
.chat-toggle__icon--close { opacity: 0; transform: scale(.6); }
.chatbot.open .chat-toggle__icon--open  { opacity: 0; transform: scale(.6); }
.chatbot.open .chat-toggle__icon--close { opacity: 1; transform: scale(1); }

.chat-badge { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: var(--gold); border-radius: 50%; font-size: .6rem; font-weight: 600; color: var(--white); display: flex; align-items: center; justify-content: center; }
.chat-badge.hidden { display: none; }

.chat-panel {
    position: absolute; bottom: 68px; right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(26,50,85,.22);
    overflow: hidden;
    display: flex; flex-direction: column;
    max-height: 480px;
    transform-origin: bottom right;
    transform: scale(.9); opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
}
.chatbot.open .chat-panel { transform: scale(1); opacity: 1; pointer-events: all; }

.chat-header { background: var(--navy-dk); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-header__logo { width: 32px; flex-shrink: 0; }
.chat-header__logo svg { width: 100%; }
.chat-header__info strong { display: block; font-family: var(--font-h); font-size: 1rem; font-weight: 400; letter-spacing: .15em; color: var(--white); }
.chat-header__info span  { font-size: .62rem; color: rgba(255,255,255,.5); }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 2px; }

.chat-msg { max-width: 84%; padding: 9px 13px; border-radius: 4px; font-size: .8rem; line-height: 1.55; }
.chat-msg--bot  { background: var(--bg); color: var(--text); border-bottom-left-radius: 0; align-self: flex-start; }
.chat-msg--user { background: var(--navy); color: var(--white); border-bottom-right-radius: 0; align-self: flex-end; }

.chat-typing { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: var(--bg); border-radius: 4px; border-bottom-left-radius: 0; align-self: flex-start; }
.chat-typing span { width: 6px; height: 6px; background: var(--slate); border-radius: 50%; animation: blink 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.3} 40%{opacity:1} }

.chat-suggestions { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--mist); }
.chat-sug-btn { font-size: .68rem; color: var(--navy); border: 1px solid var(--mist); background: var(--white); padding: 5px 10px; cursor: pointer; transition: background var(--tr), border-color var(--tr); font-family: var(--font-b); }
.chat-sug-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.chat-input-area { display: flex; border-top: 1px solid var(--mist); }
#chatInput { flex: 1; padding: 12px 14px; border: none; outline: none; font-family: var(--font-b); font-size: .8rem; color: var(--text); }
#chatSend { width: 44px; background: var(--navy); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--tr); }
#chatSend:hover { background: var(--navy-mid); }
#chatSend svg { width: 16px; height: 16px; color: var(--white); }

.chat-wa-btn { width: calc(100% - 24px); margin: 0 12px 10px; padding: 9px; background: #25D366; color: var(--white); border: none; cursor: pointer; font-family: var(--font-b); font-size: .74rem; letter-spacing: .08em; text-align: center; display: block; text-decoration: none; transition: background var(--tr); }
.chat-wa-btn:hover { background: #1eb355; }

/* ===== EDITOR ===== */
.editor-ui { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.editor-toggle {
    display: flex; align-items: center; gap: 8px;
    background: var(--navy-dk); color: var(--white);
    border: 1px solid rgba(255,255,255,.2);
    padding: 9px 18px; cursor: pointer;
    font-family: var(--font-b); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    transition: background var(--tr);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.editor-toggle:hover { background: var(--navy); }
.editor-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.body-edit-mode .editor-toggle { background: var(--gold); border-color: var(--gold); }
.editor-toggle__label { display: none; }

.editor-bar {
    background: var(--gold); color: var(--white);
    padding: 10px 18px;
    display: flex; align-items: center; gap: 14px;
    font-size: .72rem; font-family: var(--font-b);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    white-space: nowrap;
}
.body-edit-mode .editor-bar { opacity: 1; pointer-events: all; }

.editor-bar__txt  { font-weight: 300; }
.editor-bar__save  { background: var(--white); color: var(--gold-dk); border: none; padding: 6px 14px; cursor: pointer; font-family: var(--font-b); font-size: .68rem; font-weight: 500; }
.editor-bar__reset { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); padding: 5px 12px; cursor: pointer; font-family: var(--font-b); font-size: .68rem; }
.editor-bar__reset:hover { background: rgba(255,255,255,.1); }

/* Editable highlight */
.body-edit-mode [data-eid]:not(img):not(video):not([data-eid$="-video"]) {
    outline: 2px dashed rgba(201,168,108,.5);
    outline-offset: 2px;
    cursor: text;
    min-height: 1em;
}
.body-edit-mode [data-eid]:not(img):not(video):not([data-eid$="-video"]):focus {
    outline-color: var(--gold);
    background: rgba(201,168,108,.04);
}
.body-edit-mode .edit-img { cursor: pointer; }
.body-edit-mode .edit-img::after { content: ''; }

/* Wrapper de imagen editable */
.img-edit-wrap { position: relative; display: block; }
.body-edit-mode .img-edit-wrap { z-index: 30; }
.img-edit-overlay {
    position: absolute; inset: 0;
    background: rgba(42,75,120,0);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s;
    pointer-events: none;
    font-family: var(--font-b); font-size: .72rem; font-weight: 400;
    letter-spacing: .1em; text-transform: uppercase;
    color: transparent;
    z-index: 31;
}
.body-edit-mode .img-edit-wrap:hover .img-edit-overlay {
    background: rgba(42,75,120,.55);
    color: var(--white);
    pointer-events: auto;
    cursor: pointer;
}

/* En modo edición: los overlays decorativos no bloquean clics en las imágenes de fondo */
.body-edit-mode .brand-card__ov,
.body-edit-mode .proj-hero__overlay,
.body-edit-mode .proj-card__hov,
.body-edit-mode .pr-card__iw,
.body-edit-mode .hero__overlay,
.body-edit-mode .vid-showcase__overlay { pointer-events: none !important; }
.body-edit-mode .brand-card__ov *,
.body-edit-mode .proj-hero__overlay *,
.body-edit-mode .hero__overlay *,
.body-edit-mode .vid-showcase__overlay * { pointer-events: auto; }

/* Hint visual sobre cards con imagen de fondo editable */
.body-edit-mode .brand-card,
.body-edit-mode .proj-hero,
.body-edit-mode .proj-card,
.body-edit-mode .pr-card { position: relative; }
.body-edit-mode .brand-card::before,
.body-edit-mode .proj-hero::before {
    content: '📷 Cambiar imagen de fondo';
    position: absolute; top: 18px; right: 18px;
    background: rgba(26,50,85,.92); color: #fff;
    padding: 8px 14px; font-size: .7rem; letter-spacing: .08em;
    z-index: 32; pointer-events: none;
    opacity: 0; transition: opacity .25s;
}
.body-edit-mode .brand-card:hover::before,
.body-edit-mode .proj-hero:hover::before { opacity: 1; }

/* Botón cambiar video (solo visible en edit mode) */
.edit-video-btn {
    position: absolute; z-index: 5;
    bottom: 16px; right: 16px;
    background: var(--gold); color: var(--white);
    border: none; padding: 7px 14px; cursor: pointer;
    font-family: var(--font-b); font-size: .68rem; letter-spacing: .08em;
    display: none;
}
.body-edit-mode .edit-video-btn { display: block; }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] { opacity: 0; transition: opacity .85s cubic-bezier(.4,0,.2,1), transform .85s cubic-bezier(.4,0,.2,1); }
[data-animate="fade-up"]    { transform: translateY(48px); }
[data-animate="fade-down"]  { transform: translateY(-48px); }
[data-animate="fade-left"]  { transform: translateX(56px); }
[data-animate="fade-right"] { transform: translateX(-56px); }
[data-animate="zoom-in"]    { transform: scale(.92); }
[data-animate="flip-up"]    { transform: rotateX(18deg) translateY(32px); transform-origin: bottom; }
[data-animate].vis { opacity: 1; transform: none; }

/* stagger helper: nth-child delays via inline data-delay */

/* ===== CLIENTES ===== */
.clients { padding: 96px 0; background: var(--bg); overflow: hidden; }
.clients__wrap { max-width: var(--cw); margin: 0 auto; padding: 0 var(--cp); }
.clients__hd { text-align: center; margin-bottom: 60px; }
.clients__hd .eyebrow { display: block; margin-bottom: 12px; }
.clients__intro { font-size: .88rem; color: var(--slate); max-width: 560px; margin: 0 auto; line-height: 1.75; }

/* Marquee horizontal auto-scroll */
.clients__marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.clients__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: clientsScroll 32s linear infinite;
}
/* La animación corre continuamente, nunca pausa */

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;          /* ancho fijo uniforme */
    height: 160px;         /* alto fijo uniforme */
    padding: 0 32px;
    flex-shrink: 0;
    border-right: 1px solid rgba(42,75,120,.1);
    transition: background var(--tr);
    overflow: hidden;
}
.client-item:hover { background: var(--white); }
.client-item img,
.client-item svg {
    height: 88px;
    max-width: 210px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(.55);
    transition: filter var(--tr), transform var(--tr);
}
/* Codesin: la imagen original tiene mucho blanco alrededor del logo,
   compensamos con un escalado ligero para que se vea del mismo tamaño visual */
.client-item img[src*="codesin"] { transform: scale(1.55); }
.client-item:hover img,
.client-item:hover svg { filter: grayscale(0) opacity(1); }
.client-item:hover img[src*="codesin"] { transform: scale(1.6); }

@keyframes clientsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    :root { --sp: 84px; --cp: 30px; }
    .about__wrap { gap: 50px; }
    .stats__grid { grid-template-columns: repeat(2,1fr); }
    .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .stats__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
    .services__grid { grid-template-columns: 1fr 1fr; }
    .svc-card:last-child { grid-column: 1/-1; max-width: 540px; }
    .process__steps { grid-template-columns: 1fr 1fr; }
    .process__steps::before { display: none; }
    .vid-player-wrap { grid-template-columns: 1fr; gap: 40px; }
    .contact__wrap { grid-template-columns: 1fr; gap: 52px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer__brand { grid-column: 1/-1; }
    .client-item { width: 220px; height: 120px; }
}

@media (max-width: 768px) {
    :root { --sp: 62px; --cp: 22px; }
    .nav-menu { position: fixed; inset: 0; background: rgba(26,50,85,.97); flex-direction: column; justify-content: center; gap: 26px; transform: translateX(100%); transition: transform .4s ease; }
    .nav-menu.open { transform: translateX(0); }
    .nav-link { font-size: .9rem; }
    .nav-toggle { display: flex; }
    .hero__title { font-size: 3rem; }
    .hero__btns { flex-direction: column; align-items: center; }
    .about__wrap { grid-template-columns: 1fr; gap: 48px; }
    .about__img  { height: 380px; }
    .about__badge { left: 0; }
    .services__grid { grid-template-columns: 1fr; }
    .svc-card:last-child { max-width: 100%; }
    .projects__grid { grid-template-columns: 1fr; }
    .proj-hero { height: 55vw; min-height: 280px; }
    .proj-hero__overlay { padding: 24px 22px; }
    .proj-hero__title { font-size: 1.8rem; }
    .process__steps { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr; gap: 24px; }
    .footer__bot { flex-direction: column; gap: 10px; text-align: center; }
    .chatbot { bottom: 20px; right: 20px; }
    .chat-panel { width: 290px; }
    .wa-float { bottom: 20px; right: 20px; }
    .editor-ui { bottom: 16px; left: 50%; transform: translateX(-50%); width: 90vw; }
    .editor-bar { flex-direction: column; gap: 8px; text-align: center; white-space: normal; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2.4rem; }
    .stats__grid { grid-template-columns: 1fr; }
    .stats__item { border-right: none!important; }
}
