/* ========== VARIABLES ========== */
:root {
  --black: #000000;
  --deep: #0a0a0a;
  --card: #111111;
  --border: #1e1e1e;
  --orange: #e07b00;
  --orange-bright: #ff8c00;
  --red: #ff4500;
  --steel: #b0bec5;
  --steel-dark: #607d8b;
  --white: #f0f0f0;
  --muted: #888;
  --font-display: 'Orbitron', monospace;
  --font-body: 'Exo 2', sans-serif;
  --glow: 0 0 20px rgba(224,123,0,0.4);
  --glow-red: 0 0 16px rgba(255,69,0,0.5);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #000; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

nav.scrolled { border-color: var(--orange); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo svg,
.nav-logo .logo-img {
  width: 38px;
  height: 38px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}

.nav-brand span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--orange); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--orange);
  color: #000 !important;
  padding: 0.4rem 1.1rem;
  border-radius: 2px;
  font-weight: 700 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--orange-bright) !important;
  box-shadow: var(--glow) !important;
  color: #000 !important;
}

.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO (INDEX) ========== */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 2rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(224,123,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255,69,0,0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.015) 39px,
      rgba(255,255,255,0.015) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.015) 39px,
      rgba(255,255,255,0.015) 40px
    );
}



.hero-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { animation: fadeUp 0.8s ease both; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-badge::before {
  content: '';
  position: absolute;
  left: -4px; top: -4px;
  width: 6px; height: 6px;
  border-left: 2px solid var(--orange);
  border-top: 2px solid var(--orange);
}

.hero-badge::after {
  content: '';
  position: absolute;
  right: -4px; bottom: -4px;
  width: 6px; height: 6px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

h1 .brand-main { color: var(--orange); display: block; }
h1 .brand-sub { color: var(--steel); font-size: 0.55em; letter-spacing: 0.25em; font-weight: 400; display: block; }

.hero-desc {
  margin: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 440px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #000;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--orange-bright);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--steel);
  padding: 0.75rem 1.8rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--steel-dark);
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-outline:hover {
  border-color: var(--steel);
  color: var(--white);
  box-shadow: 0 0 16px rgba(176,190,197,0.2);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-logo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(224,123,0,0.15);
  animation: rotateRing 12s linear infinite;
}

.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed rgba(224,123,0,0.08);
  animation: rotateRing 20s linear infinite reverse;
}

.logo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(224,123,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(224,123,0,0.3));
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ========== SECTIONS SHARED ========== */
section { padding: 6rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  margin: 0 auto;
  position: relative;
}

.section-line::after {
  content: '';
  position: absolute;
  right: -8px; top: -2px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--orange);
  border-top: 2px solid var(--orange);
  transform: rotate(45deg);
}

/* ========== SERVICIOS ========== */
#servicios { 
  background: var(--deep); 
  width: 100%;
  padding: 6rem clamp(1.2rem, 3.5vw, 4rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 680px) and (max-width: 1099px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--orange), var(--red));
  transition: height 0.4s;
}

.service-card:hover { 
  border-color: rgba(224,123,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow);
}

.service-card:hover::before { height: 100%; }

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  color: var(--orange);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--white);
  line-height: 1.45;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 0.95rem;
}

/* Contenido expandible con animación fluida */
.service-card-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.service-card-more-inner {
  overflow: hidden;
}

.service-card.expanded .service-card-more {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

/* Botón Glassmorphism Ver Más */
.btn-card-expand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0.3rem 0 1.25rem 0;
  align-self: flex-start;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-card-expand:hover {
  background: rgba(224, 123, 0, 0.16);
  border-color: rgba(224, 123, 0, 0.45);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224, 123, 0, 0.22);
}

.btn-card-expand .btn-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
}

.service-card.expanded .btn-card-expand .btn-arrow {
  transform: rotate(180deg);
}

.service-card.expanded .btn-card-expand {
  background: rgba(224, 123, 0, 0.12);
  border-color: rgba(224, 123, 0, 0.35);
  color: var(--orange);
}

.service-tag {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--orange);
  border: 1px solid rgba(224,123,0,0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* ========== NOSOTROS ========== */
#nosotros {
  background: var(--black);
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
}

.about-card-main::before {
  content: 'JEMCOTECH';
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(224,123,0,0.2);
}

.about-circuit {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px;
  height: 100px;
  opacity: 0.3;
}

.about-text h2 { text-align: left; margin-bottom: 1.5rem; }

.about-text .section-tag { text-align: left; }

