/* =====================================================
   HPTS - CORPORATE DESIGN SYSTEM v3.0
   Palette: Negro + Vinotinto + Azul Agua
   Clean, elegant, lightweight animations
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --petroleum-950: #000000;
  --petroleum-900: #0a0a0a;
  --petroleum-800: #141414;
  --petroleum-700: #1a1a1a;
  --petroleum-600: #262626;
  --petroleum-500: #333333;
  --petroleum-400: #404040;
  --gold: #8b0021;
  --gold-light: #b3002b;
  --gold-dark: #5c0016;
  --accent-blue: #00d4d4;
  --white: #ffffff;
  --cream: #f7f8fa;
  --gray-100: #f1f3f5;
  --gray-200: #e4e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.16);
  --shadow-gold: 0 8px 24px rgba(139,0,33,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold);
  color: var(--white);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--petroleum-900); }
::-webkit-scrollbar-thumb { background: var(--petroleum-500); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =====================================================
   SPLASH SCREEN - CLEAN & FAST
   ===================================================== */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--petroleum-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.7s var(--ease-out-quart), visibility 0.7s;
}

#splash-screen .splash-logo {
  width: 200px;
  height: auto;
  opacity: 0;
  animation: splash-fade-in 0.6s var(--ease-out-quart) 0.2s forwards;
}

#splash-screen .splash-tagline {
  margin-top: 20px;
  color: var(--gray-400);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0;
  animation: splash-fade-in 0.6s var(--ease-out-quart) 0.5s forwards;
}

#splash-screen .splash-progress {
  margin-top: 28px;
  width: 120px;
  height: 1.5px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

#splash-screen .splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  border-radius: var(--radius-full);
  animation: progress-load 1.5s var(--ease-out-expo) forwards;
}

@keyframes splash-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progress-load {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}

#splash-screen.oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =====================================================
   HEADER - CLEAN GLASSMORPHISM
   ===================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s var(--ease-out-expo);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  padding: 6px 50px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
}

.logo .img-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.logo:hover .img-logo {
  transform: scale(1.06);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo .brand-main {
  color: #8b0021;
  font-weight: 800;
}

.logo .brand-sep {
  color: var(--gray-400);
  font-weight: 300;
  font-size: 0.85em;
}

.logo .brand-sub {
  color: #00d4d4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  position: relative;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out-quart);
}

nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(139,0,33,0.15);
  border-radius: var(--radius-full);
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.4s var(--ease-out-quart);
}

nav a:hover,
nav a.activo {
  color: var(--white);
}

nav a:hover::before,
nav a.activo::before {
  transform: scale(1);
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: right center;
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  border-radius: var(--radius-full);
  transition: transform 0.45s var(--ease-out-expo);
}

nav a.activo::after,
nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
  transform-origin: left center;
}

/* Hamburger */
.menu-hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  border-radius: var(--radius-md);
  transition: background 0.3s;
}

.menu-hamburguesa:hover {
  background: rgba(255,255,255,0.04);
}

.menu-hamburguesa span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.menu-hamburguesa.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-hamburguesa.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-hamburguesa.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   DIAMOND MOTIF - SIGNATURE ANIMATION
   ===================================================== */
.diamante-flotante {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--accent-blue), #009f9f);
  transform: rotate(45deg);
  z-index: 2;
  opacity: 0;
  animation: diamond-fade-in 1.1s var(--ease-out-expo) 1.6s forwards;
  filter: drop-shadow(0 0 6px rgba(0,212,212,0.5));
}

.diamante-flotante.d1 { top: 24%; left: 10%; animation-delay: 0s, 1.6s; }
.diamante-flotante.d2 { top: 30%; right: 12%; width: 7px; height: 7px; animation-delay: 1.2s, 1.9s; }
.diamante-flotante.d3 { bottom: 26%; left: 22%; width: 5px; height: 5px; animation-delay: 2.1s, 2.2s; }

