/* ==========================================================================
   U.V. SERVICIOS C.A. — Design System
   Adaptado del design system "Industrial Precision Modernism" (DESIGN 1.md)
   a la identidad de marca U.V. Servicios: azul marino #333399 + rojo #D81F26.
   Estructura, tipografía, espaciado, elevación y componentes se conservan.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Color: superficies --- */
  --surface:                    #f8f8f8;
  --surface-dim:                #e2e2e6;
  --surface-bright:             #ffffff;
  --surface-container-lowest:   #f4f4f7;
  --surface-container-low:      #fafafb;
  --surface-container:          #f8f8f8;
  --surface-container-high:     #eeeef8;
  --surface-container-highest:  #dcdcf2;
  --surface-variant:            #d5d5e0;

  --on-surface:                 #131324;
  --on-surface-variant:         #5c5c70;
  --inverse-surface:            #1a1a40;
  --inverse-on-surface:         #ffffff;

  --outline:                    #8f8fa3;
  --outline-variant:            #d5d5e0;

  /* --- Color: primario (azul marino U.V.) --- */
  --primary:                    #333399;
  --primary-dim:                #26267a;
  --primary-deep:               #1a1a4d;
  --on-primary:                 #ffffff;
  --primary-container:          #e8e8f8;
  --on-primary-container:       #1a1a4d;

  /* --- Color: secundario (rojo U.V.) --- */
  --secondary:                  #d81f26;
  --secondary-dim:              #b0161c;
  --on-secondary:               #ffffff;
  --secondary-container:        #fdeaea;
  --on-secondary-container:     #7d0f14;
  /* Rojo puro del logotipo: uso exclusivamente gráfico, nunca como texto */
  --brand-red-pure:             #ff0000;

  /* --- Color: aliado Baker Hughes (solo insignia de alianza) --- */
  --partner:                    #02a783;
  --partner-text:               #007d62;
  --partner-container:          #eefaf8;

  /* --- Color: estado --- */
  --error:                      #bf3000;
  --on-error:                   #ffffff;
  --error-container:            #ffe6e0;
  --success:                    #0f7a4a;
  --success-container:          #e6f6ee;

  --background:                 #f8f8f8;
  --on-background:              #131324;

  /* --- Tipografía --- */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-display:      clamp(2.25rem, 1.30rem + 4.2vw, 3.75rem);  /* 36 → 60px */
  --lh-display:      1.10;
  --ls-display:      -0.04em;

  --fs-headline-lg:  clamp(1.75rem, 1.28rem + 2.1vw, 2.625rem); /* 28 → 42px */
  --lh-headline-lg:  1.18;
  --ls-headline-lg:  -0.02em;

  --fs-headline-md:  clamp(1.375rem, 1.20rem + 0.78vw, 1.75rem); /* 22 → 28px */
  --lh-headline-md:  1.28;
  --ls-headline-md:  -0.01em;

  --fs-title-lg:     1.25rem;   /* 20px */
  --lh-title-lg:     1.40;

  --fs-body-lg:      1.125rem;  /* 18px */
  --lh-body-lg:      1.56;

  --fs-body-md:      1rem;      /* 16px */
  --lh-body-md:      1.50;

  --fs-label-md:     0.875rem;  /* 14px */
  --lh-label-md:     1.43;
  --ls-label-md:     0.01em;

  --fs-label-sm:     0.75rem;   /* 12px */
  --lh-label-sm:     1.33;
  --ls-label-sm:     0.02em;

  /* --- Radios: "Measured Geometry" --- */
  --r-sm:   2px;
  --r:      3px;
  --r-md:   4px;
  --r-lg:   10px;
  --r-xl:   25px;
  --r-full: 9999px;

  /* --- Espaciado (unidad 8px) --- */
  --sp-xs:  4px;
  --sp-sm:  12px;
  --sp-md:  24px;
  --sp-lg:  40px;
  --sp-xl:  64px;
  --sp-2xl: 96px;
  --gutter: 24px;
  --container-max: 1280px;

  /* --- Elevación --- */
  --el-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --el-md: 0 3px 8px rgba(0, 0, 0, .15);
  --el-lg: 0 8px 24px rgba(0, 0, 0, .12);

  /* --- Movimiento --- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur:  200ms;
  --dur-fast: 150ms;

  --header-h: 92px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden debe ganarle a cualquier display de componente */
[hidden] { display: none !important; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--primary); text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. IDIOMA (ES por defecto; .lang-en activa inglés)
   -------------------------------------------------------------------------- */
