/* =====================================================================
   Rosibel Cordero Reyes · Ingeniera Civil — Hoja de estilos
   Sin dependencias externas. Fuentes locales en /assets/fonts.
   ===================================================================== */

/* ---------- Fuentes locales ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"), url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2-variations"), url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-variable.woff2") format("woff2-variations"), url("../fonts/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #061020;
  --navy-900: #081528;
  --navy-800: #0b1f3a;
  --navy-700: #12315a;
  --navy-600: #1b437a;
  --ink: #10171f;
  --text: #1c2431;
  --muted: #5d6877;
  --muted-2: #8a94a3;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --stone: #e6e0d6;
  --concrete: #d6cfc4;
  --white: #ffffff;
  --bronze: #b58a4c;
  --bronze-2: #d2ac72;
  --bronze-3: #8a6534;
  --line: rgba(16, 23, 31, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --whatsapp: #25d366;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 11vw, 150px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--bronze-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--bronze); color: var(--white); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; line-height: 0.98; }
.h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-stretch: 104%; letter-spacing: -0.015em; line-height: 1.12; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze); display: inline-flex; align-items: center; gap: 12px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow > span { display: inline; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 56ch; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.on-dark { color: var(--white); }
.on-dark .lead { color: rgba(255, 255, 255, 0.72); }
.on-dark .eyebrow { color: var(--bronze-2); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { max-width: 20ch; }
.section-head > div { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head.split .lead { justify-self: end; max-width: 46ch; }
}
.bg-dark { background: var(--navy-800); color: var(--white); }
.bg-ink { background: var(--navy-950); color: var(--white); }
.bg-paper { background: var(--paper); }
.bg-stone { background: var(--paper-2); }
.bg-white { background: var(--white); }

/* Rejilla tipo plano */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: var(--radius); border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--bronze); color: var(--white); }
.btn-primary:hover { background: var(--bronze-2); color: var(--navy-900); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-outline-dark { border-color: rgba(16, 23, 31, 0.3); color: var(--text); }
.btn-outline-dark:hover { border-color: var(--text); background: rgba(16, 23, 31, 0.04); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-whatsapp { background: var(--whatsapp); color: #062b16; }
.btn-whatsapp:hover { background: #3ee07b; }
.btn-text {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem;
  padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: gap 0.25s var(--ease), opacity 0.25s;
}
.btn-text:hover { gap: 16px; }
.btn-text svg { width: 16px; height: 16px; }
[hidden] { display: none !important; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s, border-color 0.35s, transform 0.4s var(--ease), box-shadow 0.35s;
  border-bottom: 1px solid transparent; color: var(--white);
}
.nav.is-scrolled { background: rgba(8, 21, 40, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; letter-spacing: 0.02em; font-size: 0.86rem; text-transform: uppercase; }
.brand-role { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-2); margin-top: 4px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 14px; font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); border-radius: var(--radius);
  transition: color 0.25s;
}
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--bronze-2); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-cta .btn { min-height: 44px; padding: 0 20px; font-size: 0.88rem; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; align-items: center; margin-right: -8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.25s; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-links a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links a { padding: 10px 9px; font-size: 0.84rem; }
  .nav-cta .btn { padding: 0 14px; font-size: 0.82rem; }
  .brand-name { font-size: 0.78rem; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-900); color: var(--white);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -0.02em;
}
.mobile-menu nav a .mono { color: var(--bronze-2); font-size: 0.7rem; }
.mobile-menu-footer { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mobile-menu-footer .btn { width: 100%; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 48px;
  background: radial-gradient(1200px 700px at 78% 20%, rgba(27, 67, 122, 0.55), transparent 60%), var(--navy-900);
  color: var(--white); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze), transparent); opacity: 0.6;
}
.hero-geometry { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.7; }
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 28px; max-width: 640px; }
.hero-copy .h1 { max-width: 12ch; }
.hero-copy .h1 .accent { color: var(--bronze-2); font-weight: 500; font-stretch: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-whatsapp { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.8); font-weight: 500; font-size: 0.95rem; }
.hero-whatsapp svg { width: 22px; height: 22px; color: var(--whatsapp); }
.hero-whatsapp:hover { color: var(--white); }
.hero-specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); margin-top: 12px; }
.hero-specs div { padding: 18px 16px 0 0; display: grid; gap: 6px; }
.hero-specs .mono { color: var(--bronze-2); }
.hero-specs strong { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.portrait-frame {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 21, 40, 0.65)); }
.portrait-outline { position: absolute; inset: 0; border: 1px solid var(--bronze-2); border-radius: 6px; transform: translate(18px, 18px); z-index: -1; opacity: 0.8; }
.portrait-outline::before, .portrait-outline::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--bronze-2); background: var(--navy-900); }
.portrait-outline::before { right: -5px; bottom: -5px; }
.portrait-outline::after { left: -5px; top: -5px; }
.dimension {
  position: absolute; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; white-space: nowrap;
}
.dimension-v { left: -34px; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.dimension-v::before, .dimension-v::after { content: ""; position: absolute; left: 50%; width: 1px; background: rgba(255, 255, 255, 0.3); }
.dimension-v::before { top: 0; bottom: calc(50% + 46px); }
.dimension-v::after { bottom: 0; top: calc(50% + 46px); }
.dimension-v span { writing-mode: vertical-rl; transform: rotate(180deg); }
.dimension-h { left: 0; right: 0; bottom: -30px; display: flex; align-items: center; justify-content: center; }
.dimension-h::before, .dimension-h::after { content: ""; position: absolute; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.3); }
.dimension-h::before { left: 0; right: calc(50% + 80px); }
.dimension-h::after { right: 0; left: calc(50% + 80px); }
.portrait-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; background: rgba(8, 21, 40, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark); border-left: 2px solid var(--bronze-2); padding: 12px 16px; display: grid; gap: 4px; border-radius: 3px;
}
.portrait-tag .mono { color: var(--bronze-2); font-size: 0.6rem; }
.portrait-tag strong { font-size: 0.86rem; font-weight: 600; }
.hero-scroll { position: absolute; left: var(--gutter); bottom: 22px; display: none; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.hero-scroll::after { content: ""; width: 48px; height: 1px; background: currentColor; }

@media (max-width: 1023px) {
  .hero { padding-top: calc(var(--nav-h) + 16px); min-height: 0; }
  .hero-visual { width: 100%; max-width: 420px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .portrait-frame { aspect-ratio: 4 / 5; }
  .dimension-v { display: none; }
}
@media (max-width: 640px) {
  .hero-visual { max-width: none; margin-inline: calc(-1 * var(--gutter)); width: auto; }
  .portrait-frame { aspect-ratio: 4 / 4.6; border-radius: 0; box-shadow: none; }
  .portrait-outline, .dimension-h { display: none; }
  .hero-visual + .hero-copy { margin-top: -8px; }
  .hero-specs { grid-template-columns: 1fr 1fr; }
  .hero-specs div:nth-child(3) { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 60px; }
  .hero-visual { justify-self: end; width: min(100%, 440px); margin-right: 22px; }
  .hero-scroll { display: inline-flex; }
}
@media (min-width: 1280px) { .hero-visual { width: min(100%, 480px); } }

/* ---------- Sobre Rosibel ---------- */
.about .container { display: grid; gap: 48px; }
.about-visual { position: relative; }
.about-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-card {
  position: absolute; right: -8px; bottom: -28px; width: min(280px, 78%); background: var(--navy-800); color: var(--white); padding: 22px 24px; border-radius: 4px;
  display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(8, 21, 40, 0.6);
}
.about-card .mono { color: var(--bronze-2); }
.about-card svg { width: 100%; height: auto; opacity: 0.9; }
.about-lines { position: absolute; inset: -30px auto auto -30px; width: 46%; height: 46%; border-top: 1px solid var(--bronze); border-left: 1px solid var(--bronze); z-index: -1; }
.about-copy { display: grid; gap: 28px; align-content: center; }
.about-copy .body { display: grid; gap: 16px; color: var(--muted); font-size: 1.02rem; max-width: 58ch; }
.about-focus { display: grid; gap: 0; border-top: 1px solid var(--line); }
.about-focus li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.about-focus .mono { color: var(--bronze); }
.about-focus span:last-child { font-weight: 500; font-size: 0.95rem; }
.about-credentials { display: grid; gap: 8px; padding: 18px 20px; border: 1px dashed var(--concrete); border-radius: 4px; background: var(--white); }
.about-credentials li { display: flex; gap: 12px; font-size: 0.92rem; }
.about-credentials .mono { color: var(--muted-2); min-width: 100px; }
@media (min-width: 900px) {
  .about .container { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
  .about-visual { padding-right: 30px; }
}

/* ---------- Servicios ---------- */
.services-explorer { display: grid; gap: 24px; }
.explorer-panel {
  background: var(--navy-800); color: var(--white); border-radius: 6px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden;
  display: grid; gap: 22px; align-content: start; min-height: 420px;
}
.explorer-panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.explorer-panel > * { position: relative; }
.explorer-icon { width: 88px; height: 88px; color: var(--bronze-2); }
.explorer-icon svg { width: 100%; height: 100%; }
.explorer-index { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--bronze-2); }
.explorer-panel .h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); max-width: 16ch; }
.explorer-panel p { color: rgba(255, 255, 255, 0.72); max-width: 52ch; }
.explorer-deliverables { display: grid; gap: 10px; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.explorer-deliverables li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.explorer-deliverables li::before { content: ""; width: 14px; height: 1px; background: var(--bronze-2); margin-top: 0.75em; flex: none; }
.explorer-panel .btn { justify-self: start; margin-top: 8px; }
.explorer-panel.is-switching > *:not(.explorer-icon) { animation: fadeUp 0.45s var(--ease); }

.services-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line);
  text-align: left; width: 100%; position: relative; transition: background 0.25s, padding 0.3s var(--ease);
}
.service-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 2px; background: var(--bronze); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.service-row:hover, .service-row.is-active { padding-left: 16px; background: rgba(255, 255, 255, 0.5); }
.service-row.is-active::before { transform: scaleY(1); }
.service-row .idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted-2); }
.service-row.is-active .idx { color: var(--bronze); }
.service-row .title { font-family: var(--font-display); font-weight: 600; font-stretch: 104%; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.2; }
.service-row .short { display: none; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.service-row .icon { width: 26px; height: 26px; color: var(--muted-2); transition: color 0.25s, transform 0.3s var(--ease); }
.service-row.is-active .icon, .service-row:hover .icon { color: var(--bronze); }
.service-row .icon svg { width: 100%; height: 100%; }

.services-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.service-card {
  background: var(--paper-2); padding: 28px 24px; display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden;
  transition: background 0.3s;
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.service-card:hover { background: var(--white); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-card .icon { width: 34px; height: 34px; color: var(--navy-800); transition: transform 0.4s var(--ease), color 0.3s; }
.service-card:hover .icon { transform: translateY(-3px); color: var(--bronze); }
.service-card .icon svg { width: 100%; height: 100%; }
.service-card .idx { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted-2); }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-stretch: 104%; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.2; }
.service-card p { color: var(--muted); font-size: 0.92rem; }
.service-card .btn-text { font-size: 0.82rem; margin-top: auto; color: var(--navy-800); opacity: 0.75; }
.service-card:hover .btn-text { opacity: 1; }

@media (max-width: 899px) {
  .explorer-panel { min-height: 0; }
  .services-list { display: none; }
  .services-grid { margin-top: 0; }
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .services-explorer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .explorer-panel { position: sticky; top: calc(var(--nav-h) + 24px); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { display: none; }
}

.service-card .detail { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); animation: fadeUp 0.35s var(--ease); }
.service-card .detail p { color: var(--text); }
.service-card .detail-list { display: grid; gap: 8px; }
.service-card .detail-list li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.service-card .detail-list li::before { content: ""; width: 12px; height: 1px; background: var(--bronze); margin-top: 0.7em; flex: none; }
.service-card .detail .btn { justify-self: start; min-height: 46px; font-size: 0.88rem; }
.service-card .btn-text svg { transition: transform 0.3s var(--ease); }
.service-card .btn-text[aria-expanded="true"] svg { transform: rotate(45deg); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- Sección técnica ---------- */
.technical { background: var(--navy-950); color: var(--white); overflow: hidden; }
.technical::before {
  content: ""; position: absolute; inset: 0; background: url("../images/rosibel/site-rebar-texture.webp") center / cover no-repeat; opacity: 0.22; mix-blend-mode: luminosity;
}
.technical::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(6, 16, 32, 0.5) 40%, var(--navy-950) 100%); }
.technical .container { position: relative; z-index: 1; display: grid; gap: 40px; }
.technical-copy { display: grid; gap: 22px; align-content: center; }
.technical-copy .lead { color: rgba(255, 255, 255, 0.7); }
.technical-notes { display: grid; gap: 14px; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.technical-notes li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }
.technical-notes .mono { color: var(--bronze-2); padding-top: 3px; }
.blueprint { width: 100%; height: auto; }
.blueprint .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.blueprint.is-visible .draw { animation: draw 2.2s var(--ease) forwards; }
.blueprint.is-visible .draw.d2 { animation-delay: 0.3s; }
.blueprint.is-visible .draw.d3 { animation-delay: 0.6s; }
.blueprint.is-visible .draw.d4 { animation-delay: 0.9s; }
.blueprint .label { opacity: 0; transition: opacity 0.6s 1.4s; }
.blueprint.is-visible .label { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (min-width: 900px) { .technical .container { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; } }

/* ---------- Principios ---------- */
.principles-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { background: var(--paper); padding: 32px 28px 32px 0; display: grid; gap: 14px; align-content: start; }
.principle .idx { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--bronze); }
.principle h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; }
.principle p { color: var(--muted); font-size: 0.95rem; max-width: 32ch; }
@media (min-width: 640px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } .principle { padding: 36px 28px; } }
@media (min-width: 1024px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } .principle { padding: 44px 36px; } }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.84rem; font-weight: 500; color: var(--muted); transition: all 0.25s;
  min-height: 40px;
}
.filter:hover { border-color: var(--text); color: var(--text); }
.filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.projects-grid { display: grid; gap: 28px; }
.project-card { display: grid; gap: 16px; text-align: left; width: 100%; align-content: start; }
.project-media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--stone); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8, 21, 40, 0.45)); opacity: 0; transition: opacity 0.4s; }
.project-card:hover .project-media::after { opacity: 1; }
.project-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); color: var(--navy-800); padding: 6px 10px; border-radius: 3px;
}
.project-open { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy-800); display: grid; place-items: center; transform: translateY(10px); opacity: 0; transition: all 0.4s var(--ease); }
.project-open svg { width: 18px; height: 18px; }
.project-card:hover .project-open { transform: none; opacity: 1; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project-meta .mono { color: var(--muted-2); }
.project-card h3 { font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.15; }
.project-card .loc { color: var(--muted); font-size: 0.9rem; }
.project-card.is-hidden { display: none; }
@media (min-width: 700px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(12, 1fr); gap: 56px 32px; }
  .project-card:nth-child(6n+1) { grid-column: span 7; }
  .project-card:nth-child(6n+2) { grid-column: span 5; padding-top: 80px; }
  .project-card:nth-child(6n+3) { grid-column: span 5; }
  .project-card:nth-child(6n+4) { grid-column: span 7; }
  .project-card:nth-child(6n+5) { grid-column: span 7; }
  .project-card:nth-child(6n+6) { grid-column: span 5; padding-top: 80px; }
  .project-card:nth-child(6n+1) .project-media, .project-card:nth-child(6n+4) .project-media { aspect-ratio: 16 / 10; }
  .project-card:nth-child(6n+2) .project-media, .project-card:nth-child(6n+6) .project-media { aspect-ratio: 4 / 5; }
}
.projects-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--concrete); border-radius: 6px; }