@keyframes diamond-fade-in {
  from { opacity: 0; filter: blur(4px); }
  to   { opacity: 0.9; filter: blur(0) drop-shadow(0 0 6px rgba(0,212,212,0.5)); }
}

/* Diamond rotation pulse for static motifs */
.linea-divisoria::after {
  animation: diamond-spin 6s linear infinite;
}

@keyframes diamond-spin {
  0%   { transform: translate(-50%, -50%) rotate(45deg); }
  100% { transform: translate(-50%, -50%) rotate(405deg); }
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 160px 24px 170px;
  overflow: hidden;
  background: #050a14;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}

/* Video background */
.hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-media video,
.hero .hero-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.5) saturate(1);
}

/* Main cinematic overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,0,33,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0,180,180,0.1) 0%, transparent 60%),
    linear-gradient(175deg, rgba(5,10,20,0.62) 0%, rgba(5,10,20,0.32) 45%, rgba(5,10,20,0.78) 100%);
  z-index: 1;
}

/* Energy line traveling the bottom edge */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--accent-blue) 50%, var(--gold) 75%, transparent);
  background-size: 200% 100%;
  animation: energy-line 4s linear infinite;
  z-index: 3;
  opacity: 0.9;
}

@keyframes energy-line {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Decorative left accent bar */
.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

/* Main title */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 28px;
  color: var(--white);
  letter-spacing: -1.5px;
  opacity: 0;
  animation: entrada-hero 1.1s var(--ease-out-expo) 0.6s forwards;
}

.hero h1 .accent-line {
  display: inline;
  background: linear-gradient(100deg, #00d4d4 0%, #00a8a8 40%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 6px;
}

/* Animated underline on accent */
.hero h1 .accent-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4d4, transparent);
  border-radius: var(--radius-full);
  animation: line-expand 1.2s var(--ease-out-expo) 1.4s forwards;
}

@keyframes line-expand {
  from { transform: translateX(-50%) scaleX(0); opacity: 0; }
  to   { transform: translateX(-50%) scaleX(1); opacity: 1; }
}

/* Divider rule between title and paragraph */
.hero-rule {
  display: none;
}

.hero > .hero-contenido > p {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  font-weight: 400;
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.85;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: entrada-hero 1.1s var(--ease-out-expo) 0.9s forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: entrada-hero 1.1s var(--ease-out-expo) 1.15s forwards;
}

/* ---- Buttons ---- */
.btn-primario {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00d4d4 0%, #009f9f 100%);
  color: #050a14;
  padding: 16px 36px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 212, 212, 0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.btn-primario::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.55s;
}

.btn-primario:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 212, 212, 0.55);
}

.btn-primario:hover::before { left: 100%; }

.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.btn-secundario:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* ---- Scroll indicator ---- */
.scroll-indicador {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: entrada-hero 0.8s var(--ease-out-expo) 1.8s forwards;
}

.scroll-indicador .scroll-text {
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-weight: 600;
}

.scroll-indicador .scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2.5s ease infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* Signature entrance: soft blur-to-focus, no generic float */
@keyframes entrada-hero {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   MINI HERO (internal pages)
   ===================================================== */
.mini-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 140px 24px 60px;
  overflow: hidden;
  background: var(--petroleum-900);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.mini-hero .mini-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mini-hero .mini-hero-bg img,
.mini-hero .mini-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.95);
}

.mini-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5,10,20,0.82) 0%, rgba(5,10,10,0.58) 100%),
    linear-gradient(rgba(0,212,212,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,212,0.055) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  z-index: 1;
}

.mini-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--accent-blue) 50%, var(--gold) 75%, transparent);
  background-size: 200% 100%;
  animation: energy-line 4s linear infinite;
  z-index: 3;
  opacity: 0.8;
}

.mini-hero-contenido {
  position: relative;
  z-index: 2;
}

