@font-face {
  font-family: Inter;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --text-primary: #20242b;
  --text-muted: #4e5966;
  --surface-light: #fff;
  --action: #3469b2;
  --action-hover: #28558f;
  --radius-control: 10px;
  --radius-card: 16px;
}
.section { scroll-margin-top: 7rem; }

/* Nosotros: fotografía de fondo y contenido legible en un panel único. */
.about.section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 670px;
  padding-block: clamp(4.5rem, 7vw, 7rem);
  overflow: hidden;
  background: #1b1c21;
  color: #fff;
}
.about-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.about.section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 24, .58), rgba(13, 17, 24, .1) 67%, rgba(13, 17, 24, .16));
}
.about-container { position: relative; z-index: 1; }
.about-panel {
  width: min(780px, 72%);
  padding: clamp(1.65rem, 3vw, 2.7rem);
  background: rgba(17, 19, 24, .70);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .28);
}
.about-panel .eyebrow { color: #91baff; margin-bottom: .95rem; }
.about-panel h2 { margin: 0 0 1.2rem; max-width: 18ch; font-size: clamp(2.15rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.045em; }
.about-panel > p:not(.eyebrow) { color: #f1f3f7; max-width: 65ch; margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.about-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.4rem; }
.about-value { min-width: 0; padding: 1.15rem 1.25rem; background: rgba(234, 240, 248, .64); border-radius: 13px; color: #1d2633; }
.about-value svg { display: block; width: 29px; height: 29px; color: #356bb0; margin-bottom: .75rem; }
.about-value h3 { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.3; }
.about-value p { margin: 0; color: #253247; font-size: .9rem; line-height: 1.5; }

/* Una escala coherente para portada, secciones y controles. */
.hero h1 { font-size: clamp(3.5rem, 4.45vw, 4rem); line-height: 1.06; letter-spacing: -.055em; max-width: 14ch; }
.hero-lead { font-size: 1.1rem; line-height: 1.55; }
.section-intro h2, .about h2, .contact h2 { font-size: clamp(2.25rem, 3.2vw, 2.75rem); line-height: 1.14; letter-spacing: -.045em; }
.services .section-intro h2 { font-size: clamp(2.25rem, 3.2vw, 2.75rem); }
.section-intro > p:last-child, .contact-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.55; }
.steps p { font-size: 1rem; line-height: 1.5; }
.eyebrow { font-size: .75rem; letter-spacing: .11em; }
.button, .nav-action, .form-bottom .button { font-size: .9375rem; border-radius: var(--radius-control); }

/* Navegación compacta: el logotipo ya sirve como enlace al inicio. */
.nav { min-height: 68px; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.nav[data-surface="light"] { box-shadow: 0 9px 24px rgba(30,45,65,.1); }
.nav-links { font-size: .9rem; }
.nav-links a:not(.nav-action) { min-height: 44px; display: inline-flex; align-items: center; }
.nav-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Barra de navegador recreada en ambas vistas de la portada. */
.ui-top.browser-top { height: 30px; display: flex; align-items: center; gap: 4%; padding: 3px 4%; background: #eff2f7; color: #8c9db5; }
.browser-top .browser-arrows { display: flex; align-items: center; gap: 10px; flex: 0 0 12%; height: auto; background: transparent; }
.browser-arrows i { display: block; width: 11px; height: 11px; border-top: 2px solid #879ab4; border-left: 2px solid #879ab4; transform: rotate(-45deg); }
.browser-arrows i:last-child { transform: rotate(135deg); }
.browser-top .browser-address { display: flex; align-items: center; justify-content: center; gap: 11%; width: 76%; height: 23px; border-radius: 7px; background: #fff; color: #6c819e; font: 500 clamp(8px, .95vw, 13px)/1 Inter, sans-serif; }
.browser-address svg { width: 11px; height: 14px; flex: none; color: #92a4bb; }
.browser-top .browser-address span { width: auto; height: auto; background: transparent; border-radius: 0; }
.ui-window.small .browser-top { gap: 3%; padding-inline: 3%; }
.ui-window.small .browser-arrows { gap: 5px; }
.ui-window.small .browser-arrows i { width: 7px; height: 7px; border-width: 1.5px; }
.ui-window.small .browser-address { height: 21px; gap: 6%; font-size: clamp(6px, .75vw, 9px); }
.ui-window.small .browser-address svg { width: 8px; height: 10px; }
.hero.hero-paused .ui-window, .hero.hero-paused .dashboard-panel *, .hero.hero-paused .web-scene * { animation-play-state: paused !important; }

/* Proceso concreto en cuatro etapas. */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.steps li { padding-top: 1.15rem; }
.steps h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin: 0 0 .6rem; }

/* Contacto integrado sobre un fondo oscuro. */
.contact.section { background: #181a1e; color: #f5f6f8; padding-block: clamp(4.5rem, 7vw, 7rem); }
.contact .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.contact .contact-copy { position: relative; align-self: stretch; padding-top: 0; }
.contact .contact-copy::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(42%, 190px); aspect-ratio: 590 / 546; background: url("assets/alpetec-isotipo-fondo.png") left bottom / contain no-repeat; opacity: .13; pointer-events: none; }
.contact .contact-copy .eyebrow { margin: 0 0 1rem; color: #91baff; }
.contact .contact-copy h2 { max-width: 13ch; margin: 0 0 1.5rem; color: #f5f6f8; font-size: clamp(2.25rem, 3.2vw, 2.75rem); line-height: 1.14; }
.contact .contact-copy > p:not(.eyebrow) { max-width: 45ch; color: #b5bac3; line-height: 1.65; }
.contact .contact-form { padding: clamp(1.5rem, 3vw, 2.25rem); background: #23262d; color: #f5f6f8; border: 1px solid #3d444f; border-radius: 14px; box-shadow: none; }
.contact .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: 1.25rem; }
.contact .field { gap: .5rem; min-width: 0; }
.contact .field label { color: #f5f6f8; font-size: .875rem; font-weight: 600; line-height: 1.45; }
.contact .field-required, .contact .field-optional { color: #b5bac3; font-size: .78rem; font-weight: 400; white-space: nowrap; }
.contact .field input, .contact .field textarea { min-height: 50px; padding: .75rem .875rem; border: 1px solid #6b7079; border-radius: 5px; background: #202227; color: #f5f6f8; font: inherit; }
.contact .field textarea { min-height: 150px; resize: vertical; }
.contact .field input:focus-visible, .contact .field textarea:focus-visible { outline: 3px solid #91baff; outline-offset: 2px; border-color: #91baff; }
.contact .field input[aria-invalid="true"], .contact .field textarea[aria-invalid="true"] { border-color: #ffb0aa; }
.contact .field-error { display: block; color: #ffb0aa; font-size: .8125rem; line-height: 1.4; }
.contact .field-error:empty { display: none; }
.contact .form-privacy { margin: 1.25rem 0 1rem; color: #b5bac3; font-size: .8125rem; line-height: 1.5; }
.form-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact .form-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.contact .form-bottom .button { min-height: 48px; width: auto; padding-inline: 1.5rem; background: var(--brand-blue); color: #fff; font-weight: 600; }
.contact .form-bottom .button:hover { background: var(--brand-blue-hover); }
.contact .form-bottom .button:disabled { opacity: .7; cursor: wait; }
.contact .form-status { min-height: 0; color: #ffb0aa; font-weight: 500; line-height: 1.45; }
.contact .form-status:empty { display: none; }
.contact .form-status[data-state="success"] { color: #b9e9cc; }
.contact .form-status[data-state="sending"] { color: #b5bac3; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.service-main:focus-visible { outline: 3px solid #f4b858; outline-offset: 3px; }

@media (max-width: 850px) {
  .about.section { min-height: 640px; }
  .about-panel { width: min(690px, 88%); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a:not(.nav-action) { display: block; min-height: 44px; }
  .contact .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact .contact-copy h2 { max-width: none; }
  .contact .contact-copy::after { display: none; }
}
@media (max-width: 600px) {
  .about.section { min-height: 0; padding-block: 4rem; }
  .about-background { object-position: 46% center; }
  .about.section::before { background: rgba(12, 17, 24, .32); }
  .about-panel { width: 100%; padding: 1.45rem; border-radius: 16px; background: rgba(17, 19, 24, .70); }
  .about-panel h2 { font-size: clamp(1.8rem, 8vw, 2.15rem); }
  .about-values { grid-template-columns: 1fr; }
  .section { scroll-margin-top: 5.75rem; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 2.625rem); max-width: 13ch; }
  .section-intro h2, .about h2, .contact h2, .services .section-intro h2 { font-size: clamp(1.75rem, 7.5vw, 2rem); }
  .nav-links { font-size: 1rem; }
  .service-swipe-hint { display: block; margin: .25rem 0 0; color: #586a7b; font-size: .8rem; }
  .ui-top.browser-top { height: 24px; padding-block: 2px; }
  .browser-top .browser-address { height: 19px; font-size: 7px; }
  .browser-arrows i { width: 7px; height: 7px; }
  .browser-top .browser-arrows { gap: 5px; }
  .ui-window.small .browser-address { height: 18px; font-size: 6px; }
  .ui-web.web-scene, .ui-dashboard.dashboard-panel { height: calc(100% - 24px); }
  .steps { grid-template-columns: 1fr; }
  .contact.section { padding-top: 5.5rem; }
  .contact .form-grid { grid-template-columns: 1fr; }
  .contact .field.full { grid-column: auto; }
}
@media (min-width: 601px) {
  .service-swipe-hint { display: none; }
}
