/* ============================================================
   METALWORK PRECISION SAC — Main Stylesheet
   Pure CSS3 — No frameworks
   ============================================================ */

/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
  --navy-200: #9fb0d5;
  --navy-300: #7890c4;
  --navy-400: #5a77b8;
  --navy-500: #3c5eab;
  --navy-600: #1a2d5a;
  --navy-700: #152347;
  --navy-800: #0f1a35;
  --navy-900: #080e1c;

  --gold-300: #eecb6d;
  --gold-400: #e8b83d;
  --gold-500: #c9960f;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; }
ul   { list-style: none; }

/* ── 3. Layout utilities ───────────────────────────────────── */
.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.hidden { display: none !important; }

/* ── 4. Shared design tokens ───────────────────────────────── */
.gold-text     { color: var(--gold-400); }
.gold-text-500 { color: var(--gold-500); }

.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  /* #8a6009 sobre fondo blanco = ratio 5.6:1 — cumple WCAG AA (A-05) */
  color: #8a6009;
}

.section-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.section-heading {
  color: var(--navy-800);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.gold-bar {
  display: inline-block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 2px;
}

/* Shared section header block (services, contact) */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-label { margin-bottom: 0.75rem; }

.section-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--navy-500);
  max-width: 36rem;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── 5. Skip link (A-04) ───────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-bottom-right-radius: 0.25rem;
  transition: top 0.15s ease;
}

/* Se hace visible únicamente cuando recibe el foco del teclado */
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* ── 6. Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up  { animation: fadeUp 0.7s ease both; }
.delay-1  { animation-delay: 0.15s; }
.delay-2  { animation-delay: 0.30s; }
.delay-3  { animation-delay: 0.45s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ── 7. Navbar ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  margin-inline: auto;
  width: 92%;
  max-width: 1200px;
  z-index: 50;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(15, 26, 53, 0.10), 0 1px 4px rgba(15, 26, 53, 0.07);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(15, 26, 53, 0.17), 0 2px 8px rgba(15, 26, 53, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 2.2rem;
  width: auto;
  object-fit: contain;
  padding: 2px;
  border-radius: 10px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo { transform: scale(1.05); }

/* Desktop nav — hidden on mobile */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  border-radius: 20px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--navy-900);
  background: rgba(15, 26, 53, 0.07);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: var(--navy-700);
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  filter: drop-shadow(0 0 10px rgba(232, 184, 61, 0.55)) drop-shadow(0 0 20px rgba(232, 184, 61, 0.28));
}

/* Hamburger button — shown on mobile */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--navy-700);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-hamburger:hover {
  color: var(--gold-500);
  background: rgba(15, 26, 53, 0.07);
}
/* :focus-visible muestra el anillo solo con teclado, no con clic (A-01) */
.nav-hamburger:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.nav-hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu — píldora flotante independiente bajo la cápsula */
.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(15, 26, 53, 0.13), 0 2px 6px rgba(15, 26, 53, 0.08);
  padding-inline: 0.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 340px;
  opacity: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding-block: 1rem;
  gap: 0.25rem;
}

.mobile-link {
  display: block;
  padding: 0.625rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--navy-700);
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-link:hover {
  color: var(--navy-900);
  background: rgba(15, 26, 53, 0.07);
}

.mobile-link-cta {
  margin-top: 0.375rem;
  margin-bottom: 0.5rem;
  background: var(--navy-700);
  color: var(--gold-400);
  font-weight: 700;
  text-align: center;
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.mobile-link-cta:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  filter: drop-shadow(0 0 8px rgba(232, 184, 61, 0.45));
}

/* ── 8. Hero — Split-Screen ─────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f1a35 0%, #1a2d5a 55%, #152347 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.hero-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9960f, #e8b83d, #c9960f);
  z-index: 5;
}

/* ── Columnas ────────────────────────────────────────────── */
.hero-col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 6.5rem 2rem 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-col-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

/* ── Textos ─────────────────────────────────────────────── */
.hero-label {
  color: var(--gold-400);
  margin-bottom: 0;
}

.hero-title {
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.05;
  margin-bottom: 0;
}

.hero-subtitle {
  color: var(--navy-200);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Botones hero ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  transition: background 0.3s ease, filter 0.3s ease;
}