.mini-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.mini-hero .linea-hero {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.mini-hero .mini-hero-sub {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   INFINITE IMAGE STRIP
   ===================================================== */
.strip-contenedor {
  width: 100%;
  background: var(--petroleum-900);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.strip-contenedor::before,
.strip-contenedor::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.strip-contenedor::before {
  left: 0;
  background: linear-gradient(to right, var(--petroleum-900), transparent);
}

.strip-contenedor::after {
  right: 0;
  background: linear-gradient(to left, var(--petroleum-900), transparent);
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: strip-scroll 50s linear infinite;
}

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

.strip-track img {
  height: 60px;
  width: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(70%) brightness(1.3) contrast(0.9);
  opacity: 0.45;
  transition: all 0.6s var(--ease-out-expo);
}

.strip-track img:hover {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
}

@keyframes strip-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   SECTIONS - CLEAN CORPORATE
   ===================================================== */
.seccion {
  padding: 100px 24px;
  position: relative;
}

.seccion-oscura {
  padding: 100px 24px;
  background: var(--petroleum-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.seccion-oscura::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(139,0,33,0.09) 0%, transparent 55%),
    linear-gradient(rgba(0,212,212,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,212,0.035) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
}

.seccion-oscura > * {
  position: relative;
  z-index: 1;
}

.encabezado-seccion {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.encabezado-seccion .seccion-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.encabezado-seccion .seccion-etiqueta::before,
.encabezado-seccion .seccion-etiqueta::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.encabezado-seccion .seccion-etiqueta::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.encabezado-seccion h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--petroleum-900);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.seccion-oscura .encabezado-seccion h2 {
  color: var(--white);
}

.linea-divisoria {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto;
  border-radius: var(--radius-full);
  position: relative;
}

.linea-divisoria::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  transform: translate(-50%, -50%) rotate(45deg);
}

.subtitulo-seccion {
  margin-top: 20px;
  color: var(--gray-500);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

.seccion-oscura .subtitulo-seccion {
  color: rgba(255,255,255,0.55);
}

/* =====================================================
   GRID CARDS - ELEGANT & CLEAN
   ===================================================== */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.tarjeta {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid var(--gray-200);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.tarjeta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 4;
}

.tarjeta:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0,212,212,0.16), 0 3px 8px rgba(0,0,0,0.09);
  border-color: rgba(0,212,212,0.35);
}

.tarjeta:hover::after {
  transform: scaleX(1);
}

/* Ghost numbering */
.grid-servicios .tarjeta::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(26,26,26,0.05);
  z-index: 0;
  pointer-events: none;
  transition: color 0.5s var(--ease-out-expo);
}

.grid-servicios .tarjeta:nth-child(1)::before { content: '01'; }
.grid-servicios .tarjeta:nth-child(2)::before { content: '02'; }
.grid-servicios .tarjeta:nth-child(3)::before { content: '03'; }
.grid-servicios .tarjeta:nth-child(4)::before { content: '04'; }

.grid-servicios .tarjeta:hover::before {
  color: rgba(0,212,212,0.14);
}

.tarjeta .tarjeta-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
}

.media-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.media-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 1;
}

.media-wrapper img,
.media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.tarjeta:hover .media-wrapper img,
.tarjeta:hover .media-wrapper video {
  transform: scale(1.06);
}

.info-tarjeta {
  padding: 28px;
  position: relative;
  z-index: 2;
}

.info-tarjeta h3 {
  font-family: var(--font-display);
  color: var(--petroleum-900);
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.info-tarjeta p {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 0.92rem;
}

.tarjeta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: gap 0.4s var(--ease-out-expo);
}

.tarjeta-link:hover {
  gap: 10px;
}

.tarjeta-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.tarjeta-link:hover svg {
  transform: translateX(3px);
}

