/* ═══════════════════════════════════════════════════════════
   TIPOGRAFÍA BIARTY SANS EXTENDED / ARCHIVO VARIABLE LOCAL
   Neo-grotesca contemporánea con proporciones expandidas (width: 125%)
   Alineada con el diseño Refit y las capturas oficiales
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Biarty Sans Extended';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('../fonts/archivo-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Biarty Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('../fonts/archivo-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('../fonts/archivo-variable.woff2') format('woff2');
}

/* ═══════════════════════════════════════════════════════════
   PONCEMUR S.L. · Sistema de Diseño Refit + Motor de Scroll Cinemático
   Especialistas en Edificación y Adecuación de Entidades Financieras
   Paleta: Grafito `#101116` / Superficie clara `#f8f9fa` / Acento Marino `#1d4ed8`
   Tipografía: Biarty Sans Extended (Superficie tipográfica expandida)
   Vídeo Hero: A color 100% real sin filtros oscuros ni cajas artificiales
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Escala de Color Arquitectónica Refit */
  --bg-dark: #101116;
  --bg-dark-card: #171821;
  --bg-dark-border: rgba(255, 255, 255, 0.12);
  
  --bg-light: #f8f9fa;
  --bg-light-surface: #ffffff;
  --bg-light-muted: #f1f3f6;
  --borde-light: #e5e7eb;
  --borde-light-hover: #d1d5db;
  
  --texto-oscuro-titular: #111827;
  --texto-oscuro-cuerpo: #4b5563;
  --texto-oscuro-atenuado: #6b7280;
  
  --texto-claro-titular: #ffffff;
  --texto-claro-cuerpo: #9ca3af;
  --texto-claro-atenuado: #6b7280;
  
  --acento-marino: #1e3a8a;
  --acento-marino-activo: #1d4ed8;
  --blanco: #ffffff;
  --negro: #000000;

  /* Identidad Corporativa Oficial Poncemur (Fuente: poncemur.com) */
  --poncemur-azul: #001944;
  --poncemur-azul-profundo: #000f2b;
  --poncemur-celeste: #00ACEF;
  --poncemur-celeste-hover: #33bdf2;
  
  --sans: "Biarty Sans Extended", "Biarty Sans", "Archivo", Arial, "Helvetica Neue", sans-serif;
  --font-extended: "Biarty Sans Extended", "Biarty Sans", "Archivo", Arial, "Helvetica Neue", sans-serif;
  --radio-sm: 4px;
  --radio-md: 8px;
  --radio-lg: 16px;
  --radio-3xl: 24px;
  --radio-pill: 999px;
  --transicion: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-reveal: 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 90px;
  background: var(--bg-light);
  color: var(--texto-oscuro-cuerpo);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg-light);
  color: var(--texto-oscuro-cuerpo);
}

::selection {
  background: var(--acento-marino-activo);
  color: var(--blanco);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.wrap {
  width: min(1280px, 92%);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(1040px, 92%);
  margin-inline: auto;
}

/* ═══ ANIMACIONES REVEAL AL ENTRAR EN CADA SECCIÓN (Estilo landing-c) ═══ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--tr-reveal), transform var(--tr-reveal);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ═══ Tipografía Refit (Biarty Sans Extended / Archivo Variable) ═══ */
h1, h2, h3, h4 {
  font-family: var(--font-extended);
  font-weight: 700;
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--texto-oscuro-titular);
}

.h2-seccion {
  font-family: var(--font-extended);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

/* ═══ Insignias en Píldora (Badges Refit) ═══ */
.refit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radio-pill);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  width: fit-content;
}