.btn-primary:hover {
  background: var(--gold-400);
  filter: drop-shadow(0 0 10px rgba(232,184,61,0.7)) drop-shadow(0 0 22px rgba(232,184,61,0.35));
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  transition: border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  filter: drop-shadow(0 0 8px rgba(232,184,61,0.45));
}

/* ── Stats ──────────────────────────────────────────────── */
.hero-stats {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-stat-value {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.hero-stat-label {
  color: var(--navy-300);
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

/* ── Núcleo de Precisión ────────────────────────────────── */
.precision-core {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Anillos orbitales — centrados con inset + margin para no
   interferir con transform:rotate de la animación          */
.hud-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  pointer-events: none;
}

.hud-orbit-1 {
  width: 320px; height: 320px;
  border: 1px dashed rgba(232, 184, 61, 0.35);
  border-top-color: rgba(232, 184, 61, 0.80);
  animation: hudSpin 10s linear infinite;
}

.hud-orbit-2 {
  width: 400px; height: 400px;
  border: 1px solid rgba(41, 98, 255, 0.22);
  border-right-color: rgba(41, 138, 255, 0.65);
  border-bottom-color: transparent;
  animation: hudSpin 18s linear infinite reverse;
}

/* Hexágono flotante */
.hud-hex {
  position: absolute;
  top: 2%;
  right: 4%;
  width: 34px; height: 34px;
  background: rgba(232, 184, 61, 0.12);
  border: 1px solid rgba(232, 184, 61, 0.55);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hudLevitate 4s ease-in-out infinite;
  pointer-events: none;
}

/* Miras de precisión CNC */
.hud-crosshair {
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
}

.hud-crosshair::before,
.hud-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(232, 184, 61, 0.75);
}

.hud-crosshair::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}

.hud-crosshair::after {
  left: 50%; top: 0;
  height: 100%; width: 1px;
  transform: translateX(-50%);
}

.hud-crosshair-tl {
  top: 10%; left: 5%;
  animation: hudLevitate 3.5s ease-in-out infinite;
}

.hud-crosshair-br {
  bottom: 10%; right: 5%;
  animation: hudLevitate 3.5s ease-in-out 1.75s infinite;
}

/* Sensor parpadeante */
.hud-sensor {
  position: absolute;
  bottom: 5%; left: 10%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px rgba(232,184,61,0.9), 0 0 20px rgba(232,184,61,0.5);
  animation: hudBlink 2s ease-in-out infinite;
  pointer-events: none;
}

/* Marco circular del logo */
.precision-frame {
  position: relative;
  z-index: 3;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #eef2ff 60%, #dde3f0 100%);
  border: 2px solid rgba(232, 184, 61, 0.75);
  box-shadow:
    0 0 0 8px rgba(232, 184, 61, 0.09),
    0 0 40px rgba(232, 184, 61, 0.60),
    0 0 90px rgba(232, 184, 61, 0.30),
    0 0 150px rgba(232, 184, 61, 0.14),
    inset 0 0 30px rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.25rem;
}

.precision-logo {
  width: 85%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Scroll cue ─────────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--navy-300);
  z-index: 10;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.hero-scroll:hover { color: var(--gold-400); }

.hero-scroll-text {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-icon { animation: bounce 1s infinite; }

/* ── @keyframes HUD ─────────────────────────────────────── */
@keyframes hudSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hudLevitate {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes hudBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  45%       { opacity: 0.08; transform: scale(0.6); }
  65%       { opacity: 0.85; transform: scale(1.3); }
}

/* ── 9. About section ──────────────────────────────────────── */
.about-section {
  background: #fff;
  padding-block: 6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.about-label  { margin-bottom: 0.75rem; }
.about-divider { margin-bottom: 1.75rem; }

.about-body {
  color: var(--navy-600);
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-body strong {
  color: #8a6009;
  font-weight: 700;
}

.about-body-last { margin-bottom: 2rem; }

.about-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.about-stat {
  border-left: 3px solid var(--gold-500);
  padding-left: 0.875rem;
}

.about-stat-value {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--navy-800);
}

.about-stat-label {
  font-size: 0.875rem;
  color: var(--navy-500);
  font-family: var(--font-body);
}

/* About visual panel */
.about-panel { position: relative; }

.panel-card {
  background: linear-gradient(145deg, #0d1b38 0%, #07101f 100%);
  border: 1px solid rgba(232, 184, 61, 0.22);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(232, 184, 61, 0.12);
}

.panel-corner-tr {
  position: absolute;
  top: 0; right: 0;
  width: 8rem; height: 8rem;
  border-right: 4px solid rgba(201, 150, 15, 0.30);
  border-top:   4px solid rgba(201, 150, 15, 0.30);
  border-top-right-radius: 1rem;
  pointer-events: none;
}

.panel-corner-bl {
  position: absolute;
  bottom: 0; left: 0;
  width: 6rem; height: 6rem;
  border-left:   4px solid rgba(201, 150, 15, 0.20);
  border-bottom: 4px solid rgba(201, 150, 15, 0.20);
  border-bottom-left-radius: 1rem;
  pointer-events: none;
}

.panel-label {
  color: var(--gold-400);   /* override to gold-400 on dark bg */
  margin-bottom: 1.5rem;
}

.promise-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.promise-icon {
  margin-top: 0.25rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(201, 150, 15, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promise-icon i {
  color: var(--gold-400);
  font-size: 0.75rem;
}

.promise-title {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.promise-desc {
  color: var(--navy-300);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

.panel-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-600);
}

.panel-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.panel-cta-link:hover { color: var(--gold-300); }
.panel-cta-link i { font-size: 1.125rem; }

/* ── 10. Services section ──────────────────────────────────── */
.services-section {
  padding-block: 6rem;
  background: var(--navy-900);
  background-image:
    linear-gradient(rgba(232,184,61,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,61,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

/* .service-card + .service-icon-wrap — glassmorphism + clip-path bevel */
.service-card {
  border: 1px solid rgba(232, 184, 61, 0.15);
  transition: transform 0.3s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  background: rgba(8, 14, 28, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  clip-path: polygon(14px 0%, 100% 0%, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0% 100%, 0% 14px);
  padding: 1.75rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 184, 61, 0.55);
  filter: drop-shadow(0 0 14px rgba(232,184,61,0.32)) drop-shadow(0 0 28px rgba(232,184,61,0.16));
}

.service-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2d5a, #0f1a35);
  box-shadow: 0 6px 20px rgba(15, 26, 53, 0.22);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.service-icon-wrap i {
  color: var(--gold-400);
  font-size: 1.5rem;
}

.service-card-title {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  color: var(--navy-200);
  font-size: 0.875rem;
  font-family: var(--font-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--navy-200);
  font-family: var(--font-body);
}

.service-list-item i {
  color: var(--gold-400);
  margin-top: 0.125rem;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* Services CTA banner */
.services-cta-banner {
  margin-top: 3.5rem;
  background: var(--navy-800);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.services-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold-500) 0,
    var(--gold-500) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 20px 20px;
}

.services-cta-content { position: relative; z-index: 1; }

.services-cta-label {
  color: var(--gold-400);
  margin-bottom: 0.25rem;
}

.services-cta-title {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.services-cta-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.875rem 2rem;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  border-radius: 0;
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  transition: background 0.3s ease, filter 0.3s ease;
}

.services-cta-btn:hover {
  background: var(--gold-400);
  filter: drop-shadow(0 0 10px rgba(232,184,61,0.55));
}

/* Overrides de color para fondo oscuro de la sección servicios */
.services-cta-banner               { border: 1px solid rgba(232, 184, 61, 0.20); }
.services-section .section-label   { color: var(--gold-400); }
.services-section .section-heading { color: #fff; }
.services-section .section-desc    { color: var(--navy-200); }

/* ── 11. Contact — Terminal de Comunicación ────────────────── */
.contact-section {
  padding-block: 6rem;
  background: #f8f9fb;
}

/* Panel biselado principal */
.terminal-panel {
  position: relative;
  background: linear-gradient(145deg, #0d1b38 0%, #07101f 100%);
  border: 1px solid rgba(232, 184, 61, 0.20);
  clip-path: polygon(
    22px 0%, calc(100% - 22px) 0%,
    100% 22px, 100% calc(100% - 22px),
    calc(100% - 22px) 100%, 22px 100%,
    0% calc(100% - 22px), 0% 22px
  );
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.30),
    0 0 0 1px rgba(232,184,61,0.08);
}

/* Decoraciones de esquina */
.terminal-corner {
  position: absolute;
  width: 4.5rem; height: 4.5rem;
  pointer-events: none;
  z-index: 2;
}
.terminal-corner-tl {
  top: 0; left: 0;
  border-top: 2px solid rgba(232,184,61,0.50);
  border-left: 2px solid rgba(232,184,61,0.50);
}
.terminal-corner-tr {
  top: 0; right: 0;
  border-top: 2px solid rgba(232,184,61,0.50);
  border-right: 2px solid rgba(232,184,61,0.50);
}
.terminal-corner-bl {
  bottom: 0; left: 0;
  border-bottom: 2px solid rgba(232,184,61,0.25);
  border-left: 2px solid rgba(232,184,61,0.25);
}
.terminal-corner-br {
  bottom: 0; right: 0;
  border-bottom: 2px solid rgba(232,184,61,0.25);
  border-right: 2px solid rgba(232,184,61,0.25);
}

/* Barra superior de estado */
.terminal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 2rem;
  background: rgba(232,184,61,0.06);
  border-bottom: 1px solid rgba(232,184,61,0.14);
}

.terminal-sys-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.terminal-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #29d366;
  text-transform: uppercase;
}

.terminal-led {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #29d366;
  box-shadow: 0 0 6px rgba(41,211,102,0.9);
  animation: blinkDot 2.2s ease-in-out infinite;
}

/* Cuerpo del terminal — 2 columnas */
.terminal-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 2.5rem 2rem;
  gap: 0;
}

/* Encabezados de columna */
.terminal-col-heading {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(232,184,61,0.45);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── Columna izquierda: datos ── */
.terminal-data-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.terminal-data-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: transform 0.2s ease;
}
.terminal-data-item:hover { transform: translateX(4px); }

.terminal-data-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,184,61,0.10);
  border: 1px solid rgba(232,184,61,0.24);
  border-radius: 8px;
}
.terminal-data-icon i { color: var(--gold-400); font-size: 0.95rem; }

.terminal-data-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.terminal-data-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(232,184,61,0.55);
}

.terminal-data-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.terminal-data-sub {
  font-size: 0.78rem;
  color: var(--navy-300);
  font-family: var(--font-body);
}

.terminal-data-link {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  transition: color 0.2s ease;
}
.terminal-data-link:hover { color: var(--gold-400); }

/* ── Separador vertical ── */
.terminal-sep {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(232,184,61,0.25) 20%,
    rgba(232,184,61,0.25) 80%,
    transparent
  );
  margin-inline: 2rem;
}

/* ── Columna derecha: acción ── */
.terminal-action-col {
  display: flex;
  flex-direction: column;
}

.terminal-action-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
  padding-block: 1rem;
}

.terminal-action-desc {
  color: var(--navy-200);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* Botón WhatsApp tipo Panel de Control */
.terminal-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.375rem 2.25rem;
  background: rgba(37,211,102,0.12);
  border: 2px solid rgba(37,211,102,0.65);
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: waPulse 2.6s ease-in-out infinite;
  transition: background 0.3s ease, filter 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.terminal-wa-btn i {
  font-size: 2.2rem;
  color: #29d366;
  flex-shrink: 0;
}

.terminal-wa-lines {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.terminal-wa-main {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.terminal-wa-via {
  font-size: 0.78rem;
  color: #29d366;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.terminal-wa-btn:hover {
  background: rgba(37,211,102,0.22);
  animation-play-state: paused;
  filter: drop-shadow(0 0 18px rgba(37,211,102,0.75)) drop-shadow(0 0 36px rgba(37,211,102,0.35));
}

.terminal-action-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--navy-400);
  font-family: var(--font-body);
  letter-spacing: 0.06em;
}

.terminal-meta-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0.55;
  flex-shrink: 0;
}

@keyframes waPulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(37,211,102,0.40))
            drop-shadow(0 0 10px rgba(37,211,102,0.20));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(37,211,102,0.90))
            drop-shadow(0 0 32px rgba(37,211,102,0.45));
  }
}