/* =====================================================
   STATS - CLEAN
   ===================================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.stat-item {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  transition: background 0.4s;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.stat-item:hover::after {
  transform: scaleX(1);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: rgba(0,212,212,0.05); }

.stat-numero {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 55%, var(--accent-blue) 130%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
}

.stat-label::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent-blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* =====================================================
   CONTACT - PREMIUM CLEAN
   ===================================================== */
.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contacto-info { padding-top: 10px; }

.contacto-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: -0.3px;
}

.contacto-info > p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

.contacto-detalles {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacto-icono {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(139,0,33,0.08);
  border: 1px solid rgba(139,0,33,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.contacto-icono svg { width: 20px; height: 20px; }

.contacto-item-texto h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contacto-item-texto p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Form */
.contenedor-formulario {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.contenedor-formulario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.form-header { margin-bottom: 28px; }

.form-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--petroleum-900);
  margin-bottom: 5px;
}

.form-header p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.grupo-input { margin-bottom: 20px; position: relative; }

.grupo-input label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--petroleum-700);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.grupo-input input,
.grupo-input textarea,
.grupo-input select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--gray-700);
  transition: all 0.35s var(--ease-out-quart);
  background: var(--gray-100);
}

.grupo-input input::placeholder,
.grupo-input textarea::placeholder {
  color: var(--gray-400);
}

.grupo-input input:focus,
.grupo-input textarea:focus,
.grupo-input select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,0,33,0.15), var(--shadow-sm);
}

.btn-enviar {
  width: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-enviar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}

.btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-enviar:hover::before {
  left: 100%;
}

/* =====================================================
   SERVICES PAGE - ALTERNATING ROWS
   ===================================================== */
.seccion-servicios {
  padding: 70px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.fila-servicio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 50px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.5s var(--ease-out-expo);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  position: relative;
}

.fila-servicio::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 3;
}

.fila-servicio:hover {
  box-shadow: 0 10px 22px rgba(0,212,212,0.14), 0 3px 8px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.fila-servicio:hover::after {
  transform: scaleX(1);
}

.fila-servicio.invertida { direction: rtl; }
.fila-servicio.invertida > * { direction: ltr; }

.imagen-servicio {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.imagen-servicio img,
.imagen-servicio video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.fila-servicio:hover .imagen-servicio img,
.fila-servicio:hover .imagen-servicio video {
  transform: scale(1.04);
}

.imagen-servicio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.06) 0%, transparent 50%);
}

.texto-servicio {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.texto-servicio .servicio-numero {
  position: absolute;
  right: 6px;
  bottom: -18px;
  font-family: var(--font-display);
  font-size: 8.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(26,26,26,0.04);
  pointer-events: none;
  transition: color 0.5s var(--ease-out-expo);
}

.fila-servicio:hover .servicio-numero {
  color: rgba(0,212,212,0.1);
}

.texto-servicio h2 {
  font-family: var(--font-display);
  color: var(--petroleum-900);
  font-size: 1.7rem;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.texto-servicio > p {
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.servicio-lista {
  list-style: none;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.servicio-lista li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.servicio-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b0021' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-cotizar {
  display: inline-flex;
  align-self: flex-start;
  background: var(--gold);
  color: var(--white);
  padding: 13px 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
}

.btn-cotizar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139,0,33,0.28);
}

/* =====================================================
   NOSOTROS - HISTORY & MV
   ===================================================== */
.seccion-historia {
  padding: 70px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.seccion-historia h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--petroleum-900);
  margin-bottom: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 18px;
  letter-spacing: -0.2px;
}

.seccion-historia h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
}

.seccion-historia p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.contenedor-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 50px;
}

.caja-mv {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.caja-mv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.caja-mv::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 18px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent-blue);
  transform: rotate(45deg);
  opacity: 0.5;
  transition: all 0.5s var(--ease-out-expo);
}

.caja-mv:nth-child(1)::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.caja-mv:nth-child(2)::before { background: linear-gradient(90deg, var(--accent-blue), var(--petroleum-700)); }