.refit-badge-dark {
  background: rgba(16, 17, 22, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.refit-badge-dark .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.refit-badge-light {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
}

.refit-badge-tag {
  background: var(--bg-light-muted);
  color: var(--texto-oscuro-titular);
  border: 1px solid var(--borde-light);
  font-size: 11.5px;
  font-weight: 600;
}

/* ═══ Botones Refit ═══ */
.btn-refit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 24px;
  border-radius: var(--radio-pill);
  transition: all var(--transicion);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-refit-primary {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.btn-refit-primary:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #000000;
}

.btn-refit-dark {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.btn-refit-dark:hover {
  background: #1f2937;
  border-color: #1f2937;
}

.btn-refit-outline-light {
  background: rgba(16, 17, 22, 0.45);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-refit-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  font-size: 12px;
  transition: transform var(--transicion);
}

.btn-refit-primary .btn-icon-circle {
  background: #111827;
  color: #ffffff;
}

.btn-refit:hover .btn-icon-circle {
  transform: translate(2px, -2px);
}

/* ═══ Navegación Superior Flotante Refit ═══ */
.refit-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--transicion);
}

.refit-header.scrolled {
  padding: 12px 0;
  background: rgba(16, 17, 22, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.refit-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.refit-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.refit-logo-main {
  font-family: var(--font-extended);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.refit-logo-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #d1d5db;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.refit-nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 17, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radio-pill);
  padding: 5px 8px;
  backdrop-filter: blur(12px);
}

.refit-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #f3f4f6;
  padding: 7px 14px;
  border-radius: var(--radio-pill);
  transition: all var(--transicion);
}

.refit-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.refit-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.refit-tel-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radio-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(16, 17, 22, 0.45);
  backdrop-filter: blur(8px);
  transition: all var(--transicion);
}

.refit-tel-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.menu-burger {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
}

.menu-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  margin: 6px 0;
  transition: 0.2s;
}

/* ═══════════════════════════════════════════════════════════
   HERO SCROLL-WORLD (VÍDEO A COLOR 100% REAL Y TEXTO LIMPIO)
   Sin oscurecimiento, sin cajas artificiales, PONCEMUR protagonista
   ═══════════════════════════════════════════════════════════ */
.hero-scroll-world {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 5;
}

.pin-spacer {
  z-index: 5 !important;
}

main > section {
  position: relative;
}

.hero-sticky-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-video-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: #000000;
}

.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  will-change: transform;
}

/* Sin overlays oscuros artificiales: el vídeo se aprecia a color 100% real */

/* Texto ultra-limpio sin cajas cuadradas ni difuminados */
.hero-clean-text {
  position: relative;
  z-index: 3;
  margin: 0 auto clamp(36px, 8vh, 80px);
  width: min(840px, calc(100% - 32px));
  margin-left: max(4%, calc((100% - 1280px) / 2));
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.hero-clean-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(16, 17, 22, 0.45);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radio-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.hero-clean-title {
  font-family: var(--font-extended);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(52px, 8.5vw, 100px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 16px;
}

.hero-clean-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  color: #f3f4f6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  max-width: 600px;
  margin-bottom: 24px;
}

.hero-clean-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cue {
  position: absolute;
  bottom: 30px;
  right: max(4%, calc((100% - 1280px) / 2));
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.hero-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  animation: rueda-cue 1.8s ease-in-out infinite;
}

@keyframes rueda-cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN SOBRE NOSOTROS (About Us Refit + Carrusel Rotativo)
   ═══════════════════════════════════════════════════════════ */
.about-refit-section {
  background: var(--bg-light);
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--borde-light);
  overflow: hidden;
}

.about-refit-header {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.about-refit-title-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-refit-title-col h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--texto-oscuro-titular);
}

.about-refit-text-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 36px;
}

.about-refit-text-col p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--texto-oscuro-cuerpo);
}

/* ═══ CARRUSEL ROTATIVO CONTINUO (Captura Adjunta) ═══ */
.carousel-outer {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 70px;
  overflow: hidden;
  padding: 16px 0;
}

.carousel-outer.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--tr-reveal), transform var(--tr-reveal);
}

.carousel-outer.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carrusel-infinito 36s linear infinite;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes carrusel-infinito {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.carousel-card {
  position: relative;
  border-radius: var(--radio-sm);
  overflow: hidden;
  background: var(--bg-light-muted);
  border: 1px solid var(--borde-light);
  width: 320px;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #ffffff;
}

.carousel-caption span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.carousel-caption small {
  display: block;
  font-size: 12px;
  color: #d1d5db;
  margin-top: 3px;
}

/* Fila de 4 Métricas Refit con Números Animados */
.metrics-refit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--borde-light);
}

.metric-refit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.metric-number {
  font-size: clamp(42px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--texto-oscuro-titular);
  font-variant-numeric: tabular-nums;
}

.metric-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto-oscuro-titular);
  margin-top: 4px;
}

.metric-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--texto-oscuro-atenuado);
}

/* ═══ SECCIÓN QUÉ OFRECEMOS (Datos Oficiales de poncemur.com) ═══ */
.services-refit-section {
  background: #ffffff;
  padding: 100px 0;
  border-bottom: 1px solid var(--borde-light);
}

