:root {
  --cyan: #29C4E8;
  --cyan-dark: #1a9bbf;
  --cyan-glow: rgba(41,196,232,0.15);
  --dark: #0a0c0e;
  --dark-2: #111518;
  --dark-3: #181d21;
  --dark-4: #1e252b;
  --steel: #8a9ba8;
  --steel-light: #b0bec5;
  --white: #f0f4f6;
  --text: #c8d6de;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(10,12,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(41,196,232,0.1);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--steel-light);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-links a.active { color: var(--cyan); }

.nav-cta {
  background: var(--cyan);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--cyan-dark) !important; color: var(--dark) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all 0.3s;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 5% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--steel);
}

.breadcrumb a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb span.sep { color: rgba(41,196,232,0.3); }

.breadcrumb span.current { color: var(--cyan); }

/* ── PAGE HERO (páginas internas) ── */
.page-hero {
  padding: 24px 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero .section-tag { margin-bottom: 0.8rem; }

.page-hero h1.section-title {
  margin-bottom: 1rem;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 5% 40px;
  background:
    linear-gradient(to right, rgba(10,12,14,0.92) 0%, rgba(10,12,14,0.75) 55%, rgba(10,12,14,0.40) 100%),
    url('../img/hero-bg.jpg') center 30% / cover no-repeat;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41,196,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,196,232,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 100px 5% 50px;
  min-height: 100svh;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(41,196,232,0.1);
  border: 1px solid rgba(41,196,232,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.7);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--cyan);
  display: block;
}

.hero-sub {
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--steel-light);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--dark);
  padding: 14px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41,196,232,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--cyan);
  padding: 14px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(41,196,232,0.4);
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(41,196,232,0.1);
}

.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--cyan);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── MARQUEE ── */
.marquee-wrapper {
  background: var(--dark-2);
  border-top: 1px solid rgba(41,196,232,0.1);
  border-bottom: 1px solid rgba(41,196,232,0.1);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}

.marquee-item::after {
  content: '·';
  color: var(--cyan);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTIONS GENERAL ── */
section { padding: 100px 5%; position: relative; }

/* Corte diagonal entre secciones — rompe la monotonía de bloques apilados */
section.cut-top {
  clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  margin-top: -24px;
}

@media (max-width: 700px) {
  section.cut-top { clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%); margin-top: -12px; }
}

/* Textura sutil tipo chapa/blueprint, no un gradiente genérico de stock */
.texture-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41,196,232,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,196,232,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

section > *:not(.texture-grid) { position: relative; z-index: 1; }

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--steel-light);
  line-height: 1.7;
  max-width: 560px;
}

/* ── SECTION PREVIEW (home) ── */
.section-preview {
  max-width: 1200px;
  margin: 0 auto;
}

.section-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: gap 0.2s;
}

.section-preview-link:hover { gap: 12px; }

/* ── NOSOTROS ── */
#nosotros {
  background: var(--dark-2);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nosotros-visual {
  position: relative;
}