.caja-mv:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,212,212,0.14), 0 3px 8px rgba(0,0,0,0.08);
}

.caja-mv:hover::after {
  opacity: 1;
  transform: rotate(45deg) scale(1.3);
  background: var(--accent-blue);
}

.caja-mv h3 {
  font-family: var(--font-display);
  color: var(--petroleum-900);
  margin-bottom: 14px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.caja-mv p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.mv-icono {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--gray-100);
  color: var(--gold-dark);
  transform: rotate(45deg);
  transition: all 0.5s var(--ease-out-expo);
}

.mv-icono svg {
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
}

.caja-mv:hover .mv-icono {
  background: linear-gradient(135deg, rgba(139,0,33,0.08), rgba(0,212,212,0.12));
  color: var(--gold);
}

/* =====================================================
   FOOTER - CLEAN CORPORATE
   ===================================================== */
footer {
  background: var(--petroleum-950);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,0,33,0.4), transparent);
}

footer::after {
  content: 'HPTS';
  position: absolute;
  right: -1%;
  bottom: -90px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(9rem, 24vw, 18rem);
  line-height: 1;
  color: rgba(255,255,255,0.035);
  letter-spacing: -0.03em;
  pointer-events: none;
  z-index: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 1;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 22px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.82rem;
}

.footer-bottom .creditos {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--gray-700);
}

.footer-bottom .creditos strong {
  color: var(--accent-blue);
}

/* =====================================================
   REVEAL ANIMATIONS - BLUR WIPE, NOT PLAIN SLIDE
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart), filter 0.9s var(--ease-out-quart);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart), filter 0.9s var(--ease-out-quart);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart), filter 0.9s var(--ease-out-quart);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart), filter 0.9s var(--ease-out-quart);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* =====================================================
   TOAST - CLEAN
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--petroleum-900);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 3px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  animation: toast-in 0.5s var(--ease-out-quart) forwards;
  max-width: 340px;
}

.toast.hiding {
  animation: toast-out 0.4s var(--ease-out-quart) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* =====================================================
   PÁGINA DETALLE DE OPERACIÓN
   ===================================================== */
.detalle-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 150px 24px 70px;
  overflow: hidden;
  background: var(--petroleum-900);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.detalle-hero .detalle-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detalle-hero .detalle-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.95);
}

.detalle-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5,10,20,0.86) 0%, rgba(5,10,10,0.55) 100%),
    linear-gradient(rgba(0,212,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,212,0.05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  z-index: 1;
}

.detalle-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--accent-blue) 50%, var(--gold) 75%, transparent);
  background-size: 200% 100%;
  animation: energy-line 4s linear infinite;
  z-index: 3;
  opacity: 0.8;
}

.detalle-hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.detalle-hero .detalle-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.detalle-hero .detalle-tag::before,
.detalle-hero .detalle-tag::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue));
}

.detalle-hero .detalle-tag::after {
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}

.detalle-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.detalle-hero .linea-hero {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 18px auto 0;
  border-radius: var(--radius-full);
}

.detalle-hero .detalle-hero-sub {
  margin-top: 16px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.58);
  font-weight: 300;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.detalle-breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.detalle-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.detalle-breadcrumb a:hover {
  color: var(--accent-blue);
}

.detalle-contenido {
  max-width: 1000px;
  margin: 0 auto;
  padding: 90px 24px 30px;
}

.detalle-intro p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--gray-600);
  margin-bottom: 20px;
  max-width: 780px;
}

.detalle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
  max-width: 1000px;
  margin: 60px auto;
}

.detalle-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.detalle-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.detalle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,212,212,0.14), 0 3px 8px rgba(0,0,0,0.08);
}

.detalle-card:hover::after {
  transform: scaleX(1);
}

.detalle-card .dc-icono {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(139,0,33,0.08);
  border: 1px solid rgba(139,0,33,0.12);
  color: var(--gold-dark);
  transform: rotate(45deg);
  transition: all 0.5s var(--ease-out-expo);
}

