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

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* HSL Color Palette - Cinematic Industrial (Dark theme with Amber/Orange/Neon accents) */
  --bg-base-h: 220;
  --bg-base-s: 18%;
  --bg-base-l: 6%;
  --bg-base: hsl(var(--bg-base-h), var(--bg-base-s), var(--bg-base-l));
  /* #0b0c10-ish */

  --bg-surface-h: 220;
  --bg-surface-s: 15%;
  --bg-surface-l: 11%;
  --bg-surface: hsl(var(--bg-surface-h), var(--bg-surface-s), var(--bg-surface-l));
  /* #151821 */
  --bg-surface-hover: hsl(var(--bg-surface-h), var(--bg-surface-s), 15%);

  --accent-amber-h: 42;
  --accent-amber-s: 100%;
  --accent-amber-l: 50%;
  --accent-amber: hsl(var(--accent-amber-h), var(--accent-amber-s), var(--accent-amber-l));
  /* #ffb800 - Industrial Gold */

  --accent-orange-h: 18;
  --accent-orange-s: 100%;
  --accent-orange-l: 50%;
  --accent-orange: hsl(var(--accent-orange-h), var(--accent-orange-s), var(--accent-orange-l));
  /* #ff4d00 - Safety Orange */

  --accent-red-h: 0;
  --accent-red-s: 85%;
  --accent-red-l: 55%;
  --accent-red: hsl(var(--accent-red-h), var(--accent-red-s), var(--accent-red-l));
  /* Google Maps Red */

  --accent-green-h: 142;
  --accent-green-s: 70%;
  --accent-green-l: 45%;
  --accent-green: hsl(var(--accent-green-h), var(--accent-green-s), var(--accent-green-l));
  /* WhatsApp Green */

  --text-primary-h: 0;
  --text-primary-s: 0%;
  --text-primary-l: 96%;
  --text-primary: hsl(var(--text-primary-h), var(--text-primary-s), var(--text-primary-l));

  --text-secondary-h: 220;
  --text-secondary-s: 10%;
  --text-secondary-l: 70%;
  --text-secondary: hsl(var(--text-secondary-h), var(--text-secondary-s), var(--text-secondary-l));

  --glow-amber: 0 0 15px hsla(var(--accent-amber-h), var(--accent-amber-s), var(--accent-amber-l), 0.35);
  --glow-orange: 0 0 15px hsla(var(--accent-orange-h), var(--accent-orange-s), var(--accent-orange-l), 0.35);
  --glow-green: 0 0 15px hsla(var(--accent-green-h), var(--accent-green-s), var(--accent-green-l), 0.4);

  /* Fonts */
  --font-display: 'Syncopate', sans-serif;
  --font-sans: 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border: 2px solid var(--bg-base);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

/* Industrial Background Grid & Lighting */
.grid-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.radial-glow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, hsla(var(--accent-amber-h), var(--accent-amber-s), var(--accent-amber-l), 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, hsla(var(--accent-orange-h), var(--accent-orange-s), var(--accent-orange-l), 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  font-family: var(--font-sans);
}

/* Button & Links micro-interactions */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-medium);
}

.btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(var(--accent-amber), var(--accent-amber)) padding-box,
    linear-gradient(135deg, var(--accent-amber), var(--accent-orange)) border-box;
  color: hsl(220, 30%, 5%);
  box-shadow: var(--glow-amber);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: 0.75s ease-in-out;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px hsla(var(--accent-amber-h), var(--accent-amber-s), var(--accent-amber-l), 0.6);
  color: #000;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  box-shadow: var(--glow-orange);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-medium);
}

.header-scrolled {
  background: rgba(11, 12, 16, 0.95);
  border-bottom: 1px solid rgba(255, 184, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-orange);
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-amber);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  transition: var(--transition-medium);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 18px;
}

/* Menu responsive active state toggle styles in mobile width */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 80px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 2px;
  background-color: var(--accent-amber);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title mark {
  background: none;
  color: inherit;
  display: block;
  font-size: 0.85em;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta-title {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1.15rem;
  max-width: 550px;
}

.hero-specs-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 15px;
  display: flex;
  gap: 20px;
  max-width: 480px;
  margin-top: 10px;
}

.hero-spec-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-spec-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.hero-spec-value {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

/* Visor Industrial Multiuso (Hero Graphic Placeholder) */
.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1.1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(11, 12, 16, 0.8) 100%);
  z-index: 1;
}