/* Visor de proyecto */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s 0.35s; }
.modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 16, 32, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-dialog {
  position: relative; width: min(1100px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--paper); color: var(--text); border-radius: 8px;
  display: grid; transform: translateY(12px); transition: transform 0.4s var(--ease);
}
.modal.is-open .modal-dialog { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy-800); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.modal-close svg { width: 18px; height: 18px; }
.modal-gallery { background: var(--navy-900); position: relative; }
.modal-gallery .main { aspect-ratio: 4 / 3; overflow: hidden; }
.modal-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.modal-thumbs button { flex: none; width: 76px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; border: 2px solid transparent; opacity: 0.6; transition: all 0.25s; }
.modal-thumbs button.is-active, .modal-thumbs button:hover { opacity: 1; border-color: var(--bronze-2); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; align-content: start; }
.modal-body .h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.modal-body p { color: var(--muted); }
.modal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.modal-facts div { display: grid; gap: 4px; }
.modal-facts .mono { color: var(--muted-2); }
.modal-facts strong { font-weight: 600; font-size: 0.95rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-tags li { font-size: 0.8rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.modal-demo { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); border: 1px dashed var(--bronze); padding: 8px 12px; border-radius: 3px; justify-self: start; }
@media (min-width: 900px) { .modal-dialog { grid-template-columns: 1.15fr 0.85fr; } .modal-gallery .main { aspect-ratio: auto; height: 100%; min-height: 480px; position: absolute; inset: 0 0 96px 0; } .modal-gallery { min-height: 560px; } .modal-thumbs { position: absolute; left: 0; right: 0; bottom: 0; } }

/* ---------- Proceso ---------- */
.process { color: var(--white); }
.process-track { display: grid; gap: 0; position: relative; counter-reset: step; }
.step { position: relative; display: grid; gap: 14px; padding: 28px 0 28px 64px; border-top: 1px solid var(--line-dark); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--bronze-2); }
.step .num { position: absolute; left: 0; top: 24px; font-family: var(--font-display); font-weight: 300; font-stretch: 100%; font-size: 2rem; letter-spacing: -0.04em; color: var(--bronze-2); line-height: 1; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-stretch: 105%; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.15; }
.step p { color: rgba(255, 255, 255, 0.68); font-size: 0.93rem; max-width: 30ch; }
@media (min-width: 700px) { .process-track { grid-template-columns: repeat(2, 1fr); gap: 0 40px; } }
@media (min-width: 1100px) {
  .process-track { grid-template-columns: repeat(6, 1fr); gap: 0 24px; }
  .step { padding: 36px 0 0; }
  .step .num { position: static; font-size: 3.2rem; margin-bottom: 10px; }
  .step:nth-child(even) { margin-top: 56px; }
}