.about-text .section-line { margin: 0 0 2rem; }

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text p strong { color: var(--orange); font-weight: 600; }

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.value-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  margin-top: 6px;
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.value-item span {
  font-size: 0.85rem;
  color: var(--steel);
}

/* ========== CÓMO LLEGAR ========== */
#llegar {
  background: var(--deep);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.location-info h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.location-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.location-icon {
  width: 40px;
  height: 40px;
  background: rgba(224,123,0,0.1);
  border: 1px solid rgba(224,123,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.location-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.location-item-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.map-wrap {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  height: 420px;
}

@media (max-width: 768px) {
  .map-wrap {
    display: none;
  }
}

.map-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--orange), transparent, var(--red)) border-box;
  z-index: 1;
  pointer-events: none;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
}

/* ========== CONTACTO ========== */
#contacto {
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: var(--glow);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--steel-dark);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,136,136,0.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(224,123,0,0.15);
}

.form-group select { appearance: none; cursor: pointer; }

.form-group select option { background: var(--card); }

.form-success {
  display: none;
  background: rgba(224,123,0,0.1);
  border: 1px solid var(--orange);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* ========== FOOTER ========== */
footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand svg,
.footer-brand .logo-footer {
  width: 36px;
  height: 36px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-name span { color: var(--orange); }

.footer-col p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(136,136,136,0.6);
}

.footer-copy span { color: var(--orange); }

/* ========== FLOATING WHATSAPP (GPU-Composited Animation) ========== */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: pulse-wa-composite 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

.whatsapp-btn:hover::before {
  animation: none;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  z-index: 2000;
  width: 0%;
  transition: width 0.1s;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}

@keyframes pulse-wa-composite {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */
footer {
  margin-top: auto;
  flex-shrink: 0;
  background: #080b0f;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-footer {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-copy {
  font-size: 0.88rem;
  color: #94a3b8; /* WCAG AAA 7.5:1 contrast against #080b0f */
  margin: 0;
  line-height: 1.5;
}

.footer-copy span {
  color: var(--orange);
  font-weight: 600;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex !important;
}

.lightbox-content {
  position: relative;
  max-width: min(94vw, 820px);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-container {
  width: 100%;
  max-width: 800px;
  max-height: 55vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--orange);
  transform: scale(1.15);
}

.lightbox-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  box-shadow: 0 0 16px rgba(224, 123, 0, 0.5);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
}

.lightbox-info-panel {
  width: 100%;
  max-width: 800px;
  background: rgba(13, 17, 23, 0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
  text-align: left;
}

.lightbox-info-panel h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.lightbox-info-panel p {
  font-size: 0.88rem;
  color: var(--steel);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.lightbox-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { width: 240px; height: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.97);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--orange);
  }

  .nav-links.open { display: flex; }
  
  .hamburger { display: flex; }
  
  .gallery-item { flex: 0 0 160px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav svg { width: 20px; height: 20px; }
}

@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  section { padding: 4rem 1rem; }
  .hero-inner { padding: 0 1rem; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  .btn-primary, .btn-outline { padding: 0.6rem 1.2rem; font-size: 0.7rem; }
  .gallery-item { flex: 0 0 140px; }
  .gallery-header { flex-wrap: wrap; }
  .gallery-header span { margin-left: 0; width: 100%; margin-top: 0.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== CONTROLLER SELECTOR BAR (MULTI-GAMEPAD) ========== */
.controller-selector-bar {
  position: initial;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(224, 123, 0, 0.35);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(224, 123, 0, 0.15);
  animation: fadeInSelector 0.3s ease;
}

@keyframes fadeInSelector {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ctrl-selector-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.selector-buttons {
  display: flex;
  gap: 0.35rem;
}

.ctrl-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--steel);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctrl-tab-btn:hover {
  background: rgba(224, 123, 0, 0.2);
  border-color: var(--orange);
  color: var(--white);
}

.ctrl-tab-btn.active {
  background: var(--orange);
  color: #000;
  font-weight: 900;
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(224, 123, 0, 0.6);
}

.ctrl-tab-tag {
  font-size: 0.6rem;
  opacity: 0.85;
}

/* ========== FAQ ACCORDION ========== */
.faq-section {
  background: var(--dark);
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(224, 123, 0, 0.4);
}

.faq-item[open] {
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(224, 123, 0, 0.12);
  background: linear-gradient(180deg, rgba(22,27,34,0.95), rgba(13,17,23,0.95));
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--orange);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  color: var(--steel);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--orange);
}

.faq-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.faq-content p {
  margin: 0;
}

/* ========== MODERN REPAIR GALLERY (MIS REPARACIONES) ========== */
.hero-reparaciones {
  padding: 5.2rem 2rem 1.4rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(224, 123, 0, 0.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  color: var(--orange);
  border: 1px solid rgba(224, 123, 0, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
  background: rgba(224, 123, 0, 0.08);
  letter-spacing: 1px;
}

.hero-reparaciones h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.6rem;
}

.hero-reparaciones p {
  color: var(--steel);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

.gallery-container-modern {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
}

/* Modern Cyberpunk Search Bar */
.gallery-search-wrap {
  max-width: 650px;
  margin: 0 auto 1.6rem;
  padding: 0 0.5rem;
}

.gallery-search-box {
  display: flex;
  align-items: center;
  background: rgba(22, 27, 34, 0.88);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 0.9rem 0.45rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.gallery-search-box:hover {
  border-color: rgba(224, 123, 0, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(224, 123, 0, 0.15);
}

.gallery-search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(224, 123, 0, 0.35);
  background: rgba(22, 27, 34, 0.96);
  transform: translateY(-1px);
}

.gallery-search-box .search-icon {
  color: var(--steel);
  flex-shrink: 0;
  margin-right: 0.75rem;
  transition: color 0.25s ease;
}

.gallery-search-box:focus-within .search-icon {
  color: var(--orange);
}

.repair-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  padding: 0.45rem 0;
  min-width: 0;
}

.repair-search-input::placeholder {
  color: rgba(139, 148, 158, 0.75);
  font-size: 0.88rem;
  transition: opacity 0.2s ease;
}

.repair-search-input:focus::placeholder {
  opacity: 0.45;
}

.search-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--steel);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: rgba(224, 123, 0, 0.25);
  border-color: var(--orange);
  color: var(--orange);
  transform: scale(1.08);
}

.search-status-bar {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--steel);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  animation: fadeIn 0.3s ease;
}

