/* Prime Builder & Development · web v1 (5-nov-2026). Colores tomados del logo. */
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(fonts/oswald-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --blue: #4f7dac;      /* edificio azul del logo */
  --blue-d: #2f5b88;    /* azul para texto sobre blanco (contraste AA) */
  --navy: #14263d;      /* fondo de plano */
  --navy-2: #1c3352;
  --green: #8db26d;     /* edificio verde */
  --green-er: #44aa00;  /* "ER" del logo */
  --green-d: #2f7a00;   /* verde para texto sobre blanco */
  --btn: #44709f;       /* botones: azul del logo, oscurecido para que el texto blanco se lea (AA) */
  --btn-h: #2f5b88;
  --gray: #dbdbdb;
  --ink: #1d1b1c;
  --soft: #5b6470;
  --paper: #f5f6f4;
  --line: #e3e6ea;
  --r: 14px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 2px; border: 1px solid var(--btn); background: var(--btn); color: #fff; font: 600 .9rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--btn-h); border-color: var(--btn-h); }
.btn-ghost { background: transparent; color: var(--btn-h); border-color: #aab4be; }
.btn-ghost:hover { background: var(--btn-h); color: #fff; border-color: var(--btn-h); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .75); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .78rem; }
.btn-full { width: 100%; }

/* Cabecera: transparente sobre el video, blanca al bajar */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, color .35s; color: #fff; }
.top::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(rgba(10, 20, 33, .55), transparent); pointer-events: none; transition: opacity .35s; }
.top-in { position: relative; display: flex; align-items: center; gap: 24px; height: 84px; transition: height .3s; }
.top.scrolled, .top.solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20, 38, 61, .5); }
.top.scrolled::before, .top.solid::before { opacity: 0; }
.top.scrolled .top-in { height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: auto; background: #fff; border-radius: 4px; padding: 3px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font: 600 1.28rem/1 var(--head); letter-spacing: .2em; }
.brand-txt em { font-style: normal; color: var(--green-er); }
.brand-txt small { font: 500 .62rem/1 var(--body); letter-spacing: .32em; margin-top: 5px; opacity: .85; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: .9rem; position: relative; padding: 6px 0; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
nav a:hover::after, nav a.on::after { transform: scaleX(1); }
.top-act { display: flex; align-items: center; gap: 12px; }
.top { --lang-fg: currentColor; --lang-border: rgba(160, 170, 180, .6); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-btn i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* HERO: video de fondo a pantalla completa */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; background: #3a4654; text-align: center; }
.hero-bg { position: absolute; inset: 0; }
.hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; backface-visibility: hidden; }
.hv.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 27, 44, .45) 0%, rgba(20, 38, 61, .38) 45%, rgba(14, 27, 44, .62) 100%); }
.hero-in { position: relative; z-index: 2; padding: 130px 0 120px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-weight: 500; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: #e3ebf3; margin: 0; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); text-transform: uppercase; letter-spacing: .02em; max-width: 15ch; margin: .3em auto .35em; text-shadow: 0 2px 30px rgba(8, 16, 28, .45); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 50ch; margin-inline: auto; color: #eef3f8; text-shadow: 0 1px 16px rgba(8, 16, 28, .5); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-tel { margin-top: 20px; color: #dbe5ef; font-size: .95rem; }
.hero-tel a { color: #fff; font-weight: 600; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 28px; text-align: left; }
.frame-cap { position: relative; flex: none; width: 260px; height: 1.6em; font: 600 .76rem/1.6 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.cap { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.cap.on { opacity: 1; transform: none; transition-delay: .4s; }
.hv-bar { display: flex; gap: 8px; flex: 1; }
.hv-bar i { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; cursor: pointer; }
.hv-bar i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hv-bar i.done::after { transform: scaleX(1); }
.hv-bar i.on::after { animation: bar var(--hv-dur, 7s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
@media (max-width: 980px) {
  .hero-in { padding: 120px 0 110px; }
  .frame-cap { width: 180px; }
}
@media (max-width: 620px) {
  .hero-foot { bottom: 20px; gap: 14px; }
  .frame-cap { width: 140px; font-size: .66rem; letter-spacing: .16em; }
}

/* Cinta de valores */
.ticker { overflow: hidden; background: var(--blue); color: #fff; border-block: 4px solid var(--gray); }
.ticker-track { display: flex; width: max-content; animation: tick 28s linear infinite; }
.ticker span { font: 600 1.25rem/1 var(--head); text-transform: uppercase; letter-spacing: .18em; padding: 22px 34px; display: flex; align-items: center; gap: 34px; white-space: nowrap; }
.ticker span::after { content: ""; width: 10px; height: 10px; background: #dbe3ec; transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Secciones */
.sec { padding: clamp(70px, 10vw, 130px) 0; }
.sec-head { max-width: 700px; margin-bottom: 50px; }
.sec-head p:last-child { color: var(--soft); font-size: 1.08rem; }
.kicker { font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--blue); box-shadow: 4px 4px 0 var(--gray); }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.card-main { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 34px; }
.card-main h3 { font-size: 1.9rem; }
.card-main .ico { width: 84px; height: 84px; margin-bottom: auto; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } .card-main { grid-row: auto; grid-column: 1 / -1; } .card-main .ico { margin-bottom: 18px; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(79, 125, 172, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 125, 172, .07) 1px, transparent 1px); background-size: 18px 18px; opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 24px 50px -28px rgba(20, 38, 61, .55); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card p { color: var(--soft); margin: 0; }
.card-main { background: var(--navy); color: #fff; border-color: var(--navy); }
.card-main p { color: #c9d6e4; }
.card-main::before { background-image: linear-gradient(rgba(143, 179, 217, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 179, 217, .12) 1px, transparent 1px); opacity: 1; }
.ico { width: 58px; height: 58px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico .acc { stroke: var(--blue); }
.card-main .ico { stroke: #fff; } .card-main .ico .acc { stroke: #8fb3d9; }
.card .ico path { stroke-dasharray: 220; stroke-dashoffset: 0; }
.card:hover .ico path { animation: redraw 1.1s ease; }
@keyframes redraw { from { stroke-dashoffset: 220; } }

/* Misión */
.mission { background: var(--paper); position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; border: 2px dashed rgba(79, 125, 172, .25); transform: rotate(12deg); }
.mission-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.big { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.6; margin: 0; border-left: 4px solid var(--blue); padding-left: 26px; }

/* Proceso */
.process { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.step { position: relative; padding-top: 34px; }
.step .num { font: 700 3.2rem/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--blue); display: block; margin-bottom: 14px; }
.step p { color: var(--soft); margin: 0; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); z-index: 1; transition: background .3s, border-color .3s; }
.step.lit::before { background: var(--blue); border-color: var(--blue); }
.process .wrap { position: relative; }
.progress { position: absolute; left: 0; right: 0; top: calc(var(--steps-top, 0px) + 6px); height: 3px; background: var(--line); }
.progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-d), var(--blue)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Por qué elegirnos */
.why { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143, 179, 217, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 179, 217, .07) 1px, transparent 1px); background-size: 48px 48px; }
.why .wrap { position: relative; }
.why .kicker { color: #8fb3d9; }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(143, 179, 217, .18); border: 1px solid rgba(143, 179, 217, .18); border-radius: var(--r); overflow: hidden; }
.why-item { background: var(--navy); padding: 34px 32px; transition: background .3s; }
.why-item:hover { background: var(--navy-2); }
.why-item b { font: 600 .9rem/1 var(--head); color: #8fb3d9; letter-spacing: .2em; display: block; margin-bottom: 14px; }
.why-item p { color: #c9d6e4; margin: 0; }

/* Acerca de */
.about-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-logo { margin: 0; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -40px rgba(20, 38, 61, .5); }
.about-logo img { width: 100%; height: auto; display: block; }
.founder { font-size: 1.05rem; }
.lang-note { color: var(--blue-d); font-weight: 600; }

/* Cotización */
.estimate { background: linear-gradient(180deg, var(--paper), #fff); }
.est-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--blue); }
.contact-list span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.contact-list a, .contact-list b { font-size: 1.12rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.agent-hint a { font-weight: 600; }
.est-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: 0 30px 70px -45px rgba(20, 38, 61, .55); display: grid; gap: 16px; position: relative; }
.est-form::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--blue) 0 60%, var(--gray) 60%); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.est-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--soft); }
.est-form input:not([type=checkbox]), .est-form select, .est-form textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid #cfd5dc; border-radius: 8px; background: #fbfcfd; transition: border-color .2s, box-shadow .2s; }
.est-form input:focus, .est-form select:focus, .est-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 125, 172, .2); background: #fff; }
.est-form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; }
.est-form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--btn); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--blue-d); } .form-status.err { color: #b42318; }

/* Pie */
.foot { background: #0e1b2c; color: #c3cfdc; padding: 70px 0 26px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-logo { background: #fff; padding: 14px; border-radius: 10px; width: 170px; height: auto; margin-bottom: 16px; }
.foot h3 { color: #fff; font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-legal p { margin: 0; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .why-list .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .why-list .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4), .why-list .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5) { transition-delay: .32s; }

/* Celular y tableta */
@media (max-width: 980px) {
  nav { position: fixed; inset: 66px 0 auto; flex-direction: column; gap: 0; background: #fff; color: var(--ink); padding: 8px 20px 20px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .4); transform: translateY(-120%); transition: transform .3s; margin: 0; }
  nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .top.open nav { transform: none; }
  .top.open { background: #fff; color: var(--ink); }
  .menu-btn { display: flex; }
  .top.open .menu-btn i:nth-child(2) { transform: translateY(9px) rotate(45deg); }
  .top.open .menu-btn i:nth-child(3) { opacity: 0; }
  .top.open .menu-btn i:nth-child(4) { transform: translateY(-9px) rotate(-45deg); }
  .top-act .btn-sm { display: none; }
  .mission-in, .about-in, .est-in { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .process .progress { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .brand-txt b { font-size: 1.05rem; letter-spacing: .14em; }
  .brand-txt small { font-size: .55rem; letter-spacing: .26em; }
  .hero { padding-bottom: 150px; }
  .hero-art { height: 46%; }
  .row2, .steps, .why-list, .foot-in { grid-template-columns: 1fr; }
  .est-form { padding: 22px; }
  .about-logo { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
}

/* Cabecera con franja sólida (pedido 5-nov-2026): más grande, blanca, línea azul y gris abajo */
.top, .top.scrolled, .top.solid { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -18px rgba(20, 38, 61, .55); }
.top::before { display: none; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--gray) 70%); }
.top-in { height: 104px; }
.top.scrolled .top-in { height: 82px; }
.brand { gap: 14px; }
.brand img { width: 70px; padding: 0; background: none; transition: width .3s; }
.top.scrolled .brand img { width: 56px; }
.brand-txt b { font-size: 1.85rem; letter-spacing: .2em; }
.brand-txt small { font-size: .8rem; letter-spacing: .38em; margin-top: 7px; color: var(--soft); opacity: 1; }
nav { gap: 34px; }
nav a { font-size: 1.02rem; font-weight: 600; }
nav a::after { height: 2px; background: var(--blue); }
.top .btn-sm { min-height: 48px; padding: 0 24px; font-size: .86rem; }
.hero-in { padding-top: 170px; }
html { scroll-padding-top: 110px; }
@media (max-width: 1180px) { nav { gap: 22px; } nav a { font-size: .94rem; } .brand-txt b { font-size: 1.5rem; } .brand img { width: 58px; } }
@media (max-width: 980px) { .top-in, .top.scrolled .top-in { height: 78px; } nav { inset: 83px 0 auto; } .brand img { width: 50px; } .brand-txt b { font-size: 1.25rem; } .brand-txt small { font-size: .62rem; } }