html:not(.lang-en) [data-lang="en"] { display: none !important; }
html.lang-en       [data-lang="es"] { display: none !important; }

/* --------------------------------------------------------------------------
   4. TIPOGRAFÍA
   -------------------------------------------------------------------------- */
.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 700;
}
.t-headline-lg {
  font-size: var(--fs-headline-lg);
  line-height: var(--lh-headline-lg);
  letter-spacing: var(--ls-headline-lg);
  font-weight: 600;
}
.t-headline-md {
  font-size: var(--fs-headline-md);
  line-height: var(--lh-headline-md);
  letter-spacing: var(--ls-headline-md);
  font-weight: 600;
}
.t-title-lg { font-size: var(--fs-title-lg); line-height: var(--lh-title-lg); font-weight: 600; }
.t-body-lg  { font-size: var(--fs-body-lg);  line-height: var(--lh-body-lg);  font-weight: 400; }
.t-label-md { font-size: var(--fs-label-md); line-height: var(--lh-label-md); letter-spacing: var(--ls-label-md); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label-sm);
  line-height: var(--lh-label-sm);
  letter-spacing: .12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-sm);
}
.eyebrow--on-dark { color: #b9b9ec; }

.muted { color: var(--on-surface-variant); }
.lead  { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--on-surface-variant); }

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 767px) { .container { padding-inline: 16px; } }
@media (max-width: 420px) { .container { padding-inline: 12px; } }

.section { padding-block: var(--sp-2xl); }
.section--tight { padding-block: var(--sp-xl); }
.section--alt { background: var(--surface-bright); }
.section--tinted { background: var(--primary-container); }
.section--dark {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}
.section--dark .lead, .section--dark .muted { color: #c8c8e4; }

@media (max-width: 767px) {
  .section { padding-block: var(--sp-xl); }
  .section--tight { padding-block: var(--sp-lg); }
}

.section-head { max-width: 760px; margin-bottom: var(--sp-lg); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-sm); }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: var(--sp-sm); }
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-lg);
  align-items: center;
}
@media (max-width: 895px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-md); } }

/* Franja diagonal, guiño al lenguaje gráfico del dossier */
.diag-rule {
  height: 6px;
  background: linear-gradient(100deg,
    var(--primary) 0 46%, var(--secondary) 46% 62%, var(--primary) 62% 100%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0;
  font-size: var(--fs-label-md);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--r-xl);
  font-size: var(--fs-label-md);
  line-height: 1.2;
  letter-spacing: var(--ls-label-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-dim); }