.section-intro-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-intro-centered h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  color: var(--texto-oscuro-titular);
}

.section-intro-centered p {
  font-size: 16px;
  color: var(--texto-oscuro-cuerpo);
}

.services-split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: flex-start;
}

.services-image-box {
  position: sticky;
  top: 110px;
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid var(--borde-light);
  background: var(--bg-light-muted);
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.services-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.services-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(16, 17, 22, 0.85) 0%, transparent 100%);
  color: #ffffff;
}

.services-image-title {
  font-size: 14px;
  font-weight: 700;
}

.services-image-sub {
  font-size: 12px;
  color: #e5e7eb;
}

/* Acordeón vertical interactivo */
.services-accordion-list {
  display: flex;
  flex-direction: column;
}

.service-accordion-item {
  border-bottom: 1px solid var(--borde-light);
  transition: background var(--transicion);
}

.service-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.service-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--texto-oscuro-atenuado);
  font-variant-numeric: tabular-nums;
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--texto-oscuro-titular);
  letter-spacing: -0.015em;
  transition: color var(--transicion);
}

.service-toggle-btn {
  font-size: 20px;
  font-weight: 400;
  color: var(--texto-oscuro-atenuado);
  line-height: 1;
  transition: transform var(--transicion), color var(--transicion);
}

.service-accordion-item.active .service-title {
  color: var(--acento-marino-activo);
}

.service-accordion-item.active .service-toggle-btn {
  transform: rotate(45deg);
  color: var(--texto-oscuro-titular);
}

.service-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 8px 0 46px;
}

.service-accordion-item.active .service-accordion-body {
  max-height: 280px;
  padding: 0 8px 24px 46px;
}

.service-accordion-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--texto-oscuro-cuerpo);
  margin-bottom: 14px;
}

.service-specs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══ SECCIÓN NUESTRAS OBRAS (Our Work / Fichas Destacadas Refit) ═══ */
.work-refit-section {
  background: var(--bg-light);
  padding: 100px 0;
  border-bottom: 1px solid var(--borde-light);
}

.projects-refit-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-refit-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--bg-light-surface);
  border: 1px solid var(--borde-light);
  border-radius: var(--radio-md);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.project-refit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.project-refit-card.inverted {
  grid-template-columns: 0.85fr 1.15fr;
}

.project-refit-card.inverted .project-refit-media {
  order: 2;
}

.project-refit-card.inverted .project-refit-content {
  order: 1;
}

.project-refit-media {
  position: relative;
  min-height: 380px;
  background: var(--bg-light-muted);
}

.project-refit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-refit-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-info-top h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--texto-oscuro-titular);
  margin: 14px 0 12px;
}

.project-info-top p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--texto-oscuro-cuerpo);
}

.project-refit-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-light-muted);
  border: 1px solid var(--borde-light);
  border-radius: var(--radio-sm);
}

.project-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-spec-item strong {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-oscuro-titular);
}

.project-spec-item span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--texto-oscuro-cuerpo);
}

/* ═══ SECCIÓN SISTEMA INTERACTIVO: ESPECIFICACIONES DE SUCURSAL ═══ */
.branch-inspect-section {
  background: #ffffff;
  padding: 100px 0;
  border-bottom: 1px solid var(--borde-light);
}

.branch-inspect-box {
  position: relative;
  width: 100%;
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid var(--borde-light);
  background: #111827;
  aspect-ratio: 16 / 9;
}

.branch-inspect-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: opacity 0.3s ease;
}

.branch-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

.hotspot-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform var(--transicion);
  position: relative;
}

.hotspot-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
}

.branch-hotspot:hover .hotspot-dot,
.branch-hotspot:focus .hotspot-dot {
  transform: scale(1.15);
  background: #ffffff;
}

.hotspot-card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 260px;
  background: #ffffff;
  color: #111827;
  padding: 14px 16px;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transicion);
  z-index: 30;
}

.hotspot-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hotspot-card p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--texto-oscuro-cuerpo);
}

.branch-hotspot:hover .hotspot-card,
.branch-hotspot:focus .hotspot-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.branch-tab-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.branch-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radio-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-light-muted);
  color: var(--texto-oscuro-cuerpo);
  border: 1px solid var(--borde-light);
  cursor: pointer;
  transition: all var(--transicion);
}