/* ---------- Métricas ---------- */
.metrics-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metric { background: var(--paper); padding: 36px 28px; display: grid; gap: 8px; }
.metric strong { font-family: var(--font-display); font-weight: 600; font-stretch: 110%; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1; color: var(--navy-800); }
.metric span { color: var(--muted); font-size: 0.92rem; }
@media (min-width: 640px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Testimonios ---------- */
.testimonials-grid { display: grid; gap: 20px; }
.testimonial { position: relative; background: var(--white); border: 1px solid var(--line); padding: 32px 28px 28px; display: grid; gap: 22px; border-radius: 4px; }
.testimonial.is-placeholder { border-style: dashed; border-color: var(--concrete); background: transparent; }
.testimonial .quote-mark { width: 30px; height: 30px; color: var(--bronze); }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.testimonial.is-placeholder blockquote { color: var(--muted-2); font-style: italic; }
.testimonial footer { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 16px; }
.testimonial footer strong { font-weight: 600; font-size: 0.95rem; }
.testimonial footer span { color: var(--muted); font-size: 0.85rem; }
.testimonial .tag { position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
@media (min-width: 760px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Área de servicio ---------- */
.area .container { display: grid; gap: 40px; }
.area-copy { display: grid; gap: 22px; align-content: center; }
.area-primary { font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; }
.area-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.area-zones li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; font-weight: 500; background: var(--white); }
.area-zones svg { width: 14px; height: 14px; color: var(--bronze); }
.area-note { color: var(--muted); font-size: 0.9rem; }
.area-map { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: center; }
.area-map svg { width: 100%; height: 100%; }
.area-map .pulse { animation: pulse 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (min-width: 900px) { .area .container { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* ---------- Contacto ---------- */
.contact { color: var(--white); overflow: hidden; }
.contact .container { display: grid; gap: 48px; position: relative; }
.contact-copy { display: grid; gap: 26px; align-content: start; }
.contact-copy .h2 { max-width: 12ch; }
.contact-channels { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-channels a, .contact-channels div { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); transition: padding-left 0.3s var(--ease); }
.contact-channels a:hover { padding-left: 8px; }
.contact-channels svg { width: 22px; height: 22px; color: var(--bronze-2); flex: none; }
.contact-channels .label { display: grid; gap: 2px; }
.contact-channels .mono { color: rgba(255, 255, 255, 0.5); }
.contact-channels strong { font-weight: 500; font-size: 1rem; }
.contact-empty { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; padding: 16px 0; }
.contact-form { background: var(--white); color: var(--text); padding: clamp(24px, 4vw, 40px); border-radius: 6px; display: grid; gap: 18px; }
.contact-form .row { display: grid; gap: 18px; }
@media (min-width: 560px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field .error { font-size: 0.78rem; color: #b3261e; min-height: 0; }
.field .error:empty { display: none; }
.form-footer { display: grid; gap: 14px; }
.form-footer .btn { width: 100%; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { font-size: 0.9rem; padding: 12px 14px; border-radius: var(--radius); }
.form-status.ok { background: #e8f5ec; color: #1d5b32; }
.form-status.err { background: #fbeae9; color: #8f1d17; }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (min-width: 1000px) { .contact .container { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.footer { color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px; }
.footer .container { display: grid; gap: 40px; }
.footer-top { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 18px; max-width: 360px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { font-size: 0.9rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-2); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.92rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; transition: all 0.25s; }
.footer-social a:hover { border-color: var(--bronze-2); color: var(--bronze-2); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-dark); padding-top: 22px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom .mono { font-size: 0.62rem; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px;
  background: var(--whatsapp); color: #062b16; border-radius: 999px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  transform: translateY(20px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: #3ee07b; }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 14px; padding: 0; width: 58px; justify-content: center; } .wa-float span { display: none; } }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > :nth-child(1) { transition-delay: 0.05s; } .stagger.is-visible > :nth-child(2) { transition-delay: 0.12s; } .stagger.is-visible > :nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > :nth-child(4) { transition-delay: 0.26s; } .stagger.is-visible > :nth-child(5) { transition-delay: 0.33s; } .stagger.is-visible > :nth-child(6) { transition-delay: 0.4s; }
.stagger.is-visible > :nth-child(n+7) { transition-delay: 0.45s; }
.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.img-reveal.is-visible { clip-path: inset(0 0 0 0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .stagger > *, .img-reveal { opacity: 1; transform: none; clip-path: none; }
  .blueprint .draw { stroke-dashoffset: 0; } .blueprint .label { opacity: 1; }
  .wa-float { opacity: 1; transform: none; }
}