.search-status-bar strong {
  color: var(--orange);
}

.search-status-bar .search-query-tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Empty Search Results State */
.no-repairs-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--card);
  border: 1px dashed rgba(224, 123, 0, 0.35);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.35s ease;
}

.no-repairs-found .no-repairs-icon {
  font-size: 2.6rem;
  margin-bottom: 0.85rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(224, 123, 0, 0.4));
}

.no-repairs-found h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.no-repairs-found p {
  color: var(--steel);
  font-size: 0.92rem;
  max-width: 500px;
  margin: 0 auto 1.4rem;
  line-height: 1.5;
}

.btn-reset-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(224, 123, 0, 0.15);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-reset-search:hover {
  background: var(--orange);
  color: #000;
  box-shadow: 0 0 16px rgba(224, 123, 0, 0.45);
  transform: translateY(-2px);
}

.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--steel);
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-tab:hover {
  background: rgba(224, 123, 0, 0.15);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--orange);
  color: #000;
  font-weight: 700;
  border-color: var(--orange);
  box-shadow: 0 0 18px rgba(224, 123, 0, 0.45);
  transform: translateY(-2px);
}

.repairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.repair-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.repair-card.hidden {
  display: none !important;
}

.repair-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 20px rgba(224,123,0,0.22);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.repair-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.4rem;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px #000, 0 0 5px #000;
}

.card-badge.ps,
.card-badge.hall,
.card-badge.laptop,
.card-badge.micro {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.card-overlay-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.repair-card:hover .card-overlay-btn {
  opacity: 1;
  transform: translateY(0);
  background: var(--orange);
  color: #000;
}

.card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-body p {
  font-size: 0.86rem;
  color: var(--steel);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.card-footer-tag {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.card-footer-tag span {
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.gallery-cta-card {
  background: linear-gradient(135deg, rgba(22,27,34,0.95), rgba(13,17,23,0.95));
  border: 1px solid rgba(224,123,0,0.35);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.cta-badge {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.gallery-cta-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.gallery-cta-card p {
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

/* Badges for Switch & Xbox */
.card-badge.switch,
.card-badge.xbox {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Load More Repairs Button */
.gallery-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  width: 100%;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(224, 123, 0, 0.12);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(224, 123, 0, 0.15);
}

.btn-load-more:hover {
  background: var(--orange);
  color: #000000;
  box-shadow: 0 6px 24px rgba(224, 123, 0, 0.45);
  transform: translateY(-2px);
}

.btn-load-more svg {
  transition: transform 0.25s ease;
}

.btn-load-more:hover svg {
  transform: translateY(2px);
}