.btn--secondary {
  background: var(--surface-bright);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn--secondary:hover { background: var(--surface-container-high); }

.btn--accent { background: var(--secondary); color: var(--on-secondary); }
.btn--accent:hover { background: var(--secondary-dim); }

.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .7);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--wa { background: #0e7a6d; color: #fff; }
.btn--wa:hover { background: #0a5f55; }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

/* --------------------------------------------------------------------------
   7. INSIGNIAS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: var(--fs-label-sm);
  line-height: var(--lh-label-sm);
  letter-spacing: var(--ls-label-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  padding: 5px 13px;
}
.badge--partner { background: var(--partner-container); color: var(--partner-text); }
.badge--accent  { background: var(--secondary-container); color: var(--on-secondary-container); }
.badge--on-dark { background: rgba(255, 255, 255, .16); color: #fff; }

.badge-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   8. TARJETAS
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface-bright);
  border-radius: var(--r);
  box-shadow: var(--el-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--el-lg); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-dim);
  overflow: hidden;
  border-bottom: 3px solid var(--primary);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: var(--sp-md); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: var(--fs-title-lg); line-height: var(--lh-title-lg); font-weight: 600; }
.card__text  { color: var(--on-surface-variant); font-size: var(--fs-body-md); }
.card__foot  { margin-top: auto; padding-top: 6px; }

/* Tarjeta compacta sin imagen */
.tile {
  background: var(--surface-bright);
  border-radius: var(--r);
  box-shadow: var(--el-sm);
  border-left: 3px solid var(--primary);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tile:hover { box-shadow: var(--el-md); background: var(--surface-container-high); }
.tile--accent { border-left-color: var(--secondary); }

.stat { text-align: center; padding: var(--sp-md) var(--sp-sm); }
.stat__num {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--primary);
}
.section--dark .stat__num { color: #9d9de8; }
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-label-md);
  letter-spacing: var(--ls-label-md);
  font-weight: 600;
  color: var(--on-surface-variant);
}
.section--dark .stat__label { color: #c8c8e4; }

/* --------------------------------------------------------------------------
   9. LISTAS DE COMPROBACIÓN
   -------------------------------------------------------------------------- */
.check-list { display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--on-surface-variant);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.section--dark .check-list li { color: #c8c8e4; }
.section--dark .check-list li::before { border-color: #9d9de8; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  background: var(--surface-bright);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  padding: 7px 15px;
  font-size: var(--fs-label-md);
  font-weight: 500;
  color: var(--on-surface);
}

/* --------------------------------------------------------------------------
   10. CABECERA / NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: var(--el-sm);
  border-bottom: 1px solid var(--outline-variant);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 66px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav .nav-cta { display: none; }   /* solo visible en el menú móvil */
.site-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: var(--r-md);
  font-size: var(--fs-label-md);
  letter-spacing: var(--ls-label-md);
  font-weight: 600;
  color: var(--on-surface);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.site-nav a:hover { background: var(--surface-container-high); color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--secondary);
  border-radius: var(--r-full);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--surface-bright);
}
.lang-switch button {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border: none;
  background: transparent;
  font-size: var(--fs-label-sm);
  letter-spacing: var(--ls-label-sm);
  font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch button:hover { background: var(--surface-container-high); }
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  background: var(--surface-bright);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--on-surface);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--on-surface);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 1023px) {
  :root { --header-h: 76px; }
  .brand img { height: 54px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--surface-bright);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--el-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .site-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--outline-variant); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .nav-cta { display: block; margin-top: 16px; }
  .site-nav .nav-cta a { border: none; }
  .header-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   11. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
    rgba(20, 20, 60, .95) 0%,
    rgba(26, 26, 77, .88) 42%,
    rgba(51, 51, 153, .58) 78%,
    rgba(51, 51, 153, .38) 100%);
}
.hero__inner { padding-block: clamp(var(--sp-xl), 9vw, 132px); max-width: 760px; }
.hero h1 { margin-bottom: var(--sp-md); }
.hero p { color: #d7d7f0; margin-bottom: var(--sp-md); }
.hero .btn-row { margin-top: var(--sp-md); }
.hero__meta {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md) var(--sp-lg);
}
.hero__meta div { min-width: 120px; }
.hero__meta strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero__meta span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-label-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #b9b9ec;
}

/* Hero compacto para páginas internas */
.page-hero { padding-block: var(--sp-xl); }
.page-hero__inner { max-width: 780px; }
.page-hero h1 { margin-bottom: var(--sp-sm); }