.branch-tab-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* ═══ SECCIÓN SISTEMA INTEGRADO DE GESTIÓN (ISO Oficiales) ═══ */
.normativa-refit-section {
  background: var(--bg-light);
  padding: 90px 0;
  border-bottom: 1px solid var(--borde-light);
}

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

.normativa-card {
  background: var(--bg-light-surface);
  border: 1px solid var(--borde-light);
  border-radius: var(--radio-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.normativa-iso-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--acento-marino-activo);
  letter-spacing: 0.02em;
}

.normativa-card h3 {
  font-size: 17px;
  color: var(--texto-oscuro-titular);
}

.normativa-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--texto-oscuro-cuerpo);
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN RESEÑAS Y TESTIMONIOS (SLIDER VERTICAL INFINITO 3 COLUMNAS)
   Arquitectura exacta del componente InfiniteSlider vertical
   Máscara de degradado, cards rounded-3xl y velocidad escalonada
   ═══════════════════════════════════════════════════════════ */
.testimonials-section {
  position: relative;
  background: var(--bg-light);
  padding: 110px 0 100px;
  border-bottom: 1px solid var(--borde-light);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.testimonials-header h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--texto-oscuro-titular);
}

.testimonials-header p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--texto-oscuro-cuerpo);
}

/* Contenedor del Slider Vertical con Máscara de Desvanecimiento (mask-image) */
.testimonials-slider-mask {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 24px;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.testimonials-col {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

/* Ocultación adaptativa de columnas (hidden md:block / hidden lg:block) */
.testimonials-col-2 {
  display: none;
}
.testimonials-col-3 {
  display: none;
}

@media (min-width: 768px) {
  .testimonials-col-2 {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .testimonials-col-3 {
    display: flex;
  }
}

.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
  animation: slider-vertical linear infinite;
}

.testimonials-col:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes slider-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.col-speed-1 { animation-duration: 32s; }
.col-speed-2 { animation-duration: 48s; }
.col-speed-3 { animation-duration: 38s; }

/* Tarjeta individual de Testimonio (rounded-3xl, bg-card, p-8, shadow-lg) */
.testimonial-card {
  background: var(--bg-light-surface);
  border: 1px solid var(--borde-light);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--borde-light-hover);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
}

.testimonial-card blockquote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--texto-oscuro-titular);
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid var(--borde-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  color: #1e293b;
  position: relative;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.testimonial-avatar span {
  position: relative;
  z-index: 1;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: var(--texto-oscuro-titular);
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-role {
  font-size: 12px;
  color: var(--texto-oscuro-atenuado);
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ SECCIÓN PREGUNTAS FRECUENTES (FAQs Refit) ═══ */
.faq-refit-section {
  background: #ffffff;
  padding: 100px 0;
  border-bottom: 1px solid var(--borde-light);
}

.faq-refit-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-refit-item {
  border: 1px solid var(--borde-light);
  border-radius: var(--radio-md);
  background: var(--bg-light);
  transition: all var(--transicion);
}

.faq-refit-item.active {
  border-color: var(--borde-light-hover);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.faq-refit-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.faq-refit-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--texto-oscuro-titular);
  letter-spacing: -0.015em;
}

.faq-refit-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--texto-oscuro-atenuado);
  line-height: 1;
  transition: transform var(--transicion);
}

.faq-refit-item.active .faq-refit-icon {
  transform: rotate(45deg);
  color: var(--texto-oscuro-titular);
}

.faq-refit-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-refit-item.active .faq-refit-body {
  max-height: 300px;
  padding: 0 24px 22px;
}

.faq-refit-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--texto-oscuro-cuerpo);
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN CONTACTO DIRECTO (SIN FORMULARIO SOLICITADO)
   Tarjetas limpias de llamada, correo y mapa de sede en Zeneta
   ═══════════════════════════════════════════════════════════ */
.contact-refit-section {
  background: var(--bg-light);
  padding: 100px 0;
  border-bottom: 1px solid var(--borde-light);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.contact-direct-card {
  background: var(--bg-light-surface);
  border: 1px solid var(--borde-light);
  border-radius: var(--radio-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.contact-direct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.contact-card-top span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-oscuro-atenuado);
  margin-bottom: 8px;
}

.contact-card-top h3 {
  font-size: 20px;
  color: var(--texto-oscuro-titular);
  margin-bottom: 8px;
}

.contact-card-top p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto-oscuro-cuerpo);
}

