* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: #f4f6fb;
  color: #111827;
}

.header,
header {
  width: 100%;
  background: rgba(3, 7, 18, 0.96);
  color: white;
  padding: 14px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.25); }

.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-weight: bold;
  opacity: .9;
}

nav a:hover { opacity: 1; color: #34d399; }

.hero {
  min-height: 620px;
  background: linear-gradient(120deg, rgba(3,7,18,.92), rgba(17,24,39,.72)), url("../img/banner.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 70px 8%;
}

.hero-content { max-width: 850px; }

.badge,
.tag {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero p {
  font-size: 20px;
  max-width: 720px;
  margin-bottom: 25px;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn,
button {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  display: inline-block;
  transition: 0.25s;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16,185,129,.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 720px;
}

.stats div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 16px;
}

.stats strong { font-size: 28px; display: block; }
.stats span { color: #d1d5db; font-size: 14px; }

.section { padding: 60px 8%; }
.section-dark { background: #030b18; color: white; }

.section h2 {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.center {
  text-align: center;
  margin: 0 auto 25px;
  max-width: 760px;
  color: #4b5563;
}

.section-dark .center { color: #d1d5db; }

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

.card {
  background: white;
  color: #111827;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
  transition: 0.25s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 10px; line-height: 1.5; }
.icon { font-size: 32px; display: inline-block; margin-bottom: 12px; }

.filters { text-align: center; margin-bottom: 26px; }
.filter-btn { background: #111827; border: 1px solid #374151; margin: 4px; padding: 12px 18px; }
.filter-btn.active { background: #10b981; border-color: #10b981; }

/* NUEVO DISEÑO DE EQUIPOS */
.equipos-lista {
  display: grid;
  gap: 30px;
}

.equipo-producto {
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.8);
}

.equipo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .8fr);
  gap: 34px;
  align-items: start;
}

.equipo-galeria {
  position: relative;
}

.imagen-principal-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef2f7, #ffffff);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.imagen-principal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  z-index: 5;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

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

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 12px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
}

.dot.active { background: #10b981; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.thumb {
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f1f5f9;
  cursor: pointer;
}

.thumb.active { border-color: #10b981; }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipo-info h3 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
}

.estado-linea {
  font-size: 20px;
  margin-bottom: 20px;
}

.estado-linea span { color: #10b981; }

.descripcion-box {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid #bbf7d0;
}

.descripcion-box strong {
  display: block;
  margin-bottom: 6px;
  color: #047857;
}

.detalles-equipo {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
}

.detalles-equipo li {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 9px;
}

.whatsapp-btn { background: #25d366; text-align: center; width: 100%; font-size: 18px; }

.beneficios-equipo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.beneficio {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.beneficio strong { display: block; margin-bottom: 4px; }
.beneficio span { color: #475569; font-size: 14px; }

form {
  max-width: 680px;
  margin: auto;
  background: white;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
}

input,
select,
textarea {
  width: 100%;
  padding: 13px;
  margin-bottom: 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

textarea { min-height: 110px; resize: vertical; }
.file-label { display: block; font-weight: bold; margin-bottom: 8px; }
small { display: block; margin: -6px 0 14px; color: #6b7280; }
#respuestaForm { text-align: center; margin-top: 12px; font-weight: bold; color: #059669; }

footer {
  background: #030712;
  color: white;
  text-align: center;
  padding: 25px;
}

.social { margin-top: 10px; }
.social a { color: #34d399; margin: 0 8px; text-decoration: none; font-weight: bold; }

.whatsapp-flotante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 999;
}

.promo {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 230px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  z-index: 998;
}

.promo button {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 4px 9px;
  border-radius: 50%;
  background: #ef4444;
}

.promo p { margin: 8px 0; }
.promo a { color: #059669; font-weight: bold; }
.stars { color: #f59e0b; font-size: 20px; margin-bottom: 10px; }
.eliminar { background: #dc2626; margin-top: 10px; }
.editar { background: #2563eb; margin-top: 10px; }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.fotos-solicitud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fotos-solicitud img { height: 100px; margin: 0; object-fit: cover; border-radius: 10px; }

.reveal { opacity: 0; transform: translateY(24px); transition: 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.estado-page { min-height: 70vh; }
.estado-form,
.estado-card { max-width: 720px; margin: 0 auto 22px; }
.estado-admin { background: #f3f4f6; padding: 14px; border-radius: 14px; margin: 12px 0; }
.estado-admin select,
.estado-admin textarea { width: 100%; margin-bottom: 10px; }

@media (max-width: 900px) {
  .equipo-layout { grid-template-columns: 1fr; }
  .beneficios-equipo { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header,
  header {
    flex-direction: column;
    gap: 10px;
    padding: 12px 5%;
  }

  nav { text-align: center; }
  nav a { display: inline-block; margin: 5px 7px; font-size: 14px; }

  .hero { min-height: 560px; padding: 50px 6%; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 45px 6%; }
  .promo { display: none; }

  .equipo-producto { padding: 18px; border-radius: 20px; }
  .imagen-principal-wrap { aspect-ratio: 1 / 1; }
  .carousel-btn { width: 42px; height: 42px; font-size: 24px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .beneficios-equipo { grid-template-columns: 1fr; }
  .whatsapp-flotante { right: 12px; bottom: 12px; padding: 12px 14px; }
}

/* ================= ADMIN POR APARTADOS ================= */
.admin-body {
  background: linear-gradient(180deg, #eef2f7, #f8fafc);
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111827;
  color: white;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.admin-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.admin-header p {
  margin-top: 5px;
  color: #cbd5e1;
}

.admin-main {
  width: min(1200px, 94%);
  margin: 24px auto 70px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: white;
  padding: 12px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
  margin-bottom: 22px;
  position: sticky;
  top: 88px;
  z-index: 900;
}

.admin-tab {
  background: #e5e7eb;
  color: #111827;
  border-radius: 16px;
  padding: 15px 12px;
  font-size: 16px;
}

.admin-tab.active {
  background: #10b981;
  color: white;
  box-shadow: 0 10px 24px rgba(16,185,129,.28);
}

.admin-tab span,
#notificacion {
  background: #ef4444;
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 14px;
  margin-left: 4px;
}

.admin-section {
  padding: 28px 0;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-grid {
  margin-top: 26px;
  align-items: start;
}

.admin-card {
  border: 1px solid #e5e7eb;
}

.admin-thumb {
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 14px;
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.solicitud-card {
  max-width: 100%;
}

.estado-texto {
  color: #059669;
  font-weight: 800;
}

.estado-admin label {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

.estado-admin button {
  width: 100%;
}

.admin-whatsapp {
  width: auto;
}

@media (max-width: 760px) {
  .admin-header {
    position: relative;
    flex-direction: column;
    text-align: center;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
    position: sticky;
    top: 0;
  }

  .admin-tab {
    font-size: 18px;
  }
}

.admin-subpanel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.manual-form {
  max-width: 900px;
}

.small-note {
  font-size: 14px;
  color: #64748b;
}

.consulta-cliente {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0;
  word-break: break-word;
}


/* Avances de reparación */
.avance-admin {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}

.avance-admin h4 {
  margin-bottom: 10px;
}

.avance-admin textarea {
  min-height: 90px;
}

.avance-admin input[type="file"] {
  background: white;
}

.avances-lista-admin {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.avance-item-admin {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
}

.fotos-solicitud,
.fotos-avance-cliente {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.fotos-solicitud img,
.fotos-avance-cliente img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}

.timeline {
  margin-top: 22px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.timeline h3 {
  margin-bottom: 14px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: #10b981;
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 0 5px rgba(16,185,129,.14);
}

.timeline-content {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.estado-page .estado-card {
  max-width: 950px;
  margin: 24px auto 0;
}