.breadcrumb { margin-bottom: var(--sp-sm); font-size: var(--fs-label-sm); letter-spacing: var(--ls-label-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: #c8c8e4; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: #fff; font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.5); }

/* --------------------------------------------------------------------------
   12. LOGOS DE ALIADOS
   -------------------------------------------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-sm);
}
.logo-grid li {
  background: var(--surface-bright);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r);
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: var(--sp-sm) var(--sp-md);
}
.logo-grid li.is-dark { background: var(--inverse-surface); border-color: var(--inverse-surface); }
.logo-grid img { max-height: 42px; width: auto; object-fit: contain; }

/* --------------------------------------------------------------------------
   13. GALERÍA / FIGURAS
   -------------------------------------------------------------------------- */
.figure { border-radius: var(--r); overflow: hidden; box-shadow: var(--el-md); background: var(--surface-dim); }
.figure img { width: 100%; }
/* La proporción va en la imagen, no en el <figure>: así el figcaption
   sigue visible debajo en lugar de quedar recortado por overflow:hidden. */
.figure--tall img { aspect-ratio: 3 / 4;  width: 100%; object-fit: cover; }
.figure--wide img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.figure figcaption {
  padding: 10px var(--sp-sm);
  background: var(--surface-bright);
  font-size: var(--fs-label-md);
  font-weight: 600;
  color: var(--on-surface);
}

/* --------------------------------------------------------------------------
   14. TABLA DE CLIENTES
   -------------------------------------------------------------------------- */
.client-cols {
  columns: 3 210px;
  column-gap: var(--sp-lg);
}
.client-cols li {
  break-inside: avoid;
  padding: 9px 0 9px 20px;
  position: relative;
  border-bottom: 1px solid var(--outline-variant);
  font-size: var(--fs-body-md);
}
.client-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 2px;
  background: var(--secondary);
}

/* --------------------------------------------------------------------------
   15. FORMULARIO
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface-bright);
  border-radius: var(--r);
  box-shadow: var(--el-md);
  padding: var(--sp-md);
}
@media (min-width: 640px) { .form-card { padding: var(--sp-lg); } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-sm); }
.field label {
  font-size: var(--fs-label-md);
  letter-spacing: var(--ls-label-md);
  font-weight: 600;
}
.field .req { color: var(--secondary); }
.field .hint { font-size: var(--fs-label-sm); color: var(--on-surface-variant); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--surface-bright);
  color: var(--on-surface);
  border: 1px solid var(--outline);
  border-radius: var(--r);
  font-size: var(--fs-body-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.textarea { min-height: 132px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--on-surface-variant) 50%), linear-gradient(-45deg, transparent 49%, var(--on-surface-variant) 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 51, 153, .16);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(191, 48, 0, .12);
}

.field-error {
  font-size: var(--fs-label-sm);
  font-weight: 600;
  color: var(--error);
  min-height: 0;
}

.form-note { margin-top: var(--sp-sm); font-size: var(--fs-label-sm); color: var(--on-surface-variant); }

.form-status {
  margin-bottom: var(--sp-sm);
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: var(--fs-label-md);
  font-weight: 600;
  display: none;
}
.form-status[data-state="ok"]  { display: block; background: var(--success-container); color: #0b5c38; border-left: 3px solid var(--success); }
.form-status[data-state="err"] { display: block; background: var(--error-container);   color: #8c2400; border-left: 3px solid var(--error); }

/* --------------------------------------------------------------------------
   16. BLOQUES DE CONTACTO
   -------------------------------------------------------------------------- */
.contact-card {
  background: var(--surface-bright);
  border-radius: var(--r);
  box-shadow: var(--el-md);
  border-top: 3px solid var(--primary);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card--east { border-top-color: var(--secondary); }
.contact-card dl { display: grid; gap: 10px; margin: 0; }
.contact-card dt {
  font-size: var(--fs-label-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-surface-variant);
}
.contact-card dd { margin: 2px 0 0; }
.contact-card a { font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.tel-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* --------------------------------------------------------------------------
   17. CTA FINAL
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r);
  padding: var(--sp-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  box-shadow: var(--el-md);
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: #dcdcf5; max-width: 52ch; }

/* --------------------------------------------------------------------------
   18. PIE
   -------------------------------------------------------------------------- */
.site-footer { background: var(--inverse-surface); color: #dcdcf0; }
.site-footer a { color: #dcdcf0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-lg);
  padding-block: var(--sp-xl) var(--sp-lg);
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-md); } }
@media (max-width: 559px)  { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-brand img { height: 96px; width: auto; background: #fff; padding: 10px 14px; border-radius: var(--r); }
.footer-title {
  font-size: var(--fs-label-md);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--sp-sm);
}
.footer-list { display: grid; gap: 9px; font-size: var(--fs-label-md); }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-block: var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-md);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-label-sm);
  color: #b3b3d0;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-full);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social-row a:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* --------------------------------------------------------------------------
   19. WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.wa-dock { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-panel {
  background: var(--surface-bright);
  border-radius: var(--r-lg);
  box-shadow: var(--el-lg);
  padding: var(--sp-sm);
  width: min(288px, calc(100vw - 44px));
  display: none;
}
.wa-panel[data-open="true"] { display: block; }
.wa-panel p { font-size: var(--fs-label-sm); color: var(--on-surface-variant); margin-bottom: 10px; }
.wa-panel .btn { width: 100%; margin-bottom: 8px; }
.wa-panel .btn:last-child { margin-bottom: 0; }

.wa-fab {
  width: 58px;
  height: 58px;
  border-radius: var(--r-full);
  border: none;
  background: #0e7a6d;
  color: #fff;
  box-shadow: var(--el-lg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-fab:hover { background: #0a5f55; transform: translateY(-2px); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }

/* --------------------------------------------------------------------------
   20. UTILIDADES
   -------------------------------------------------------------------------- */
.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;
}
.stack-sm > * + * { margin-top: var(--sp-sm); }
.stack-md > * + * { margin-top: var(--sp-md); }
.text-center { text-align: center; }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

@media print {
  .site-header, .wa-dock, .site-nav, .lang-switch { display: none !important; }
  body { background: #fff; }
}

/* --------------------------------------------------------------------------
   21. VIDEO DEL HERO (fachada: portada + clic para reproducir)
   No se descarga el video hasta que el visitante pulsa play.
   -------------------------------------------------------------------------- */
.hero-video {
  margin-top: var(--sp-lg);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--el-lg);
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}
.hero-video img,
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block;
  color: #fff;
}
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 40, .55) 0%, rgba(10, 10, 40, .10) 45%, rgba(10, 10, 40, .25) 100%);
  transition: background var(--dur) var(--ease);
}
.video-facade:hover::after { background: rgba(10, 10, 40, .30); }

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: var(--r-full);
  background: var(--secondary);
  box-shadow: var(--el-lg);
  display: grid;
  place-items: center;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.video-facade:hover .video-facade__play { background: var(--secondary-dim); transform: translate(-50%, -50%) scale(1.06); }