/* ── 12. Footer — Placa Base Industrial ────────────────────── */
.site-footer {
  background: #040810;
  color: #fff;
  padding-block: 2.75rem;
  position: relative;
  background-image:
    linear-gradient(rgba(232,184,61,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,61,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Línea superior luminosa dorada */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232,184,61,0.25) 12%,
    var(--gold-400) 32%,
    #f0c94a 50%,
    var(--gold-400) 68%,
    rgba(232,184,61,0.25) 88%,
    transparent 100%
  );
  pointer-events: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  color: #fff;
  text-shadow: 0 0 18px rgba(232,184,61,0.18);
}

.footer-ruc {
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 0.12rem;
  opacity: 0.85;
}

.footer-address {
  color: rgba(148,162,190,0.65);
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

.footer-copy-area { text-align: center; }

.footer-copy {
  color: rgba(110,128,162,0.60);
  font-size: 0.71rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-500);
  opacity: 0.70;
  margin-top: 0.35rem;
}

/* ── 13. WhatsApp — Botón Flotante ─────────────────────────── */

/* Contenedor fantasma que porta los anillos sonar */
.wa-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 49;
  width: 4rem;
  height: 4rem;
  pointer-events: none;
}

/* Anillos sonar circulares (doble pulso desfasado) */
.wa-wrapper::before,
.wa-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(37, 211, 102, 0.38);
  border-radius: 50%;
  animation: waRadar 2.6s ease-out infinite;
  transform-origin: center;
}