.hero-media-scanner {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  top: 0;
  left: 0;
  opacity: 0.5;
  animation: scanning 4s linear infinite;
  z-index: 2;
}

.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--accent-amber);
  opacity: 0.6;
}

.hud-top {
  display: flex;
  justify-content: space-between;
}

.hud-bottom {
  display: flex;
  justify-content: space-between;
}

.hud-corner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent-amber);
  position: absolute;
}

.hud-tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.hud-tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.hud-bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.hud-br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.hero-graphic-svg {
  width: 60%;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 30px hsla(var(--accent-amber-h), var(--accent-amber-s), var(--accent-amber-l), 0.3));
  animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   CATALOGO DE PRODUCTOS (Grid)
   ========================================================================== */
.section-padding {
  padding: 100px 40px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-subtitle {
  color: var(--accent-amber);
  font-size: 0.85rem;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-primary);
}

.grid-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Product Card Premium Styles */
.card-product {
  position: relative;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-medium);
  overflow: hidden;
}

.card-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-medium);
  z-index: 0;
}

.card-product-img {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card-product-img svg {
  width: 130px;
  height: 130px;
  transition: var(--transition-slow);
}

.card-product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.product-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--accent-orange);
  letter-spacing: 1px;
}

.product-name {
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.spec-label {
  color: var(--text-secondary);
}

.spec-val {
  font-weight: 500;
  color: var(--text-primary);
}

.card-product-actions {
  margin-top: auto;
  z-index: 1;
}

.btn-card-quote {
  width: 100%;
  border: 1px solid rgba(255, 184, 0, 0.3);
  background: transparent;
  color: var(--accent-amber);
  padding: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-card-quote:hover {
  background: var(--accent-amber);
  color: hsl(220, 30%, 5%);
  box-shadow: var(--glow-amber);
  transform: translateY(-2px);
}

/* Hover States for Card */
.card-product:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 184, 0, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-product:hover::before {
  opacity: 1;
}

.card-product:hover .card-product-img svg {
  transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   METRICAS DE RENDIMIENTO
   ========================================================================== */
.stats-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(21, 24, 33, 0.5) 50%, var(--bg-base) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
}

.card-stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transition: var(--transition-medium);
}

.card-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 77, 0, 0.2);
}

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

.stat-icon {
  width: 45px;
  height: 45px;
  fill: var(--accent-orange);
  margin-bottom: 10px;
  opacity: 0.8;
  filter: drop-shadow(0 0 5px rgba(255, 77, 0, 0.2));
}

.stat-number {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  color: var(--accent-orange);
  font-size: 1.8rem;
  margin-left: 2px;
}