.detalle-card .dc-icono svg {
  width: 20px;
  height: 20px;
  transform: rotate(-45deg);
}

.detalle-card:hover .dc-icono {
  background: linear-gradient(135deg, rgba(139,0,33,0.08), rgba(0,212,212,0.12));
  color: var(--gold);
}

.detalle-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--petroleum-900);
  margin-bottom: 10px;
  font-weight: 700;
}

.detalle-card p {
  font-size: 0.93rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 0;
}

.detalle-seccion {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 24px;
}

.detalle-seccion.oscura {
  background: var(--petroleum-900);
  color: var(--white);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.detalle-seccion.oscura::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(139,0,33,0.09) 0%, transparent 55%),
    linear-gradient(rgba(0,212,212,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,212,0.035) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
}

.detalle-seccion.oscura > * {
  position: relative;
  z-index: 1;
}

.detalle-seccion h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--petroleum-900);
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -0.3px;
  position: relative;
}

.detalle-seccion.oscura h2 {
  color: var(--white);
}

.detalle-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 40px;
  list-style: none;
}

.detalle-lista li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.7;
}

.detalle-seccion.oscura .detalle-lista li {
  color: rgba(255,255,255,0.7);
}

.detalle-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b0021' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.detalle-seccion.oscura .detalle-lista li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.detalle-cta {
  text-align: center;
  padding: 80px 24px 90px;
  max-width: 720px;
  margin: 0 auto;
}

.detalle-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.detalle-cta p {
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.7;
}

.detalle-cta .btn-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   GALERÍA - EDITORIAL GRID
   ===================================================== */
.seccion-galeria {
  padding: 90px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.filtros-galeria {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filtros-galeria button {
  position: relative;
  padding: 10px 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.filtros-galeria button::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  transition: transform 0.4s var(--ease-out-expo);
}

.filtros-galeria button:hover {
  color: var(--gold-dark);
  border-color: rgba(139,0,33,0.3);
}

.filtros-galeria button:hover::after,
.filtros-galeria button.filtro-activo::after {
  transform: translateX(-50%) scaleX(1);
}

.filtros-galeria button.filtro-activo {
  background: var(--petroleum-900);
  color: var(--white);
  border-color: var(--petroleum-900);
  box-shadow: var(--shadow-md);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.item-galeria {
  position: relative;
  margin: 0;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: all 0.5s var(--ease-out-expo);
}

.item-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo), filter 0.5s var(--ease-out-expo);
}

.item-galeria::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,20,0.85) 0%, rgba(5,10,20,0.15) 45%, transparent 65%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: 1;
}

.item-galeria figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out-expo);
}

.item-galeria .item-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.item-galeria .item-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent-blue);
  transform: rotate(45deg);
}

.item-galeria figcaption h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.item-galeria:hover {
  box-shadow: 0 10px 24px rgba(0,212,212,0.18), 0 3px 8px rgba(0,0,0,0.1);
  border-color: rgba(0,212,212,0.4);
}

.item-galeria:hover img {
  transform: scale(1.07);
}

.item-galeria:hover::after {
  opacity: 1;
}

.item-galeria:hover figcaption {
  transform: translateY(0);
}

.item-galeria.oculto {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-quart), visibility 0.4s;
}

.lightbox.abierto {
  opacity: 1;
  visibility: visible;
}