.wa-wrapper::after {
  animation-delay: 1.3s;
}

@keyframes waRadar {
  0%   { transform: scale(1);    opacity: 0.65; }
  100% { transform: scale(2.8);  opacity: 0; }
}

/* Botón circular clásico */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 4rem;
  height: 4rem;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 22px rgba(37, 211, 102, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.875rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 0 44px rgba(37, 211, 102, 0.28);
}

/* ── 14. Scroll offset — compensa la cápsula flotante ──────── */
#inicio,
#nosotros,
#servicios,
#contacto {
  scroll-margin-top: 160px;
}

/* ── 15. Responsive breakpoints ────────────────────────────── */

/* Móvil (< 768px) */
@media (max-width: 767px) {
  /* Hero: 1 columna */
  .hero-section {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .hero-col-left {
    padding: 6rem 1.5rem 1.5rem;
    order: 1;
  }
  .hero-col-right {
    order: 2;
    padding: 0 1.5rem 3rem;
  }
  .precision-core {
    width: 240px;
    height: 240px;
    transform: scale(0.82);
    transform-origin: center top;
  }
  .hero-scroll { left: 50%; }
  .hud-orbit-1 { width: 230px; height: 230px; }
  .hud-orbit-2 { width: 290px; height: 290px; }

  /* Terminal: 1 columna en móvil */
  .terminal-body {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }
  .terminal-sep {
    width: 100%; height: 1px;
    margin-inline: 0;
    margin-block: 1.5rem;
    background: linear-gradient(
      to right,
      transparent,
      rgba(232,184,61,0.25) 20%,
      rgba(232,184,61,0.25) 80%,
      transparent
    );
  }
  .terminal-header-bar { padding: 0.6rem 1.25rem; }
  .terminal-sys-label  { font-size: 0.55rem; letter-spacing: 0.12em; }
  .terminal-wa-btn     { max-width: 100%; }
}

/* sm: 640px */
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }

  .hero-title      { font-size: 3.5rem; }
  .hero-subtitle   { font-size: 1.1rem; }
  .hero-actions    { flex-direction: row; }
  .hero-stat-value { font-size: 1.75rem; }
  .hero-stat-label { font-size: 0.8rem; }

  .section-heading   { font-size: 3.75rem; }

  .services-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-cta-banner  { flex-direction: row; text-align: left; }
  .services-cta-title   { font-size: 1.5rem; }

  .terminal-body { padding: 2.5rem 2.5rem; }
}