.nosotros-box {
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.15);
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.nosotros-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.nosotros-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.nosotros-quote {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.nosotros-quote span { color: var(--cyan); }

.nosotros-desc {
  color: var(--steel-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.nosotros-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.nosotros-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nosotros-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--cyan-glow);
  border: 1px solid rgba(41,196,232,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1rem;
}

.nosotros-feature-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.nosotros-feature-text span {
  font-size: 0.85rem;
  color: var(--steel);
}

/* ── PRODUCTOS ── */
#productos {
  background: var(--dark);
  padding: 100px 5%;
}

.productos-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.prod-item {
  background: var(--dark-2);
  border: 1px solid rgba(41,196,232,0.1);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.prod-item:hover {
  border-color: rgba(41,196,232,0.3);
}

.prod-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.prod-item-icon { font-size: 1.4rem; }

.prod-item-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prod-item-desc {
  font-size: 0.85rem;
  color: var(--steel-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.prod-item-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prod-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(41,196,232,0.08);
}

.prod-thumb:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.prod-thumb-full {
  grid-column: 1 / -1;
  height: 140px;
}

/* Lupa en imágenes de productos */
.prod-thumb-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 3px;
  cursor: zoom-in;
}

.prod-thumb-container .lupa {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.prod-thumb-container:hover .lupa {
  opacity: 1;
  background: rgba(0,0,0,0.3);
}

.prod-thumb-container .lupa svg {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
}

@media (max-width: 700px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-thumb { height: 120px; }
}

/* ── SERVICIOS ── */
#servicios {
  background: var(--dark-3);
}

.servicios-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.servicios-header {
  margin-bottom: 4rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.servicio-card {
  background: var(--dark-4);
  border: 1px solid rgba(41,196,232,0.1);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.servicio-card:hover {
  border-color: rgba(41,196,232,0.35);
  transform: translateY(-3px);
}

.servicio-card.featured {
  border-color: rgba(41,196,232,0.3);
  background: linear-gradient(135deg, var(--dark-4), rgba(41,196,232,0.03));
}

.servicio-card.featured::before {
  content: 'SERVICIO DESTACADO';
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  background: rgba(41,196,232,0.1);
  padding: 3px 8px;
  border-radius: 2px;
}

.servicio-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(41,196,232,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.servicio-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.servicio-desc {
  font-size: 0.9rem;
  color: var(--steel-light);
  line-height: 1.7;
}

/* ── MEDIA THUMBS ── */
.media-thumb-wrap {
  position: relative;
  margin-top: 1.2rem;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  width: 100%;
}

.media-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  transition: opacity 0.2s;
}

.media-thumb-wrap:hover .media-thumb {
  opacity: 0.75;
}

.media-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}

.media-thumb-wrap:hover .media-play-icon {
  background: rgba(41,196,232,0.35);
  color: var(--cyan);
}

.media-play-icon svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
  width: 36px;
  height: 36px;
}

/* Lightbox media */
#media-lightbox {
  display: none;
}
#media-lightbox.open {
  display: flex !important;
}

/* ── RUBROS ── */
#rubros {
  background: var(--dark-2);
}

.rubros-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.rubros-header {
  text-align: center;
  margin-bottom: 4rem;
}

.rubros-header .section-sub {
  margin: 0 auto;
}

.rubros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.rubro-item {
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.08);
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: default;
  overflow: hidden;
  position: relative;
}

.rubro-item:hover {
  border-color: rgba(41,196,232,0.3);
  transform: translateY(-3px);
}

/* Tarjeta sin foto (fallback) */
.rubro-item:not(:has(.rubro-img-wrap)) {
  padding: 1.8rem 1.5rem;
}

.rubro-item:hover:not(:has(.rubro-img-wrap)) {
  background: var(--dark-4);
}

.rubro-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.rubro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: saturate(0.85) brightness(0.85);
}

.rubro-item:hover .rubro-img-wrap img {
  transform: scale(1.08);
  filter: saturate(1) brightness(0.95);
}

.rubro-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,14,0.85) 0%, rgba(10,12,14,0.1) 55%, transparent 100%);
}

.rubro-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.rubro-item:hover .rubro-emoji {
  transform: scale(1.15) rotate(-4deg);
}

.rubro-img-wrap + .rubro-emoji {
  position: absolute;
  z-index: 2;
  margin: 0;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.3);
  border-radius: 50%;
  font-size: 1.1rem;
}

.rubro-item:hover .rubro-img-wrap + .rubro-emoji {
  transform: translateX(-50%) scale(1.15) rotate(-4deg);
}

.rubro-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rubro-img-wrap ~ .rubro-name {
  position: relative;
  z-index: 2;
  display: block;
  padding: 1.6rem 0.8rem 1.2rem;
}

/* ── CONTACTO ── */
#contacto {
  background: var(--dark);
}

.contacto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contacto-info {
  padding-top: 1rem;
}

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.contacto-item-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-glow);
  border: 1px solid rgba(41,196,232,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.contacto-item-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contacto-item-text a,
.contacto-item-text span {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contacto-item-text a:hover { color: var(--cyan); }

.contacto-map-wrap {
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(41,196,232,0.15);
  aspect-ratio: 16 / 10;
}

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

.contacto-form {
  background: var(--dark-2);
  border: 1px solid rgba(41,196,232,0.1);
  border-radius: 4px;
  padding: 2.5rem;
}

.form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.12);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(41,196,232,0.5);
}