.stat-desc {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CALCULADORA DE CONECTORES (Feature Extra)
   ========================================================================== */
.calc-section {
  position: relative;
}

.calc-section-bg {
  background: rgba(0,0,0,0.2);
}

.calc-desc {
  margin-bottom: 25px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.calc-card-container {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.calc-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  border-radius: 12px 12px 0 0;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px 15px;
  min-height: 48px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

select.calc-input {
  padding-right: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.calc-input:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.15);
}

.calc-input.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

.calc-error-msg {
  color: var(--accent-red);
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.calc-error-msg.visible {
  display: block;
}

.calc-unit {
  position: absolute;
  right: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calc-results {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.calc-res-title {
  font-size: 1.1rem;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.calc-res-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-res-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.calc-res-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.res-value-accent {
  color: var(--accent-orange);
  font-size: 1.4rem;
}

.res-item-highlight {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 5px;
}

.res-label-bold {
  font-weight: 600;
}

.calc-disclaimer {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  text-align: center;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WhatsApp / Location)
   ========================================================================== */
.floating-container-right {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
}

.floating-container-left {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 90;
}

.btn-float {
  display: flex;
  align-items: center;
  height: 55px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
}

.btn-float-icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition-medium);
}

.btn-float-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.btn-float-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* WhatsApp Floating Config */
.btn-whatsapp {
  background: var(--accent-green);
}

.btn-whatsapp .btn-float-icon {
  background: var(--accent-green);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  box-shadow: var(--glow-green);
  transform: scale(1.05);
}

.btn-whatsapp:hover .btn-float-text,
.btn-whatsapp:focus .btn-float-text {
  max-width: 150px;
  opacity: 1;
  padding-right: 20px;
  padding-left: 5px;
}

/* Location Floating Config */
.btn-location {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-location .btn-float-icon {
  background: var(--bg-surface);
}

.btn-location .btn-float-icon svg {
  fill: var(--accent-red);
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
  animation: bounce 2s infinite;
}

.btn-location:hover {
  border-color: var(--accent-red);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
  transform: scale(1.05);
}

.btn-location:hover .btn-float-text {
  max-width: 150px;
  opacity: 1;
  padding-right: 20px;
  padding-left: 5px;
}

/* Pulsing effect under floats */
.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 2s infinite;
  z-index: -1;
}

.whatsapp-ring {
  box-shadow: 0 0 0 0 rgba(74, 201, 89, 0.7);
}

.location-ring {
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
}

textarea.calc-input {
  resize: none;
}

/* ==========================================================================
   MODALES INTERACTIVOS (Maps / Cotizador)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-orange);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

/* Simulated Cyberpunk Map */
.simulated-map {
  width: 100%;
  height: 350px;
  background: #0d1117;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.map-grid-pattern {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotate(15deg);
}

.map-route-line {
  position: absolute;
  stroke: var(--accent-amber);
  stroke-dasharray: 8;
  animation: routeDash 15s linear infinite;
}

.map-route-svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.map-pin {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 5;
}

.map-pin-icon {
  width: 40px;
  height: 40px;
  fill: var(--accent-red);
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
  animation: float 2.5s ease-in-out infinite;
}

.map-pin-pulse {
  width: 16px;
  height: 8px;
  background: rgba(255, 0, 0, 0.3);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  animation: mapPulse 2s infinite;
}

.map-info-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 12, 16, 0.9);
  border: 1px solid var(--accent-amber);
  box-shadow: var(--glow-amber);
  border-radius: 4px;
  padding: 15px;
  max-width: 320px;
  z-index: 6;
  font-family: var(--font-sans);
}

.map-info-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-amber);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.map-info-address {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.map-info-btn {
  display: inline-flex;
  font-size: 0.75rem;
  color: hsl(220, 30%, 5%);
  background: var(--accent-amber);
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.map-water-sim {
  position: absolute;
  background: rgba(26, 35, 46, 0.4);
  border-radius: 50%;
  z-index: 1;
}

.map-water-1 {
  width: 300px;
  height: 150px;
  top: 10%;
  right: -50px;
  transform: rotate(-30deg);
}

.map-water-2 {
  width: 400px;
  height: 100px;
  bottom: -20px;
  left: -100px;
  transform: rotate(10deg);
}

/* Quick Quote Form */
.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote-fullwidth {
  grid-column: span 2;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #07070a;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 80px 40px 30px 40px;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-logo span {
  color: var(--accent-orange);
}

.footer-desc {
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-amber);
}

.social-icon:hover svg {
  fill: var(--accent-amber);
  filter: drop-shadow(0 0 3px rgba(255, 184, 0, 0.4));
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-title {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--accent-amber);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  color: var(--text-secondary);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes scanning {
  0% {
    top: 0%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 201, 89, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(74, 201, 89, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 201, 89, 0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes mapPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px hsla(var(--accent-amber-h), var(--accent-amber-s), var(--accent-amber-l), 0.5);
}

/* ==========================================================================
   BACK TO TOP (Circular Progress)
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 89;
  width: 48px;
  height: 48px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  border-radius: 50%;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top circle {
  fill: none;
  stroke-width: 3;
}

.back-to-top .bg-circle {
  stroke: rgba(255, 255, 255, 0.08);
}

.back-to-top .progress-circle {
  stroke: var(--accent-amber);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top .arrow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: fill 0.2s;
}

.back-to-top:hover .arrow-icon {
  fill: var(--accent-amber);
}

/* ==========================================================================
   PARALLAX SECTIONS
   ========================================================================== */
.parallax-layer {
  will-change: transform;
  transition: transform 0.05s linear;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transition: none;
  }
}

/* ==========================================================================
   ENHANCED REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delay classes */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 14px 18px;
}

.faq-question {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 6px;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   CERTIFICACIONES / NORMAS
   ========================================================================== */
.grid-certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.card-cert {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition-medium);
}

.card-cert:hover {
  transform: translateY(-4px);
  border-color: var(--accent-amber);
  box-shadow: var(--glow-amber);
}

.card-cert-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-amber);
  opacity: 0.8;
}

.card-cert-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.card-cert-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta-title {
    align-self: center;
  }

  .hero-desc {
    max-width: 600px;
  }

  .hero-specs-pill {
    max-width: 100%;
  }

  .hero-media {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1.2 / 1;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* Ocultar boton CTA en movil (espacio limitado en navbar) */
  #btn-header-cta {
    display: none !important;
  }

  /* ── MENÚ MÓVIL OVERLAY ── */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: rgba(7, 8, 12, 0.99);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 60px 40px;
    gap: 0;
    border-bottom: none;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
  }

  /* Separadores entre links del menú */
  .nav-links>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
  }

  .nav-links>li:last-child {
    border-bottom: none;
    padding-top: 20px;
  }

  .nav-links a {
    display: block;
    font-size: 1.3rem;
    letter-spacing: 2px;
    padding: 18px 0;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    color: var(--text-primary);
    padding-left: 8px;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 100;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  .nav-container {
    padding: 14px 20px;
  }

  /* ── SECCIONES ── */
  .section-padding {
    padding: 60px 20px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
    min-height: unset;
  }

  /* ── FORMULARIOS ── */
  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-fullwidth {
    grid-column: span 1;
  }

  .calc-card-container {
    padding: 20px;
  }

  .calc-results {
    padding: 20px;
  }

  .calc-res-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .calc-res-value {
    font-size: 1.2rem;
  }

  /* ── FOOTER ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer {
    padding: 60px 20px 100px 20px;
  }

.footer-map-link {
  text-decoration: underline;
  color: var(--accent-orange);
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* ── FLOATING BUTTONS ── */
  .floating-container-right {
    bottom: 20px;
    right: 16px;
  }

  .floating-container-left {
    bottom: 20px;
    left: 16px;
  }

  /* ── CARDS PRODUCTO ── */
  .card-product {
    padding: 20px;
  }

  .spec-line {
    flex-direction: column;
    gap: 2px;
  }

  /* ── STATS ── */
  .card-stat {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .floating-container-right {
    bottom: 20px;
    right: 14px;
  }

  .floating-container-left {
    bottom: 20px;
    left: 14px;
  }

  /* En movil touch, el texto del FAB no se expande por hover */
  .btn-float-text {
    display: none;
  }

  /* Reducir tamaño de botones flotantes en pantallas muy chicas */
  .btn-float,
  .btn-float-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
  }

  .btn-float-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Catalogo en 1 columna perfecta */
  .grid-catalog {
    grid-template-columns: 1fr;
  }

  /* Specs pill en columna */
  .hero-specs-pill {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-spec-item {
    flex: 1;
    min-width: 80px;
  }

  /* Modal full screen en movil */
  .modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    margin: 0;
    max-height: 92vh;
  }
}