.lightbox-contenido {
  max-width: 88vw;
  max-height: 84vh;
  margin: 0;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox.abierto .lightbox-contenido {
  transform: scale(1);
}

.lightbox-contenido img {
  max-width: 88vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lightbox-contenido figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.lightbox-cerrar {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 2;
}

.lightbox-cerrar:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 2;
}

.lightbox-nav.anterior { left: 24px; }
.lightbox-nav.siguiente { right: 24px; }

.lightbox-nav:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #050a14;
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .fila-servicio { grid-template-columns: 1fr; }
  .fila-servicio.invertida { direction: ltr; }
  .imagen-servicio { min-height: 260px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

@media (max-width: 900px) {
  .contacto-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .contenedor-mv { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .detalle-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  header { padding: 8px 20px; }
  header.scrolled { padding: 6px 20px; }
  .detalle-grid { grid-template-columns: 1fr; }
  .detalle-contenido { padding: 60px 20px 20px; }
  .detalle-seccion { padding: 50px 20px; }
  .detalle-hero { padding: 130px 20px 60px; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  nav.activo {
    max-height: 360px;
    padding: 16px 0 24px;
    opacity: 1;
    visibility: visible;
  }
  nav a { margin: 6px 0; font-size: 0.9rem; padding: 10px 24px; }
  .menu-hamburguesa { display: flex; }
  .hero { padding: 120px 20px 70px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primario, .btn-secundario { width: 100%; max-width: 300px; justify-content: center; }
  .seccion, .seccion-oscura { padding: 70px 20px; }
  .grid-servicios { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { max-width: 100%; margin: 0 auto; }
  .texto-servicio { padding: 30px 22px; }
  .contenedor-formulario { padding: 28px 22px; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }
  .scroll-indicador { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .mini-hero h1 { font-size: 1.7rem; }
  .encabezado-seccion h2 { font-size: 1.5rem; }
  .texto-servicio h2 { font-size: 1.3rem; }
  .contacto-info h2 { font-size: 1.6rem; }
}

/* =====================================================
   REFINAMIENTO EDITORIAL — v3.1
   Menos sombra / degradado, más línea fina y esquina recta
   ===================================================== */

/* -- Tarjetas de operaciones: de "card con sombra" a fila editorial -- */
.tarjeta {
  box-shadow: none;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}
.tarjeta:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gold);
}
.tarjeta::after {
  height: 2px;
}

/* -- Filas de servicios (servicios.html) -- */
.fila-servicio {
  box-shadow: none;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}
.fila-servicio:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gold);
}

/* -- Barra de estadísticas: sin sombra flotante, solo hairline -- */
.stats-bar {
  box-shadow: none;
  border-radius: 2px;
  border: 1px solid var(--gray-200);
}

/* -- Botones: plano, sin degradado ni glow -- */
.btn-primario {
  background: var(--gold);
  box-shadow: none;
  border-radius: 2px;
}
.btn-primario:hover {
  transform: none;
  box-shadow: none;
  background: var(--gold-dark);
}
.btn-secundario {
  border-radius: 2px;
}
.btn-secundario:hover {
  transform: none;
  box-shadow: none;
}
.btn-enviar {
  border-radius: 2px;
}
.btn-enviar:hover {
  transform: none;
  box-shadow: none;
  background: var(--gold-dark);
}
.btn-cotizar {
  background: var(--gold);
  border-radius: 2px;
  box-shadow: none;
}
.btn-cotizar:hover {
  transform: none;
  box-shadow: none;
  background: var(--gold-dark);
}

/* -- Formulario de contacto: panel plano en vez de card flotante -- */
.contenedor-formulario {
  box-shadow: none;
  border-radius: 2px;
  border: 1px solid var(--gray-200);
}
.grupo-input input,
.grupo-input textarea,
.grupo-input select {
  border-radius: 2px;
  box-shadow: none;
}
.grupo-input input:focus,
.grupo-input textarea:focus,
.grupo-input select:focus {
  box-shadow: none;
  border-color: var(--gold);
}

/* -- Navegación: pastilla activa más discreta, esquina recta -- */
nav a,
nav a::before {
  border-radius: 2px;
}

/* -- Media wrapper de tarjetas: quitar difuminado blanco inferior (se veía "plantilla stock") -- */
.media-wrapper::after {
  display: none;
}