.form-textarea {
  height: 110px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: var(--cyan);
  color: var(--dark);
  border: none;
  padding: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(41,196,232,0.1);
  padding: 3rem 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--cyan);
  color: var(--dark);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--steel);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--steel);
}

.footer-copy a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--cyan); }

/* ── WHATSAPP FAB ── */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-in 0.5s 1s both;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

@keyframes fab-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 200;
  width: 48px;
  height: 48px;
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s, background 0.2s, opacity 0.25s, visibility 0.25s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

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

.back-to-top:hover {
  background: var(--cyan);
  color: var(--dark);
  transform: translateY(-3px);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* MÉTRICAS RESPONSIVE */
.metricas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metrica-card {
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.12);
  border-radius: 4px;
  padding: 2rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metrica-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.metrica-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--cyan);
  line-height: 1;
}

.metrica-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.metrica-sub {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* CLIENTES RESPONSIVE */
.clientes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ── CAROUSEL ── */
.carousel-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  background: var(--dark-2);
  border: 1px solid rgba(41,196,232,0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.carousel-card:hover {
  border-color: rgba(41,196,232,0.35);
}

.carousel-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0d12;
}

.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
}

.carousel-card:hover .carousel-img-wrap img {
  transform: scale(1.03);
}

.carousel-label {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}

.carousel-city {
  font-size: 1rem;
  color: var(--steel);
  margin-top: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,12,14,0.85);
  border: 1px solid rgba(41,196,232,0.3);
  color: var(--cyan);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--cyan);
  color: var(--dark);
  border-color: var(--cyan);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.carousel-dot.active {
  background: var(--cyan);
  transform: scale(1.3);
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--dark-3);
  border: 1px solid rgba(41,196,232,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.3rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-question .faq-icon {
  color: var(--cyan);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.6rem;
  color: var(--steel-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.6rem 1.5rem;
}

/* ── MOBILE ── */
@media (max-width: 560px) {
  #hero {
    padding: 0;
  }
  .hero-content {
    padding: 10px 5% 20px !important;
  }
  .hero-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }
  .hero-title span {
    display: block;
  }
  .hero-sub {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.7rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
  .hero-stats {
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    margin-top: 0.5rem !important;
    padding-top: 0.8rem !important;
  }
  .hero-stat-num {
    font-size: 1.1rem !important;
  }
  .hero-stat-label {
    font-size: 0.6rem !important;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--dark-2);
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(41,196,232,0.1);
    gap: 1.2rem;
  }
  .nav-hamburger { display: flex; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { gap: 2rem; flex-wrap: nowrap; }
  .hero-stat-num { font-size: 1.4rem; }
  .productos-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .metricas-grid { grid-template-columns: 1fr 1fr; }
  .clientes-grid { grid-template-columns: 1fr; max-width: 400px; }
  .carousel-card { display: block; }
  .carousel-img-wrap { aspect-ratio: 1 / 1; }
  .carousel-img-wrap img { object-position: center top; }
  .carousel-label { padding: 1.2rem; text-align: center; }
  .carousel-name { font-size: 1.5rem; letter-spacing: 1.5px; }
  .carousel-city { font-size: 0.85rem; margin-top: 0.4rem; }
}

@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-features { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .metricas-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .breadcrumb { padding-top: 76px; }
}

/* ── SAFARI iOS FIXES ── */
#navbar {
  padding-left: max(5%, env(safe-area-inset-left));
  padding-right: max(5%, env(safe-area-inset-right));
}

.wa-fab {
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  right: max(28px, env(safe-area-inset-right));
}

.back-to-top {
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  left: max(28px, env(safe-area-inset-left));
}

@supports not (backdrop-filter: blur(12px)) {
  #navbar {
    background: rgba(10,12,14,0.97) !important;
  }
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

.hero-title, .section-title, .nav-brand {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.carousel-card,
.reveal,
#carousel-track {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

html {
  -webkit-overflow-scrolling: touch;
}