/* md: 768px */
@media (min-width: 768px) {
  .nav-desktop   { display: flex; }
  .nav-hamburger { display: none; }

  /* About — 2 columnas desde tablet */
  .about-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner     { flex-direction: row; text-align: left; }
  .footer-brand-row { justify-content: flex-start; }
  .footer-copy-area { text-align: right; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }

  .site-header { top: 20px; }
  .nav-logo   { height: 2.6rem; }

  /* Hero split-screen desktop */
  .hero-section {
    flex-direction: row;
    height: 100vh;
    min-height: 0;
    align-items: stretch;
  }
  .hero-col-left {
    flex: 1;
    justify-content: center;
    padding: 7rem 4rem 3rem 5%;
  }
  .hero-col-right {
    flex: 1;
    padding: 3rem 5% 3rem 2rem;
    align-items: center;
    justify-content: center;
  }
  .precision-core {
    width: 420px;
    height: 420px;
  }
  .precision-frame {
    width: 300px;
    height: 300px;
  }
  .hud-orbit-1  { width: 390px; height: 390px; }
  .hud-orbit-2  { width: 490px; height: 490px; }
  .hero-scroll  { left: 50%; }
  .hero-title    { font-size: 5rem; }
  .hero-subtitle { font-size: 1.25rem; }

  .about-body  { font-size: 1.1rem; }
  .panel-card  { padding: 2.5rem; }

  .services-section { padding-block: 8rem; }
  .services-grid    { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .contact-section { padding-block: 8rem; }
  .terminal-body   { padding: 3rem; }
  .terminal-sep    { margin-inline: 2.5rem; }
}

/* xs: teléfonos muy pequeños ≤ 359px (320px Samsung/iPhone SE 1ª gen) */
@media (max-width: 359px) {
  /* About stats: 3 columnas colapsan con palabras largas en Bebas Neue */
  .about-stats-strip { grid-template-columns: 1fr; gap: 0.875rem; }

  /* Botón brochure: letra-espaciado reduce ancho en 272px útiles */
  .btn-brochure {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    padding: 0.875rem 1rem;
    width: 100%;
    justify-content: center;
  }

  /* Hero title y stats: ajuste fino */
  .hero-title      { font-size: 2.3rem; }
  .hero-stat-value { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.65rem; }
}

/* xl: monitores grandes 1440px+ (algunos Smart TVs HD) */
@media (min-width: 1440px) {
  .hero-title      { font-size: 6rem; }
  .hero-subtitle   { font-size: 1.4rem; }
  .precision-core  { width: 500px; height: 500px; }
  .precision-frame { width: 360px; height: 360px; }
  .hud-orbit-1     { width: 470px; height: 470px; }
  .hud-orbit-2     { width: 580px; height: 580px; }
}

/* 2xl: 4K / pantallas ≥ 1920px (televisores grandes) */
@media (min-width: 1920px) {
  .hero-title      { font-size: 7.5rem; }
  .hero-subtitle   { font-size: 1.65rem; }
  .hero-stat-value { font-size: 2rem; }
  .precision-core  { width: 580px; height: 580px; }
  .precision-frame { width: 420px; height: 420px; }
  .hud-orbit-1     { width: 550px; height: 550px; }
  .hud-orbit-2     { width: 680px; height: 680px; }
}


/* ── 16. Botón disparador del visor ────────────────────────── */
.hero-cta-secondary {
  margin-top: 0.25rem;
}

.btn-brochure {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(201, 150, 15, 0.14);
  border: 1.5px solid rgba(232, 184, 61, 0.90);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  position: relative;
  overflow: hidden;
  animation: brochurePulse 2.4s ease-in-out infinite;
  transition: background 0.3s ease, filter 0.3s ease;
}

/* Scan-line sweep on hover */
.btn-brochure::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232,184,61,0.20), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-brochure:hover::before { left: 110%; }