/* ==========================================================================
   GALERÍA DE TRABAJOS REALIZADOS
   ========================================================================== */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-medium);
}

.gallery-item-tall {
  grid-row: span 2;
  height: 100%;
}

.gallery-img-wrapper {
  width: 100%;
  height: 100%;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.4) 60%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition-medium);
}

.gallery-item-title {
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
}

.gallery-item-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent-amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Touch / pointer-coarse: overlay siempre visible */
@media (hover: none) {
  .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Desktop con puntero: overlay oculto hasta hover */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: var(--glow-orange);
  }

  .gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(0.8);
  }

  .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   LIGHTBOX DE GALERÍA (Visualizador Integrado)
   ========================================================================== */
.lightbox-card {
  max-width: 900px;
}

.lightbox-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-img-holder {
  max-width: 90%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-holder img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-arrow:hover {
  background: var(--accent-orange);
  color: #000;
  box-shadow: var(--glow-orange);
  border-color: var(--accent-orange);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-info {
  width: 100%;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 6px;
}

.lightbox-info-title {
  font-size: 1.1rem;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.lightbox-info-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Adaptación responsive */
@media (max-width: 768px) {
  .grid-gallery {
    grid-auto-rows: 200px;
  }

  .gallery-item-tall {
    grid-row: span 1;
    height: 100%;
  }

  .lightbox-container {
    height: 300px;
  }

  .lightbox-img-holder img {
    max-height: 280px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA MÓVIL / ANDROID
   ========================================================================== */

/* Botón CTA oculto en menú de escritorio, visible solo en menu móvil */
.nav-cta-mobile {
  display: none;
}

.nav-cta-btn {
  display: inline-flex;
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 15px 24px;
  border-radius: 4px;
  letter-spacing: 2px;
}

/* En móvil, mostrar el CTA en el menú desplegable */
@media (max-width: 768px) {
  .nav-cta-mobile {
    display: block;
    padding-top: 0 !important;
    border-bottom: none !important;
    margin-top: 16px;
  }
}

/* Mejorar el lightbox en pantallas pequeñas */
@media (max-width: 600px) {
  .lightbox-card {
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
  }

  .modal-overlay {
    align-items: flex-end;
  }

  .modal-overlay .lightbox-card {
    max-height: 95vh;
  }

  .lightbox-container {
    height: 240px;
  }

  .lightbox-img-holder img {
    max-height: 220px;
  }

  .lightbox-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* Soporte de Safe Area para notch/punchhole en Android e iPhone */
@supports (padding: max(0px)) {
  .floating-container-right {
    bottom: max(30px, env(safe-area-inset-bottom));
    right: max(30px, env(safe-area-inset-right));
  }

  .floating-container-left {
    bottom: max(30px, env(safe-area-inset-bottom));
    left: max(30px, env(safe-area-inset-left));
  }

  .header {
    padding-top: env(safe-area-inset-top);
  }
}

/* ── MEJORAS MÓVIL GENERALES ── */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.9rem, 9vw, 3rem);
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero-tagline {
    justify-content: center;
  }

  .hero-desc {
    font-size: 1rem;
    text-align: center;
  }

  /* Ocultar hero-media en móviles para priorizar el contenido */
  .hero-media {
    display: none;
  }

  /* Sección Hero más compacta en móvil */
  .hero {
    padding-top: 110px;
    padding-bottom: 50px;
    gap: 28px;
    grid-template-columns: 1fr;
    text-align: center;
    min-height: unset;
  }

  .hero-content {
    align-items: center;
  }

  .hero-specs-pill {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
  }

  .hero-spec-item {
    min-width: 80px;
    align-items: center;
    text-align: center;
  }

  /* Galería en 2 columnas en tablet, 1 en móvil */
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
  }

  /* Estadísticas en 2 columnas en tablet */
  .grid-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mapa simulado */
  .simulated-map {
    height: 250px;
  }

  .map-info-panel {
    max-width: 90%;
    bottom: 10px;
    left: 10px;
    padding: 10px;
  }

  /* Formulario de cotización en 1 columna */
  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-fullwidth {
    grid-column: span 1;
  }

  /* Catalogo - 1 columna en móvil */
  .grid-catalog {
    grid-template-columns: 1fr;
  }

  /* Calculadora layout */
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Section header centered */
  .section-header {
    margin-bottom: 36px;
  }

  .section-subtitle {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .grid-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item-tall {
    grid-row: span 1;
  }

  .grid-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

/* Tap highlight personalizado (elimina el gris por defecto en Android) */
* {
  -webkit-tap-highlight-color: rgba(255, 184, 0, 0.15);
}

/* Mejorar rendimiento de animaciones en dispositivos móviles */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   AVISO DE PRIVACIDAD (GDPR / Privacidad)
   ========================================================================== */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(14, 18, 24, 0.97);
  border-top: 1px solid rgba(255, 184, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.privacy-banner.hidden {
  transform: translateY(100%);
}

.privacy-banner-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  flex: 1;
  min-width: 220px;
}

.privacy-banner-text a {
  color: var(--accent-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-banner-text a:hover {
  color: var(--accent-orange);
}

.privacy-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-privacy-accept {
  background: var(--accent-amber);
  border: none;
  color: var(--bg-dark-primary);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-privacy-accept:hover {
  background: var(--accent-orange);
  transform: scale(1.03);
}

.btn-privacy-more {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-privacy-more:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* Privacy Policy link in footer */
.footer-privacy-link {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-privacy-link:hover {
  color: var(--accent-amber);
}

/* Privacy Modal - reuses existing modal classes, just custom content */
.privacy-content {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.privacy-content::-webkit-scrollbar {
  width: 4px;
}

.privacy-content::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-content::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, 0.3);
  border-radius: 2px;
}

.privacy-content h3 {
  color: var(--accent-amber);
  font-size: 1rem;
  margin: 18px 0 8px;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.privacy-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.privacy-content ul li {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.privacy-content ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-amber);
}

@media screen and (max-width: 480px) {
  .privacy-banner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}