.contact-map-wrap {
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid var(--borde-light);
  background: var(--bg-light-muted);
  height: 400px;
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   PIE DE PÁGINA PERSONALIZADO SOLICITADO
   Gran formato con Stroke Text + Panel Azul Corporativo Poncemur Fluted Glass
   Colores oficiales extraídos de poncemur.com:
   - Azul Marino Corporativo: #001944 (bde-headings-color y fondo copyright)
   - Celeste / Cyan Primario: #00ACEF (bde-brand-primary-color y borde superior)
   ═══════════════════════════════════════════════════════════ */
.footer-seccion {
  position: relative;
  background: var(--poncemur-azul-profundo, #000f2b);
  color: #ffffff;
  overflow: hidden;
  border-top: 4px solid var(--poncemur-celeste, #00ACEF);
}

.footer-stroke-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 10px;
  background: #000a1f;
}

.footer-stroke-title {
  font-family: var(--font-extended);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(60px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 172, 239, 0.35);
  user-select: none;
  white-space: nowrap;
  line-height: 0.9;
}

.footer-panel-azul {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(0, 172, 239, 0.16) 0%, transparent 65%), #001944;
  overflow: hidden;
  border-top: 1px solid rgba(0, 172, 239, 0.25);
}

.footer-fluted-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.75;
}

.footer-contenido {
  position: relative;
  z-index: 2;
  width: min(1280px, 92%);
  margin: 0 auto;
  padding: 60px 0 50px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}

.footer-col-izq {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radio-pill);
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(0, 172, 239, 0.4);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.footer-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 172, 239, 0.4);
}

.footer-logo-img {
  height: clamp(34px, 4vw, 44px);
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-claim {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-social-svg {
  width: 260px;
  height: auto;
  opacity: 0.85;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-cols-derecha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col-bloque h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col-bloque ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-bloque a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transicion);
}

.footer-col-bloque a:hover {
  color: var(--poncemur-celeste, #00ACEF);
}

/* Botón flotante directo */
.btn-fijo-contacto {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #001944;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radio-pill);
  border: 1.5px solid var(--poncemur-celeste, #00ACEF);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  transition: all var(--transicion);
}

.btn-fijo-contacto:hover {
  transform: translateY(-2px);
  background: var(--poncemur-celeste, #00ACEF);
  color: #001944;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

/* ═══ RESPONSIVE / ADAPTABILIDAD ═══ */
@media (max-width: 1024px) {
  .hero-clean-text {
    width: min(640px, calc(100% - 32px));
    margin-left: 16px;
  }
  
  .about-refit-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-refit-text-col {
    padding-top: 0;
  }
  
  .metrics-refit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .services-split-layout {
    grid-template-columns: 1fr;
  }
  
  .services-image-box {
    position: relative;
    top: 0;
  }
  
  .project-refit-card,
  .project-refit-card.inverted {
    grid-template-columns: 1fr;
  }
  
  .project-refit-card.inverted .project-refit-media {
    order: 1;
  }
  
  .project-refit-card.inverted .project-refit-content {
    order: 2;
  }
  
  .normativa-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-contenido {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-clean-text {
    margin: 0 16px 28px;
  }
  
  .hero-clean-title {
    font-size: 46px;
  }
  
  .refit-nav-pill,
  .refit-tel-btn {
    display: none;
  }
  
  .menu-burger {
    display: block;
  }
  
  .carousel-card {
    width: 260px;
  }
  
  .footer-cols-derecha {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   ELEMENTOS DE ACCESIBILIDAD, CONSENTIMIENTO DE COOKIES Y FORMULARIO DE CONTACTO
   ========================================================================== */

/* 1. Skip Link para navegación por teclado (Accesibilidad a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #ffffff;
  color: #0b0c10;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #3b82f6;
}

/* 2. Banner de Consentimiento de Cookies (RGPD / LSSI) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 17, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
}
.cookie-text p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}
.cookie-text strong {
  color: #ffffff;
}
.cookie-text a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.cookie-btn-accept {
  background: #ffffff;
  color: #0b0c10;
}
.cookie-btn-accept:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}
.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.cookie-link {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 8px 10px;
}
.cookie-link:hover {
  color: #ffffff;
}