.btn-brochure:hover {
  background: rgba(232, 184, 61, 0.22);
  animation-play-state: paused;
  filter: drop-shadow(0 0 18px rgba(232,184,61,0.85)) drop-shadow(0 0 36px rgba(232,184,61,0.45));
}

.btn-brochure:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.btn-brochure i {
  color: var(--gold-400);
  font-size: 1.1em;
}

/* Pulso con filter drop-shadow (compatible con clip-path) */
@keyframes brochurePulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(232,184,61,0.40)) drop-shadow(0 0 8px rgba(232,184,61,0.20));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(232,184,61,0.95)) drop-shadow(0 0 28px rgba(232,184,61,0.55)) drop-shadow(0 0 50px rgba(232,184,61,0.25));
  }
}


/* ── 17. Visor holográfico CNC (Modal) ──────────────────────── */

/* ── Overlay ── */
.brochure-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 8, 18, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.brochure-modal.open {
  opacity: 1;
  visibility: visible;
}

/* ── Panel central ── */
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 95vw;
  max-height: 95vh;
  background: rgba(6, 11, 24, 0.97);
  border: 1px solid rgba(232, 184, 61, 0.30);
  clip-path: polygon(
    22px 0%, calc(100% - 22px) 0%,
    100% 22px, 100% calc(100% - 22px),
    calc(100% - 22px) 100%, 22px 100%,
    0% calc(100% - 22px), 0% 22px
  );
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Franja dorada superior */
.modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--gold-500) 30%, var(--gold-400) 50%, var(--gold-500) 70%, transparent 95%);
  z-index: 2;
  pointer-events: none;
}