.video-facade:focus-visible .video-facade__play { background: var(--secondary-dim); }
.video-facade__play svg { width: 32px; height: 32px; fill: #fff; margin-left: 5px; }

.video-facade__label {
  position: absolute;
  left: var(--sp-md);
  right: var(--sp-md);
  bottom: var(--sp-md);
  z-index: 2;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.video-facade__label strong {
  font-size: var(--fs-title-lg);
  line-height: 1.3;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.video-facade__meta {
  font-size: var(--fs-label-sm);
  letter-spacing: var(--ls-label-sm);
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .45);
  border-radius: var(--r-full);
  padding: 4px 12px;
}

@media (max-width: 639px) {
  .hero-video { margin-top: var(--sp-md); }
  .video-facade__play { width: 62px; height: 62px; }
  .video-facade__play svg { width: 24px; height: 24px; }
  .video-facade__label { left: var(--sp-sm); right: var(--sp-sm); bottom: var(--sp-sm); }
  .video-facade__label strong { font-size: var(--fs-body-md); }
}

/* --------------------------------------------------------------------------
   22. FRANJA DE CIFRAS + CTA (bajo el hero)
   -------------------------------------------------------------------------- */
.hero-strip { background: var(--surface-bright); border-bottom: 1px solid var(--outline-variant); }
.hero-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md) var(--sp-lg);
  padding-block: var(--sp-md);
}
.hero-strip__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md) var(--sp-lg);
}
.hero-strip__stats div { min-width: 96px; }
.hero-strip__stats strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--primary);
}
.hero-strip__stats span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-label-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-surface-variant);
}
@media (max-width: 639px) {
  .hero-strip__inner { gap: var(--sp-sm) var(--sp-md); }
  .hero-strip__stats { gap: var(--sp-sm) var(--sp-md); width: 100%; }
  .hero-strip__stats div { min-width: 0; flex: 1 1 40%; }
  .hero-strip .btn-row { width: 100%; }
  .hero-strip .btn { flex: 1 1 auto; }
}

/* --- Ajustes finos para pantallas pequeñas --- */
@media (max-width: 639px) {
  /* El salto de línea manual del titular deja palabras sueltas en móvil */
  .hero h1 br { display: none; }
  /* La etiqueta larga choca con el botón flotante de WhatsApp: basta el chip */
  .video-facade__label strong { display: none; }
  .video-facade__label { bottom: 10px; }
}

/* --------------------------------------------------------------------------
   23. ENLACES EXTERNOS (Baker Hughes)
   -------------------------------------------------------------------------- */
.ico-ext {
  width: 11px;
  height: 11px;
  fill: currentColor;
  opacity: .8;
  display: inline-block;
  vertical-align: -1px;
  margin-left: 5px;
  flex: none;
}

/* Insignia que además es enlace */
.badge--link {
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.badge--partner.badge--link:hover,
.badge--partner.badge--link:focus-visible {
  background: var(--partner-text);
  color: #fff;
}

/* Enlace externo dentro de un párrafo o lista */
.link-ext {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.link-ext:hover { border-bottom-color: var(--primary); }
.section--dark .link-ext { color: #b9b9ec; }
.section--dark .link-ext:hover { border-bottom-color: #b9b9ec; }

/* El logo de Baker Hughes en la rejilla de aliados es pulsable */
.logo-grid a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: var(--r-sm);
  transition: opacity var(--dur) var(--ease);
}
.logo-grid a:hover { opacity: .72; }

/* La regla genérica de enlaces del pie pisaba el color propio de las insignias,
   dejándolas casi ilegibles. Las insignias conservan su propia paleta. */
.site-footer .badge--partner { color: var(--partner-text); }
.site-footer .badge--partner:hover,
.site-footer .badge--partner:focus-visible { color: #fff; }
.site-footer .badge { text-decoration: none; }
.site-footer .badge:hover { text-decoration: none; }