/* Animación de encendido al abrirse */
.brochure-modal.open .modal-panel {
  animation: panelPowerOn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes panelPowerOn {
  0%   { opacity: 0;   transform: scale(0.96); }
  12%  { opacity: 0.85; transform: scale(1.008); }
  18%  { opacity: 0.06; }
  28%  { opacity: 0.92; transform: scale(1); }
  36%  { opacity: 0.22; }
  52%  { opacity: 1;    transform: scale(1); }
  100% { opacity: 1;    transform: scale(1); }
}

/* ── Cabecera HUD ── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(232, 184, 61, 0.14);
  background: rgba(15, 26, 53, 0.65);
  flex-shrink: 0;
}

.modal-sys-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.modal-sys-label {
  color: var(--gold-500);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.modal-title-text {
  color: var(--navy-300);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón "CERRAR SISTEMA" */
.modal-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(232, 184, 61, 0.07);
  border: 1px solid rgba(232, 184, 61, 0.30);
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
  transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(232, 184, 61, 0.18);
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(232,184,61,0.55));
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* ── Decoraciones de esquina ── */
.modal-corner {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  z-index: 3;
}

.modal-corner-tl { top: 3.25rem; left: 0.5rem; border-top: 1.5px solid var(--gold-500); border-left: 1.5px solid var(--gold-500); opacity: 0.65; }
.modal-corner-tr { top: 3.25rem; right: 0.5rem; border-top: 1.5px solid var(--gold-500); border-right: 1.5px solid var(--gold-500); opacity: 0.65; }
.modal-corner-bl { bottom: 2.8rem; left: 0.5rem; border-bottom: 1.5px solid var(--gold-500); border-left: 1.5px solid var(--gold-500); opacity: 0.4; }
.modal-corner-br { bottom: 2.8rem; right: 0.5rem; border-bottom: 1.5px solid var(--gold-500); border-right: 1.5px solid var(--gold-500); opacity: 0.4; }

/* ── Área del carrusel ── */
.carousel-container {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem 0.5rem;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brochure-slide {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.brochure-slide.active {
  display: flex;
  animation: slideIn 0.32s ease both;
}

.brochure-slide.slide-reverse.active {
  animation: slideInLeft 0.32s ease both;
}

.brochure-slide img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  outline: 1px solid rgba(232, 184, 61, 0.10);
  outline-offset: 4px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Controles de navegación ── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.5rem;
  border-top: 1px solid rgba(232, 184, 61, 0.10);
  flex-shrink: 0;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(201, 150, 15, 0.07);
  border: 1px solid rgba(232, 184, 61, 0.22);
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(232, 184, 61, 0.16);
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(232,184,61,0.4));
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

.page-indicator {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.page-label   { color: var(--navy-500); font-size: 0.62rem; text-transform: uppercase; margin-right: 0.2rem; }
.page-sep     { color: var(--navy-600); margin-inline: 0.1rem; font-size: 0.75rem; }
.page-total   { color: var(--navy-400); font-size: 0.75rem; }

#page-current {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}

/* ── Barra de estado inferior ── */
.modal-status-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 1.5rem;
  background: rgba(4, 8, 18, 0.8);
  border-top: 1px solid rgba(232, 184, 61, 0.07);
  flex-shrink: 0;
}

.modal-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22d46a;
  box-shadow: 0 0 5px #22d46a;
  animation: blinkDot 1.8s ease infinite;
  flex-shrink: 0;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.modal-status-bar span {
  color: var(--navy-500);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-status-sep { color: var(--navy-700) !important; }

/* ── Responsive modal ── */
@media (max-width: 640px) {
  .modal-header    { padding: 0.625rem 1rem; }
  .modal-title-text { display: none; }
  .carousel-container { padding: 0.75rem 0.75rem 0.5rem; }
  .carousel-controls  { padding: 0.5rem 0.75rem; }
  .carousel-btn       { padding: 0.4rem 0.75rem; font-size: 0.65rem; }
  .modal-status-bar   { padding: 0.3rem 0.75rem; gap: 0.375rem; }
  .brochure-slide img { max-height: 65vh; }
}
