:root {
  --primary: #0a7cff;
  --dark: #0a1a2f;
  --light: #f4f6f9;
  --card: #ffffff;
  --success: #2ecc71;
  --danger: #e74c3c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--light);
  color: #333;
}

/* ===== HEADER ===== */
header {
  background: var(--dark);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  opacity: .8;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: white;
  padding: 70px 30px;
  text-align: center;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 30px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 25px;
}

/* ===== CARD PREMIUM ===== */
.card {
  background: var(--card);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,.08);
  transition: all .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(0,0,0,.15);
}

/* ===== BUTTONS ===== */
button {
  background: linear-gradient(135deg, var(--primary), #3bb3f7);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: .9;
}

button.danger {
  background: var(--danger);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 18px;
  margin-top: 50px;
}

/* ===== AUTH ===== */
.auth-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  background: white;
  width: 360px;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  text-align: center;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.input-group .toggle {
  right: 12px;
  left: auto;
  cursor: pointer;
}

.input-group input {
  width: 100%;
  padding: 12px 40px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.input-group input:focus {
  border-color: var(--primary);
  outline: none;
}

/* ===== ADMIN TABLE ===== */
.tabla-admin {
  width: 100%;
  border-collapse: collapse;
}

.tabla-admin th {
  background: var(--dark);
  color: white;
  padding: 12px;
}

.tabla-admin td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
/* ===== LOGIN PREMIUM PRO ===== */

.login-premium {
  height: 100vh;
  background: linear-gradient(135deg,#0a1a2f,#0a7cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
}

.login-card {
  width: 380px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  overflow: hidden;
  animation: fadeIn 0.6s ease;
}

.login-header {
  background: linear-gradient(135deg,#0a1a2f,#123b6d);
  color: white;
  text-align: center;
  padding: 30px;
}

.login-header i {
  font-size: 42px;
  margin-bottom: 10px;
}

.login-header h2 {
  margin: 10px 0 5px;
  font-weight: 500;
}

.login-header p {
  font-size: 14px;
  opacity: .85;
}

.login-form {
  padding: 30px;
}

.input-icon {
  position: relative;
  margin-bottom: 18px;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #999;
}

.input-icon .toggle {
  right: 14px;
  left: auto;
  cursor: pointer;
}

.input-icon input {
  width: 100%;
  padding: 14px 40px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 15px;
}

.input-icon input:focus {
  border-color: #0a7cff;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: #0a7cff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
}

.btn-login:hover {
  background: #095fc5;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 14px;
}

.login-links a {
  color: #0a7cff;
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== */
/* ===== CARRITO PREMIUM ===== */
/* ===== DISEÑO DE CARRITO PROFESIONAL SURTEC ===== */
:root {
  --primary: #1e81ff;
  --primary-dark: #0061ff;
  --dark-navy: #0f172a;
  --white: #ffffff;
  --bg-page: #f1f5f9;
  --text-main: #1e293b;
  --text-dim: #64748b;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body.carrito-body { background-color: var(--bg-page); color: var(--text-main); min-height: 100vh; }

/* HEADER */
.topbar-carrito {
  background: var(--dark-navy); padding: 15px 0; color: white; position: sticky; top: 0; z-index: 1000;
}
.topbar-content {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px;
}
.logo { font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 12px; }
.logo i, .logo span { color: var(--primary); }
.btn-back { color: #cbd5e1; text-decoration: none; font-size: 14px; transition: 0.3s; }

/* LAYOUT */
.carrito-layout {
  max-width: 1200px; margin: 40px auto; display: grid; grid-template-columns: 1fr 380px; gap: 30px; padding: 0 20px;
}

/* LISTA DE ITEMS */
.lista-carrito {
  background: var(--white); border-radius: 20px; padding: 25px; border: 1px solid var(--border);
}

.item {
  display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f1f5f9;
}
.item:last-child { border-bottom: none; }

.item-img {
  width: 90px; height: 90px; border-radius: 12px; object-fit: cover; background: #f8fafc; border: 1px solid var(--border);
}

.item-info { flex: 1; }
.item-info h4 { font-size: 16px; margin-bottom: 5px; color: var(--dark-navy); }
.price-val { font-weight: 700; color: var(--primary); }

/* CONTROLES DE CANTIDAD +/- */
.qty-controls {
  display: flex; align-items: center; background: #f1f5f9; border-radius: 10px; padding: 5px; gap: 12px;
}
.btn-qty {
  width: 30px; height: 30px; border: none; background: white; border-radius: 8px; cursor: pointer;
  font-weight: 800; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-qty:hover { background: var(--primary); color: white; }

.btn-remove {
  color: #ef4444; background: #fff1f1; border: none; width: 35px; height: 35px; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.btn-remove:hover { background: #ef4444; color: white; }

/* SIDEBAR CARDS */
.sidebar-card { background: var(--white); border-radius: 24px; padding: 30px; border: 1px solid var(--border); margin-bottom: 20px; }

/* CUPÓN */
.coupon-box p { font-size: 13px; margin-bottom: 12px; color: var(--text-dim); }
.coupon-input-group { display: flex; gap: 8px; }
.coupon-input-group input { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border); outline: none; }
.coupon-input-group button { background: var(--dark-navy); color: white; border: none; padding: 0 15px; border-radius: 10px; cursor: pointer; font-weight: 600; }

/* RESUMEN */
.resumen-card { position: sticky; top: 100px; }
.resumen-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: var(--text-dim); }
.free-shipping { color: #10b981; font-weight: 700; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.total-row h2 { font-size: 32px; font-weight: 800; color: var(--primary); }

.btn-pagar-pro {
  width: 100%; padding: 18px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; border: none; border-radius: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 10px 20px rgba(30, 129, 255, 0.3); transition: 0.3s;
}
.btn-pagar-pro:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(30, 129, 255, 0.4); }

.payment-methods { display: flex; justify-content: center; gap: 15px; margin: 20px 0; font-size: 22px; color: #cbd5e1; }
.secure-info { text-align: center; font-size: 12px; color: var(--text-dim); }

@media (max-width: 950px) {
  .carrito-layout { grid-template-columns: 1fr; }
  .carrito-sidebar { order: -1; }
}

/* ===== CATÁLOGO PREMIUM ===== */
.catalogo-premium {
  background: #f4f6f9;
  font-family: Arial, sans-serif;
}

/* HEADER */
.topbar {
  background: #0a1a2f;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  font-size: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-icon {
  background: #0a7cff;
  padding: 8px 14px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-logout {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* BUSCADOR */
.buscador {
  padding: 20px;
  text-align: center;
}

.buscador input {
  width: 60%;
  padding: 12px;
  border-radius: 25px;
  border: 1px solid #ddd;
  font-size: 16px;
}

/* GRID */
.grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 25px;
  padding: 30px;
}

/* CARD */
.card-premium {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  transition: transform .3s;
}

.card-premium:hover {
  transform: translateY(-6px);
}

.card-premium h3 {
  margin: 10px 0;
}

.card-premium .precio {
  font-size: 18px;
  font-weight: bold;
  color: #0a7cff;
}

.card-premium button {
  width: 100%;
  margin-top: 10px;
}

/* ETIQUETA */
.tag {
  display: inline-block;
  background: #0a7cff;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* CONFIANZA */
.confianza {
  background: white;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  text-align: center;
  padding: 25px;
  font-weight: bold;
}

/* SKELETON */
.skeleton {
  animation: pulse 1.5s infinite;
}

.skeleton-img {
  height: 150px;
  background: #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 20px;
  background: #ddd;
  border-radius: 5px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-btn {
  height: 35px;
  background: #ddd;
  border-radius: 5px;
}

@keyframes pulse {
  0% { background-color: #ddd; }
  50% { background-color: #ccc; }
  100% { background-color: #ddd; }
}

/* ===== LANDING PREMIUM PRO ===== */

.landing-header {
  background: #0a1a2f;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-login-top {
  background: #0a7cff;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.landing-hero {
  background: linear-gradient(135deg,#0a1a2f,#0a7cff);
  color: white;
  padding: 80px 30px;
  text-align: center;
}

.btn-hero {
  display: inline-block;
  margin-top: 25px;
  background: white;
  color: #0a1a2f;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.landing-info {
  background: white;
  padding: 50px 30px;
  text-align: center;
}

.landing-info p {
  margin: 8px 0;
}

.social-landing {
  margin-top: 20px;
}

.social-landing a {
  margin: 0 10px;
  font-size: 22px;
  color: #0a7cff;
}

.landing-footer {
  background: #0a1a2f;
  color: white;
  text-align: center;
  padding: 15px;
}
/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

/* ===== HEADER ===== */
.landing-header {
  background: #0a1a2f;
  padding: 18px 40px; /* espacio desde el borde real */
}

.header-container {
  width: 100%;              /* 🔥 ancho completo */
  display: flex;
  align-items: center;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.logo i {
  color: #4da3ff;
}

/* NAV */
.landing-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;        /* 🔥 empuja menú a la derecha */
  white-space: nowrap;
}

.landing-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.landing-nav a:hover {
  opacity: 1;
}

/* BOTÓN LOGIN */
.btn-login-top {
  background: #0a7cff;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
}


/* ===== HERO ===== */
.hero-real {
  background: linear-gradient(135deg,#0a1a2f,#0a7cff);
  color: white;
  padding: 100px 30px;
  text-align: center;
}

.hero-real-content {
  max-width: 900px;
  margin: auto;
}

.hero-real h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-real h2 span {
  color: #cfe5ff;
}

.hero-real p {
  font-size: 18px;
  opacity: 0.95;
}

/* BOTONES HERO */
.hero-actions {
  margin-top: 35px;
}

.btn-hero {
  background: white;
  color: #0a1a2f;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

/* ===== MÉTRICAS ===== */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 25px;
  padding: 60px 30px;
  text-align: center;
  background: white;
}

.metric strong {
  font-size: 34px;
  color: #0a7cff;
}

/* ===== SECCIONES ===== */
.section-light {
  background: #f4f6f9;
  padding: 70px 30px;
  text-align: center;
}

.section-dark {
  background: #0a1a2f;
  color: white;
  padding: 70px 30px;
  text-align: center;
}

.section-light h3,
.section-dark h3 {
  font-size: 28px;
  margin-bottom: 40px;
}

/* ===== CARDS ===== */
.cards {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 30px;
}

.card-real {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.card-real i {
  font-size: 32px;
  color: #0a7cff;
  margin-bottom: 15px;
}

/* ===== VALORES ===== */
.values {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
}

.values div {
  background: rgba(255,255,255,.08);
  padding: 20px;
  border-radius: 14px;
}

/* ===== CTA ===== */
.cta-real {
  background: linear-gradient(135deg,#0a7cff,#4da3ff);
  color: white;
  text-align: center;
  padding: 80px 30px;
}

/* ===== FOOTER ===== */
.landing-footer {
  background: #0a1a2f;
  color: white;
  text-align: center;
  padding: 25px;
}

.footer-links a {
  color: #cfe5ff;
  text-decoration: none;
}
/* ===== PÁGINAS LEGALES (CORPORATIVO REAL) ===== */

/* HERO LEGAL */
.landing-hero {
  background: linear-gradient(135deg, #050c18 0%, #0a56d6 100%);
  color: white;
  padding: 80px 30px 75px;
  text-align: center;
}

.landing-hero h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .4px;
}

/* CONTENEDOR LEGAL */
.landing-info {
  max-width: 900px;
  margin: 30px auto 80px;
  padding: 48px 58px;
  background: #ffffff;

  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);

  box-shadow:
    0 20px 40px rgba(0,0,0,.10),
    0 8px 18px rgba(0,0,0,.06);

  font-size: 16.5px;
  line-height: 1.75;
  color: #1f2937;
}

/* SECCIONES */
.landing-info h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 600;
  color: #0a1a2f;
  position: relative;
  padding-left: 14px;
}

.landing-info h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 20px;
  background: #0a7cff;
  border-radius: 4px;
}

/* TEXTO */
.landing-info p {
  margin-bottom: 16px;
  color: #374151;
}

/* FOOTER LEGAL */
.landing-footer {
  background: #050c18;
  color: #cfe5ff;
  text-align: center;
  padding: 28px;
  font-size: 13.5px;
}
/* ===== FORMULARIO DE CONTACTO CORPORATIVO ===== */
.contact-form {
  max-width: 520px;
  margin: auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0a7cff;
  box-shadow: 0 0 0 2px rgba(10,124,255,.15);
}
* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== */
/* General */
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #f3f4f6;
}

/* ===== HEADER AZUL SURTEC (Separado y con Jerarquía) ===== */
.header {
  background-color: #0f172a; /* Azul Marino muy oscuro (Premium) */
  color: #ffffff;
  padding: 8px 0;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Aumentamos de 20px a 40px o 60px para despegarlo de los bordes */
  padding: 0 50px; 
  height: 60px;
  max-width: 100%;
}

/* LOGO */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin-right: 30px; /* Espacio después del logo */
  white-space: nowrap;
}

/* BLOQUES DE TEXTO (Ubicación y Cuenta) */
.nav-block {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: white;
  transition: 0.2s;
}

.nav-block:hover {
  border: 1px solid white;
  border-radius: 2px;
}

.nav-text {
  display: flex;
  flex-direction: column;
  margin-left: 6px;
}

/* TAMAÑOS DE LETRA (Amazon Style) */
.line-1 {
  font-size: 12px;
  color: #cbd5e1; /* Gris azulado claro */
  line-height: 1.2;
}

.line-2 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* Icono de Mapa */
.map-icon {
  font-size: 18px;
  margin-top: 10px;
}

/* ===== BARRA DE BÚSQUEDA (ESTILO AMAZON LARGO) ===== */
.search-bar {
  display: flex;
  flex: 1;            /* 1. Esto obliga a la barra a ocupar todo el espacio disponible en el centro */
  height: 40px;       /* Altura estándar de Amazon */
  margin: 0 30px;     /* 2. Espacio a los lados para que no toque la Ubicación ni la Cuenta */
  max-width: 1200px;  /* 3. Aumentamos el largo máximo (puedes poner 100% si la quieres aún más larga) */
  min-width: 300px;   /* Evita que se haga demasiado pequeña en pantallas medianas */
}

.search-bar input {
  flex: 1;            /* El input toma todo el espacio dentro del div .search-bar */
  padding: 0 15px;
  font-size: 16px;
  border: none;
  outline: none;
  border-radius: 4px 0 0 4px; /* Redondeado solo a la izquierda */
  background-color: white;
  color: #333;
}

.search-bar button {
  background-color: #febd69; /* El color naranja exacto de Amazon */
  border: none;
  width: 50px;              /* Ancho del botón de la lupa */
  cursor: pointer;
  border-radius: 0 4px 4px 0; /* Redondeado solo a la derecha */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

.search-bar button i {
  font-size: 20px;
  color: #333; /* Color de la lupa */
}

.search-bar button:hover {
  background-color: #f3a847; /* Naranja más oscuro al pasar el mouse */
}

.search-bar input {
  flex: 1;
  padding: 0 15px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 16px;
  outline: none;
}

.search-bar button {
  background-color: #f59e0b; /* Naranja/Amarillo */
  border: none;
  padding: 0 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 18px;
}

.search-bar button:hover {
  background-color: #d97706;
}

/* CARRITO */
.cart-box {
  align-items: flex-end; /* Alinea "Carrito" abajo con el icono */
  gap: 5px;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrapper i {
  font-size: 32px;
}

#contador {
  position: absolute;
  top: -2px;
  left: 12px;
  width: 100%;
  text-align: center;
  color: #f59e0b;
  font-weight: 900;
  font-size: 16px;
}

.cart-label {
  margin-bottom: 4px;
}

/* ===== HERO SECCIÓN ===== */
.hero {
  background: linear-gradient(to right, #1e40af, #3b82f6);
  color: white;
  padding: 50px 20px;
  text-align: center;
}

/* ===== CATALOGO GRID ( PROTECCIÓN DE IMÁGENES ) ===== */
.catalogo-container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 30px;
}

.grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.card-premium {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 500px;
  transition: transform 0.3s;
}

/* ESTO EVITA QUE LAS IMÁGENES SEAN GIGANTES */
.card-img {
  width: 100%;
  height: 230px; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.precio {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin: 10px 0;
}

.btn-add {
  background-color: #2563eb; /* Azul SurTec */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
}

.btn-add:hover { background-color: #1e40af; }

#user-location { text-transform: capitalize; }

/* Contenedor relativo para que el menú se posicione debajo */
.account-box {
  position: relative;
}

/* El menú desplegable */
.account-dropdown {
  display: none; /* Oculto por defecto */
  position: absolute;
  top: 100%; /* Justo debajo del header */
  right: 0;
  background-color: white;
  min-width: 450px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 2000; /* Para que esté por encima de todo */
  padding: 15px;
  color: #333;
  cursor: default;
}

/* Mostrar cuando pasamos el mouse por "Cuenta y Listas" */
.account-box:hover .account-dropdown {
  display: block;
}

/* Banner superior del menú */
.dropdown-banner {
  background-color: #f0f2f2;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.dropdown-banner a {
  color: #007185;
  text-decoration: none;
}

/* Columnas */
.dropdown-content {
  display: flex;
  gap: 20px;
}

.dropdown-col {
  flex: 1;
}

.dropdown-col:first-child {
  border-right: 1px solid #eee;
  padding-right: 15px;
}

.dropdown-col h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111;
}

.dropdown-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-col ul li {
  margin-bottom: 8px;
}

.dropdown-col ul li a {
  font-size: 13px;
  color: #444;
  text-decoration: none;
}

.dropdown-col ul li a:hover {
  color: #c45500; /* Naranja Amazon */
  text-decoration: underline;
}

/* Línea divisoria */
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

/*//////// Línea divisoria /////////*/
.section-light h3,
.section-dark h3 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 50px;
}

/* ===== CARDS SERVICIOS ===== */
.cards {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card-real {
  background: white;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-real i {
  font-size: 36px;
  color: #0a7cff;
  margin-bottom: 15px;
}

.card-real h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-real p {
  font-size: 15px;
  color: #475569;
}

.card-real:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* ===== VALUES ===== */
.values {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  text-align: center;
}

.values div {
  font-size: 16px;
  font-weight: 600;
}

.values i {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
  color: #38bdf8;
}

/* ===== CTA ===== */
.cta-real {
  background: linear-gradient(135deg, #0a7cff, #2563eb);
  color: white;
  text-align: center;
  padding: 80px 24px;
}

.cta-real h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
}

/* ===== FOOTER ===== */
.landing-footer {
  background: #020617;
  color: #cbd5f5;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .landing-nav {
    display: none;
  }

  .hero-real h2 {
    font-size: 36px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .hero-real {
    padding: 60px 20px;
  }

  .hero-real h2 {
    font-size: 30px;
  }

  .metric strong {
    font-size: 30px;
  }
}
/* ===== ESTILOS GENERALES ===== */
/* ===== DISEÑO PREMIUM: BORDES Y SOMBRAS MEJORADOS ===== */
:root {
  --primary: #1e81ff;
  --dark-navy: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body.auth-body {
  min-height: 100dvh;
  background: radial-gradient(circle at top right, #1e3a8a 0%, #0f172a 100%);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 10px; /* Menos espacio en bordes para que quepa mejor */
}

.auth-card {
  background: var(--white); 
  width: 100%; 
  max-width: 400px; /* Un poco más estrecho para verse estilizado */
  border-radius: 20px; 
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.auth-header {
  background: var(--dark-navy); 
  padding: 25px 20px; /* Reducido de 40px a 25px */
  text-align: center; 
  color: #fff;
}

.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.auth-header p { font-size: 13px; color: #94a3b8; }
.auth-header p span { color: var(--primary); font-weight: 600; }

.auth-form-content { 
  padding: 20px 30px; /* Reducido drásticamente el espacio interno */
}

/* Títulos de sección más pequeños */
.form-section-title {
  font-size: 10px; 
  text-transform: uppercase; 
  font-weight: 700;
  color: var(--text-muted); 
  letter-spacing: 0.8px; 
  margin: 10px 0 12px;
  display: flex; 
  align-items: center;
}
.form-section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 10px;
}

.input-row { display: flex; gap: 10px; }

.input-group { position: relative; margin-bottom: 12px; width: 100%; } /* Reducido margen de 18 a 12 */

/* Iconos Izquierda */
.input-group i:not(.toggle-icon) {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 15px; z-index: 5;
}

.input-group input {
  width: 100%; 
  padding: 10px 40px 10px 40px; /* Inputs más delgados */
  border: 1.5px solid var(--border); 
  border-radius: 10px;
  font-size: 13.5px; 
  color: var(--text-main); 
  background: #f8fafc;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 129, 255, 0.1); outline: none;
}

/* EL OJO: FIJO A LA DERECHA */
.toggle-icon {
  position: absolute !important;
  right: 14px !important;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  z-index: 10;
}

/* Botón Ajustado */
.btn-primary-pro {
  width: 100%; 
  padding: 13px; 
  margin-top: 10px;
  background: linear-gradient(135deg, #1e81ff 0%, #0061ff 100%);
  color: #fff; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: 0.2s;
}

.btn-primary-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(30, 129, 255, 0.3);
}

.auth-footer { margin-top: 15px; text-align: center; font-size: 12.5px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* Eliminar flechas de input number */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
/* ===== ESTILO PARA CADA PRODUCTO DENTRO DEL CARRITO ===== */
.item {
  display: flex; /* Alineación horizontal */
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: 0.3s;
}

.item:hover {
  background-color: #fcfdfe; /* Efecto muy sutil al pasar el mouse */
}

/* Información del producto */
.item-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-info h4 {
  font-size: 16px;
  color: var(--dark-navy);
  font-weight: 600;
}

/* Controles de cantidad */
.item input {
  width: 50px;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  outline: none;
}

/* Precio */
.item-precio {
  flex: 1;
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
  padding: 0 20px;
}

/* Botón eliminar (Basurero) */
.btn-remove {
  background: #fff1f1;
  color: #ef4444;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-remove:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 18px; /* 👈 separación general */
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px; /* espacio entre - número + */
}

.qty-number {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
}

.item-total-price {
    min-width: 90px;
    text-align: right;
    font-weight: 700;
}

.btn-remove {
    margin-left: 8px; /* separa el bote de basura */
}
/* =========================================
   🔧 FIX GLOBAL (evita desbordes y bugs)
========================================= */
*{
  box-sizing: border-box;
}

body{
  overflow-x: hidden;
}


/* =================================================
   📱 SOLO MÓVILES (NO AFECTA PC NI LAPTOP)
   ================================================= */
@media (max-width: 768px) {

  /* ===== HEADER ===== */
  .top-bar,
  .header-container{
    padding: 0 15px;
    flex-wrap: wrap;
  }

  /* ocultar menú grande */
  .nav-block,
  .search-bar{
    display: none !important;
  }

  /* botón hamburguesa visible */
  .menu-toggle{
    display: block;
  }


  /* ===== HERO ===== */
  .hero-real{
    padding: 70px 20px 50px;
    text-align: center;
  }

  .hero-real h1,
  .hero-real h2{
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-real p{
    font-size: 14px;
    line-height: 1.5;
  }


  /* ===== MÉTRICAS ===== */
  .metrics{
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }


  /* ===== CARDS SERVICIOS ===== */
  .cards{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* ===== VALUES ===== */
  .values{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* ===== LOGIN ===== */
  .login-card,
  .auth-box,
  .auth-card{
    width: 95%;
    max-width: 350px;
    margin: auto;
  }


  /* ===== CATALOGO ===== */
  .grid-premium{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .card-premium{
    height: auto;
  }


  /* ===== CARRITO ===== */
  .carrito-layout{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .item{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .item-actions{
    width: 100%;
    justify-content: space-between;
  }


  /* ===== TEXTOS ===== */
  h1{ font-size: 22px; }
  h2{ font-size: 20px; }
  h3{ font-size: 18px; }
  p{  font-size: 14px; }


  /* ===== BOTONES ===== */
  button,
  .btn-login,
  .btn-primary-pro,
  .btn-add,
  .btn-hero{
    width: 100%;
  }


  /* ===== IMÁGENES ===== */
  img{
    max-width: 100%;
    height: auto;
    display: block;
  }

}
/* =================================================
   📱 SOLO MENÚ HORIZONTAL EN MÓVILES - DESACTIVADO
   Ahora usamos solo el menú hamburguesa .ham-btn
================================================= */

@media (max-width: 768px){

  /* header más compacto */
  .header-container{
    display: flex !important;
    flex-direction: row !important;  /* Logo izquierda, hamburguesa derecha */
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    gap: 0 !important;
  }

  /* OCULTAR menú desktop completamente */
  .landing-nav,
  nav.landing-nav,
  header .landing-nav,
  .header-container .landing-nav,
  .header-container > nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* Mostrar SOLO el botón hamburguesa .ham-btn */
  .ham-btn {
    display: flex !important;
  }

  /* Ocultar el menú hamburguesa antiguo de styles.css */
  .menu-icon,
  #menu-toggle,
  .menu-toggle {
    display: none !important;
  }

  /* Ocultar elementos grandes del header */
  .search-bar,
  .nav-block{
    display: none !important;
  }

}

/* =================================================
   📱 SOLUCIÓN MAESTRA FINAL (SURTEC ROBOTICS)
   Arregla: Centrado, Superposición y Total$0 Pegado
================================================= */

@media (max-width: 768px) {

  /* 1. BLOQUEO GLOBAL DE ANCHO (Anti-estiramiento) */
  * {
    box-sizing: border-box !important;
    max-width: 100vw !important; /* Nada puede ser más ancho que la pantalla */
  }

  html, body {
    overflow-x: hidden !important; /* Prohibido el scroll hacia los lados */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background-color: #f4f7f9 !important;
  }

  /* 2. HEADER: Orden vertical estable */
  .header {
    height: auto !important;
    min-height: 150px !important;
    background-color: #131921 !important;
    padding: 10px 0 !important;
    display: block !important;
  }

  .top-bar {
    display: flex !important;
    flex-direction: column !important; /* Logo arriba, link abajo */
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .logo-section {
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
  }

  /* 3. SOLUCIÓN DEFINITIVA AL CENTRADO (Cupón y Resumen) */
  /* Forzamos a que sean bloques que no floten y se centren solos */
  .cupon-section, 
  .resumen-compra, 
  .checkout-container,
  [class*="resumen"], 
  [class*="summary"],
  [class*="cupon"] {
    position: relative !important; /* Quita el 'vuelo' sobre otros elementos */
    top: 0 !important;
    left: 0 !important;
    float: none !important;      /* Mata el alineado a la derecha de PC */
    display: block !important;   /* Se comporta como bloque sólido */
    clear: both !important;      /* Empuja lo que haya debajo */

    width: 92% !important;       /* Ancho perfecto para celular */
    max-width: 92% !important;
    margin: 20px auto !important; /* EL MÁGICO 'AUTO' LOS CENTRA SIEMPRE */
    
    padding: 20px !important;
    background: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
  }

  /* 4. FILAS INTERNAS: Arregla "Total$15,000" (Imagen 2) */
  /* Esta regla empuja el texto a la izquierda y el precio a la derecha */
  .resumen-compra div, 
  .resumen-compra p,
  .summary-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important; /* SEPARA TEXTO DE PRECIO */
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f1f1;
  }

  .resumen-compra div:last-child {
    border-bottom: none;
  }

  /* El número del Total en azul grande */
  .total-amount, .resumen-compra .total, .resumen-compra h2 {
    font-size: 1.8rem !important;
    color: #0d6efd !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  /* 5. SECCIÓN "TU CARRITO" (Sin superposiciones) */
  .cart-wrapper, .cart-title, h2, .carrito-container {
    display: block !important;
    width: 92% !important;
    margin: 25px auto !important;
    clear: both !important;
    position: relative !important;
  }

  /* 6. BOTÓN PROCESAR PAGO */
  .resumen-compra button, .btn-procesar {
    width: 100% !important;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 12px !important;
    margin-top: 15px !important;
    background-color: #0d6efd !important;
  }

  /* 7. CARRITO FLOTANTE (Blindado) */
  .cart-box {
    position: fixed !important;
    bottom: 30px !important;
    right: 20px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #0d6efd !important;
    border-radius: 50% !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4) !important;
  }

  /* 🔎 BUSCADOR SIEMPRE VISIBLE */
  .search-bar {
    display: flex !important;
    width: 92% !important;
    margin: 10px auto !important;
  }

  /* 8. OCULTAR ESTILO ESCRITORIO */
  .location-box, .account-box, .orders-box, .logout-box, .cart-label {
    display: none !important;
  }
}

/* =================================================
   LOGIN PREMIUM RESPONSIVE – SurTec Robotics
   Versión: Fiel a la Imagen
================================================= */

/* ===== BODY (Fondo Azul Profundo) ===== */
.login-premium {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #0047a5; /* Azul del fondo exterior */
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== TARJETA (Blanca con bordes muy redondeados) ===== */
.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 25px; /* Bordes más curvos como la imagen */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: fadeIn .4s ease-out;
}

/* ===== HEADER (Parte Azul Superior) ===== */
.login-header {
  /* Degradado sutil de arriba hacia abajo */
  background: linear-gradient(180deg, #005bb7 0%, #00428d 100%);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.login-header i.robot-icon {
  font-size: 55px;
  margin-bottom: 15px;
  display: block;
}

.login-header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.login-header p {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.9;
  font-weight: 300;
}

/* ===== FORMULARIO ===== */
.login-form {
  padding: 30px 25px;
}

/* Grupo para los inputs con iconos */
.input-group {
  position: relative;
  margin-bottom: 18px;
}

/* Iconos dentro de los inputs */
.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
}

/* Icono del ojo (ver contraseña) */
.input-group .toggle-password {
  left: auto;
  right: 15px;
  cursor: pointer;
}

/* ===== INPUTS (Sin Zoom) ===== */
input {
  width: 100%;
  height: 52px;
  font-size: 16px !important; /* Evita zoom en iOS */
  padding: 12px 15px 12px 45px; /* Espacio para el icono izquierdo */
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  color: #333;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

input::placeholder {
  color: #999;
}

input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

/* ===== BOTÓN INICIAR SESIÓN (Azul Vibrante) ===== */
button {
  width: 100%;
  height: 54px;
  background: #007bff; /* Azul vibrante del botón */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase; /* Texto en mayúsculas */
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0,123,255,0.3);
  transition: background 0.3s;
}

button:active {
  transform: scale(0.98);
  background: #0069d9;
}

/* ===== LINKS INFERIORES ===== */
.login-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.login-footer a {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .login-card {
    max-width: 100%;
    border-radius: 20px;
  }
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================
   🛒 CARRITO – IMAGENES PRO
============================= */

.lista-carrito .item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:14px 18px;
    margin-bottom:12px;

    background:#fff;
    border-radius:14px;
    box-shadow:0 3px 10px rgba(0,0,0,.05);

    min-height:110px; /* evita saltos */
}


/* contenedor info izquierda */
.item-main-info{
    display:flex;
    align-items:center;
    gap:18px;
}


/* 🔥 CUADRO PERFECTO */
.item-img{
    width:90px;
    height:90px;

    min-width:90px;
    min-height:90px;

    object-fit:cover;
    object-position:center;

    border-radius:12px;
    background:#f3f3f3;

    display:block;

    image-rendering:-webkit-optimize-contrast;

    box-shadow:0 4px 10px rgba(0,0,0,.08);
    border:1px solid #eee;

    transition:transform .2s ease;
}

/* efecto pro */
.item-img:hover{
    transform:scale(1.05);
}


/* texto */
.item-details h4{
    font-weight:600;
    font-size:15px;
    margin:0;
}


/* =========================
   🎟️ CUPÓN VERTICAL MODERNO
========================= */

.coupon-box {
    padding: 20px;
}

/* 🔥 ahora columna */
.coupon-input-group {
    display: flex;
    flex-direction: column;   /* 👈 CLAVE */
    gap: 12px;
    margin-top: 12px;
}


/* INPUT */
.coupon-input-group input {
    width: 100%;
    height: 50px;
    padding: 0 14px;

    border-radius: 12px;
    border: 2px solid #e6eaf0;

    font-size: 15px;
    font-family: 'Poppins', sans-serif;

    outline: none;
    transition: 0.2s;
}

.coupon-input-group input:focus {
    border-color: #0b5cff;
    box-shadow: 0 0 0 3px rgba(11,92,255,.15);
}


/* BOTÓN */
.coupon-input-group button {
    width: 100%;            /* 👈 ancho completo */
    height: 50px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(135deg,#0b132b,#1c2541);
    color: white;

    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;

    transition: 0.2s;
}

.coupon-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}




/* =================================================
   SurTec Robotics – Contacto Corporativo 2026
   Paleta Azul Oficial
================================================= */

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f7fb;
  color: #1e293b;
}

/* ===== HEADER ===== */
.landing-header {
  background: #0f172a;
  padding: 15px 0;
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #2563eb;
  font-size: 20px;
  font-weight: bold;
}

.logo i {
  margin-right: 8px;
}

.landing-nav a {
  color: #e2e8f0;
  text-decoration: none;
  margin-left: 20px;
  transition: .3s;
}

.landing-nav a:hover {
  color: #2563eb;
}

.btn-login-top {
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  padding: 6px 14px;
  border-radius: 20px;
  color: white !important;
}

/* ===== HERO ===== */
.landing-hero {
  background: linear-gradient(135deg,#0f172a,#1e3a8a,#2563eb);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.landing-hero h2 {
  font-size: 40px;
  margin-bottom: 10px;
  font-weight: 700;
}

.landing-hero p {
  opacity: .9;
}

/* ===== SECCIONES ===== */
.landing-info {
  background: white;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.landing-info h3 {
  margin-bottom: 20px;
  color: #1e3a8a;
}

.landing-info p {
  margin-bottom: 12px;
}

/* ===== FORMULARIO ===== */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1e3a8a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  transition: .3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 10px rgba(37,99,235,.2);
}

/* BOTÓN ENVIAR */
.btn-send {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.btn-send:hover {
  opacity: .9;
  transform: translateY(-2px);
}

/* ===== REDES SOCIALES ===== */
.social-section {
  text-align: center;
  margin-top: 30px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.social {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: 0.3s ease;
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
}

.social:hover {
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.landing-footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 40px;
}

.footer-links a {
  color: #2563eb;
  text-decoration: none;
  margin: 0 5px;
}

/* ===== BOTÓN WHATSAPP (AZUL CORPORATIVO) ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  color: #FFF;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== CHATBOT ===== */
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  color: white;
  padding: 12px;
  font-weight: bold;
}

.chat-messages {
  height: 250px;
  padding: 10px;
  overflow-y: auto;
}

.bot {
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.user {
  background: #2563eb;
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-align: right;
}

#chatInput {
  border: none;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  outline: none;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){

  .chat-container {
    width: 90%;
    right: 5%;
  }

  .landing-info {
    padding: 25px;
  }

  .landing-hero h2 {
    font-size: 30px;
  }

}





/* ==========================================
   SURTEC ROBOTICS - FACTURA A4 OPTIMIZADA
   Llena hoja completa, sin espacios muertos
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --paper-white: #ffffff;
    --ink-primary: #0c0a09;
    --ink-secondary: #44403c;
    --ink-tertiary: #78716c;
    --brand-blue: #1e3a8a;
    --brand-blue-light: #3b82f6;
    --success: #047857;
    --border-light: #e7e5e4;
    --border-medium: #d6d3d1;
    --mono-font: 'Space Mono', 'Courier New', monospace;
    --sans-font: 'Inter', sans-serif;
}

/* ========================================
   ESTILOS PANTALLA (Preview)
   ======================================== */

.modal-factura {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
}

.modal-factura.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(28, 25, 23, 0.6);
}

.factura-wrapper {
    position: relative;
    z-index: 10000;
    width: 95%;
    max-width: 210mm;
    max-height: 90vh;
    overflow-y: auto;
    background: transparent;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.factura-container {
    background: var(--paper-white);
    padding: 40px;
    font-family: var(--sans-font);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
}

/* ========================================
   IMPRESIÓN A4 - LLENA HOJA COMPLETA
   ======================================== */

@media print {
    @page {
        size: A4 portrait;
        margin: 0;           /* Sin márgenes del navegador */
        padding: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box;
    }

    /* Ocultar UI */
    .modal-overlay,
    .factura-acciones,
    .modal-factura:not(.active) {
        display: none !important;
    }

    /* Resetear modal para impresión */
    .modal-factura {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: white !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .factura-wrapper {
        width: 210mm !important;        /* Ancho A4 exacto */
        min-height: 297mm !important;   /* Alto A4 exacto */
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    .factura-container {
        width: 210mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        padding: 15mm 15mm 15mm 20mm !important;  /* Márgenes internos */
        margin: 0 !important;
        box-shadow: none !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    /* Distribución vertical para llenar página */
    .factura-header {
        flex-shrink: 0;
        margin-bottom: 8mm !important;
        padding-bottom: 5mm !important;
        border-bottom: 2px solid var(--ink-primary) !important;
    }

    .info-dual-section {
        flex-shrink: 0;
        margin-bottom: 6mm !important;
        gap: 10mm !important;
    }

    .info-adicional-bar {
        flex-shrink: 0;
        margin-bottom: 6mm !important;
        padding: 4mm 6mm !important;
    }

    .productos-section {
        flex: 1;                       /* Ocupa espacio disponible */
        min-height: 60mm;
        margin-bottom: 6mm !important;
        display: flex;
        flex-direction: column;
    }

    .factura-tabla {
        flex: 1;
        height: auto;
    }

    /* Forzar altura mínima de tabla */
    .factura-tabla tbody {
        min-height: 40mm;
    }

    /* Filas de relleno si es necesario */
    .factura-tabla tbody tr {
        height: 12mm;                  /* Altura fija para uniformidad */
    }

    .factura-totales {
        flex-shrink: 0;
        margin-bottom: 6mm !important;
    }

    .factura-sello {
        flex-shrink: 0;
        margin: 4mm 0 !important;
        padding: 4mm !important;
    }

    .factura-firma-seccion {
        flex-shrink: 0;
        margin: 4mm 0 !important;
        padding-top: 4mm !important;
    }

    .factura-footer {
        flex-shrink: 0;
        margin-top: auto !important;    /* Empuja al fondo */
        padding-top: 4mm !important;
        border-top: 2px solid var(--border-medium) !important;
    }

    /* Ajustes tipográficos para impresión */
    .brand-info h1 {
        font-size: 22px !important;
    }

    .invoice-info h2 {
        font-size: 32px !important;
    }

    .factura-tabla {
        font-size: 11px !important;
    }

    .factura-tabla th,
    .factura-tabla td {
        padding: 3mm 4mm !important;
    }

    .grand-total span:last-child {
        font-size: 20px !important;
    }

    /* Eliminar decoraciones que no caben */
    .factura-container::before,
    .factura-header::after,
    .factura-footer::before,
    .totales-grid::before,
    .badge-pagado::before,
    .brand-logo::after {
        display: none !important;
    }

    /* Optimizar espacios */
    .empresa-info-box,
    .cliente-info-box {
        padding: 4mm !important;
    }

    .totales-grid {
        padding: 5mm !important;
    }

    /* Forzar fondos blancos */
    .empresa-info-box,
    .cliente-info-box,
    .totales-grid,
    .info-adicional-bar,
    .factura-sello {
        background: white !important;
        box-shadow: none !important;
    }

    /* Colores sólidos para impresora */
    .factura-tabla thead {
        background: #1c1917 !important;
        color: white !important;
    }

    .info-adicional-bar {
        background: #1e3a8a !important;
        color: white !important;
    }

    .badge-pagado {
        background: #d1fae5 !important;
        color: #047857 !important;
        border: 1px solid #047857 !important;
    }
}

/* ========================================
   ESTILOS VISUALES (Pantalla)
   ======================================== */

.factura-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px double var(--ink-primary);
}

.brand-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.brand-logo {
    background: linear-gradient(145deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.brand-info h1 {
    font-size: 24px;
    margin: 0 0 4px 0;
    color: var(--ink-primary);
    font-weight: 800;
    text-transform: uppercase;
}

.brand-info h1 span {
    color: var(--brand-blue);
    font-weight: 400;
}

.brand-info p {
    margin: 0;
    color: var(--ink-secondary);
    font-size: 13px;
}

.invoice-info {
    text-align: right;
}

.invoice-info h2 {
    font-size: 36px;
    letter-spacing: 4px;
    color: var(--ink-primary);
    margin: 0 0 10px 0;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--mono-font);
}

.invoice-info .info-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.invoice-info .label {
    color: var(--ink-tertiary);
    font-weight: 500;
}

.invoice-info .value {
    color: var(--ink-primary);
    font-weight: 700;
    font-family: var(--mono-font);
    min-width: 80px;
}

.badge-pagado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(4, 120, 87, 0.2);
}

/* Info Dual */
.info-dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.empresa-info-box,
.cliente-info-box {
    background: #fafaf9;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
}

.empresa-info-box h3,
.cliente-info-box h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.empresa-info-box p,
.cliente-info-box p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: var(--ink-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cliente-nombre {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dotted var(--border-medium);
}

.empresa-rfc {
    margin-top: 10px !important;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    font-family: var(--mono-font);
    font-weight: 700 !important;
}

/* Barra Info Adicional */
.info-adicional-bar {
    display: flex;
    gap: 30px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    border-radius: 8px;
    margin-bottom: 25px;
    color: white;
    font-size: 13px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item strong {
    font-family: var(--mono-font);
    font-weight: 700;
}

/* Tabla */
.productos-section {
    margin-bottom: 25px;
}

.factura-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    overflow: hidden;
}

.factura-tabla thead {
    background: var(--ink-primary);
    color: white;
}

.factura-tabla th {
    padding: 12px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-align: left;
}

.factura-tabla td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    color: var(--ink-secondary);
}

.factura-tabla td:last-child {
    border-right: none;
}

.factura-tabla tbody tr:nth-child(even) {
    background: #fafaf9;
}

.col-producto { width: 45%; font-weight: 600; color: var(--ink-primary); }
.col-cant { width: 15%; text-align: center !important; font-weight: 700; font-family: var(--mono-font); }
.col-precio { width: 20%; text-align: right !important; font-family: var(--mono-font); }
.col-subtotal { width: 20%; text-align: right !important; font-weight: 700; font-family: var(--mono-font); color: var(--ink-primary); }

/* Totales */
.factura-totales {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.totales-grid {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid var(--ink-primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--ink-tertiary);
}

.total-line span:last-child {
    font-family: var(--mono-font);
    font-weight: 600;
    color: var(--ink-secondary);
}

.total-line.descuento {
    color: var(--success);
}

.total-line.descuento span:last-child {
    font-weight: 700;
}

.envio-gratis {
    color: var(--success);
    font-weight: 700;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.grand-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 3px double var(--ink-primary);
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-blue);
}

.grand-total span:last-child {
    font-family: var(--mono-font);
    font-size: 22px;
}

/* Sello Digital */
.factura-sello {
    margin: 20px 0;
    padding: 15px;
    border: 2px dashed var(--border-medium);
    border-radius: 8px;
    background: #fafaf9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sello-contenido {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sello-contenido i {
    font-size: 32px;
    color: var(--success);
}

.sello-texto {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sello-folio {
    margin: 0;
    font-size: 11px;
    color: var(--ink-tertiary);
    font-family: var(--mono-font);
}

.sello-qr {
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    position: relative;
    background-image: 
        repeating-linear-gradient(0deg, var(--ink-primary) 0px, var(--ink-primary) 3px, transparent 3px, transparent 6px),
        repeating-linear-gradient(90deg, var(--ink-primary) 0px, var(--ink-primary) 3px, transparent 3px, transparent 6px);
    background-size: 6px 6px;
    background-position: center;
    opacity: 0.8;
}

/* Firma y Sello Físico */
.factura-firma-seccion {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.firma-autografa {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

.firma-linea {
    border-bottom: 2px solid var(--ink-primary);
    margin-bottom: 8px;
    height: 40px;
    position: relative;
    background: repeating-linear-gradient(0deg, transparent, transparent 14px, var(--border-light) 14px, var(--border-light) 15px);
}

/* Simulación de firma */
.firma-linea::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 25%;
    width: 50%;
    height: 25px;
    background: radial-gradient(ellipse at 30% 70%, rgba(0,0,0,0.6) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.5) 0%, transparent 40%),
                radial-gradient(ellipse at 70% 60%, rgba(0,0,0,0.6) 0%, transparent 50%);
    filter: blur(1px);
    opacity: 0.6;
}

.firma-label {
    font-size: 11px;
    color: var(--ink-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.firma-nombre {
    font-size: 12px;
    color: var(--ink-secondary);
    font-weight: 700;
    margin-top: 4px;
}

.sello-fisico {
    width: 90px;
    height: 90px;
    border: 3px solid #d97706;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.5;
    transform: rotate(-15deg);
    position: relative;
}

.sello-fisico::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid #d97706;
    border-radius: 50%;
    opacity: 0.3;
}

/* Footer */
.factura-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--border-medium);
    text-align: center;
}

.footer-mensaje {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
}

.footer-contacto-empresa {
    margin-bottom: 15px;
    padding: 12px;
    background: #fafaf9;
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-secondary);
}

.footer-legal {
    font-size: 10px;
    color: var(--ink-tertiary);
    line-height: 1.6;
}

.footer-legal .fac-id {
    font-family: var(--mono-font);
    font-size: 9px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* Botones (solo pantalla) */
.factura-acciones {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f4 100%);
    padding: 25px;
    border-top: 2px solid var(--border-medium);
}

.acciones-principales {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-accion {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--sans-font);
    min-width: 140px;
    justify-content: center;
}

.btn-accion:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primario {
    background: linear-gradient(145deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secundario {
    background: linear-gradient(145deg, #1c1917 0%, #44403e 100%);
    color: white;
}

.btn-cerrar {
    background: white;
    color: var(--ink-secondary);
    border: 2px solid var(--border-medium);
}

.instrucciones-descarga {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.instrucciones-descarga h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--ink-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.instrucciones-descarga ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--ink-secondary);
    line-height: 1.8;
}

.instrucciones-descarga code {
    background: #fafaf9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--brand-blue);
}

.nota-sistema {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    color: var(--brand-blue);
}

.nota-sistema i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .factura-container {
        padding: 20px;
    }

    .factura-header {
        flex-direction: column;
        gap: 20px;
    }

    .invoice-info {
        text-align: left;
    }

    .info-dual-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-adicional-bar {
        flex-direction: column;
        gap: 8px;
    }

    .factura-tabla {
        font-size: 11px;
    }

    .factura-tabla th,
    .factura-tabla td {
        padding: 8px;
    }

    .totales-grid {
        width: 100%;
    }

    .factura-firma-seccion {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .acciones-principales {
        flex-direction: column;
    }

    .btn-accion {
        width: 100%;
    }
}

/* Scrollbar */
.factura-wrapper::-webkit-scrollbar {
    width: 8px;
}

.factura-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
}

.factura-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 10px;
}
/* =======================================================
   📱 SURTEC ROBOTICS — RESPONSIVE MÓVIL MAESTRO v2
   Mejora todos los componentes para pantallas ≤768px
   Sin romper el diseño de escritorio
======================================================= */

/* ── CATÁLOGO HEADER (top-bar) en móvil ── */
@media (max-width: 768px) {

  /* Reset seguro del top-bar */
  .top-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 0 !important;
    height: auto !important;
    gap: 0 !important;
  }

  /* Fila 1: Logo + Carrito flotante */
  .logo-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 16px !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* Carrito como botón compacto en header */
  .cart-box {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: white !important;
    min-height: unset !important;
  }

  .cart-icon-wrapper i {
    font-size: 22px !important;
  }

  .cart-label {
    display: block !important;
    font-size: 12px !important;
    color: white !important;
    margin-bottom: 0 !important;
  }

  #contador {
    position: static !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #f59e0b !important;
  }

  /* Fila 2: Buscador full width */
  .search-bar {
    display: flex !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    min-width: unset !important;
    max-width: unset !important;
  }

  .search-bar input {
    flex: 1 !important;
    font-size: 16px !important;
    padding: 0 12px !important;
    border-radius: 6px 0 0 6px !important;
  }

  .search-bar button {
    width: 44px !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 0 !important;
  }

  /* Ocultar bloques innecesarios en móvil */
  .location-box,
  .account-box,
  .orders-box,
  .logout-box {
    display: none !important;
  }

  /* ── HERO del catálogo ── */
  .hero {
    padding: 40px 16px !important;
  }

  .hero h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  .hero p {
    font-size: 14px !important;
  }

  /* ── GRID CATÁLOGO ── */
  .catalogo-container {
    padding: 0 10px !important;
    margin: 12px auto !important;
  }

  .grid-premium {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  .card-premium {
    height: auto !important;
    padding: 12px !important;
  }

  .card-img {
    height: 160px !important;
  }

  .card-premium h3 {
    font-size: 13px !important;
    margin: 6px 0 4px !important;
  }

  .card-premium .desc-text {
    display: none !important;
  }

  .precio {
    font-size: 16px !important;
    margin: 6px 0 !important;
  }

  .btn-add {
    padding: 8px !important;
    font-size: 13px !important;
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* ── CARRITO ── */
  .carrito-layout {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    margin: 12px auto !important;
    gap: 16px !important;
  }

  .topbar-content {
    padding: 0 16px !important;
  }

  .lista-carrito {
    padding: 16px !important;
  }

  .lista-carrito .item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  .item-main-info {
    width: 100% !important;
    gap: 12px !important;
  }

  .item-img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
  }

  .item-details h4 {
    font-size: 14px !important;
  }

  .item-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .sidebar-card,
  .resumen-card {
    position: static !important;
    top: auto !important;
  }

  .total-row h2 {
    font-size: 24px !important;
  }

  /* ── HEADER LANDING / CONTACTO / DEVOLUCIONES ── */
  .landing-header {
    padding: 12px 0 !important;
  }

  .header-container {
    width: 100% !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    gap: 0 !important;
  }

  .logo {
    font-size: 18px !important;
    justify-content: flex-start !important;
  }

  /* OCULTAR menú desktop en móvil - USAR SOLO HAMBURGUESA */
  .landing-nav,
  nav.landing-nav,
  header .landing-nav,
  .header-container .landing-nav,
  .header-container > nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* Mostrar SOLO el botón hamburguesa .ham-btn */
  .ham-btn {
    display: flex !important;
  }

  /* Ocultar menú hamburguesa antiguo si existe */
  .menu-icon,
  #menu-toggle,
  .menu-toggle {
    display: none !important;
  }

  /* ── HERO LANDING ── */
  .landing-hero {
    padding: 50px 20px 40px !important;
  }

  .landing-hero h2 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .landing-hero p {
    font-size: 15px !important;
  }

  .hero-real {
    padding: 60px 20px !important;
  }

  .hero-real h2 {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }

  .hero-real p {
    font-size: 15px !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .btn-hero {
    width: auto !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    display: inline-block !important;
  }

  /* ── LANDING INFO BOX ── */
  .landing-info {
    padding: 24px 20px !important;
    margin: 20px auto !important;
    width: 94% !important;
    border-radius: 12px !important;
  }

  /* ── MÉTRICAS ── */
  .metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 30px 20px !important;
    gap: 20px !important;
  }

  .metric strong {
    font-size: 28px !important;
  }

  /* ── CARDS SERVICIOS ── */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 20px !important;
  }

  .card-real {
    padding: 22px !important;
  }

  /* ── VALUES ── */
  .values {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 20px !important;
  }

  /* ── FORMULARIO CONTACTO ── */
  .contact-form {
    max-width: 100% !important;
  }

  /* ── CHATBOT ── */
  .chat-container {
    width: calc(100% - 32px) !important;
    right: 16px !important;
    left: 16px !important;
    bottom: 80px !important;
  }

  .chat-messages {
    height: 200px !important;
  }

  /* ── WHATSAPP ── */
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 16px !important;
    left: 16px !important;
    font-size: 22px !important;
  }

  /* ── TABLAS ADMIN ── */
  .tabla-admin {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }

  /* ── ADMIN HEADER ── */
  header {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    text-align: center !important;
  }

  header nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  header nav a {
    margin: 0 !important;
    font-size: 13px !important;
  }

  /* ── LOGIN ── */
  .login-premium {
    padding: 16px !important;
  }

  .login-card {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 18px !important;
  }

  .login-header {
    padding: 28px 20px !important;
  }

  .login-form {
    padding: 22px 18px !important;
  }

  .login-links {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }

  /* ── REGISTRO ── */
  .auth-body {
    padding: 16px !important;
    align-items: flex-start !important;
    padding-top: 30px !important;
  }

  .auth-card {
    max-width: 100% !important;
    width: 100% !important;
  }

  .auth-form-content {
    padding: 16px 18px !important;
  }

  .input-row {
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* ── SECCIONES ── */
  .section-light,
  .section-dark {
    padding: 40px 20px !important;
  }

  .section-light h3,
  .section-dark h3 {
    font-size: 22px !important;
    margin-bottom: 28px !important;
  }

  /* ── CTA ── */
  .cta-real {
    padding: 50px 20px !important;
  }

  .cta-real h2 {
    font-size: 24px !important;
  }

  /* ── FOOTER ── */
  .landing-footer {
    padding: 18px 16px !important;
    font-size: 13px !important;
  }

  footer {
    padding: 14px 16px !important;
    font-size: 13px !important;
    margin-top: 30px !important;
  }

  /* ── CONTAINER ── */
  .container {
    padding: 16px !important;
  }

  /* ── GENERAL TYPOGRAPHY ── */
  h1 { font-size: 22px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  p  { font-size: 14px !important; line-height: 1.6 !important; }
}

/* ── Pantallas muy pequeñas (≤380px) ── */
@media (max-width: 380px) {

  .grid-premium {
    grid-template-columns: 1fr !important;
  }

  .card-img {
    height: 180px !important;
  }

  .metrics {
    grid-template-columns: 1fr !important;
  }

  .values {
    grid-template-columns: 1fr !important;
  }

  .landing-hero h2 {
    font-size: 22px !important;
  }
}

/* ── Tablets (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {

  .top-bar {
    padding: 0 20px !important;
  }

  .search-bar {
    margin: 0 15px !important;
    min-width: 200px !important;
  }

  .grid-premium {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .carrito-layout {
    grid-template-columns: 1fr !important;
  }

  .values {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .header-container {
    padding: 0 24px !important;
  }
}
/* ==========================================
   MEJORAS CATÁLOGO MÓVIL - SurTec v2
   ========================================== */

/* Título de tarjeta */
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Estrellas */
.card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* Precio mejorado */
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.precio small {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

/* Controles cantidad en tarjeta */
.card-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.qty-mini {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.qty-mini-btn {
  width: 30px;
  height: 30px;
  background: #f8fafc;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #374151;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-mini-btn:hover { background: #e2e8f0; }
.qty-mini-num {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-left: 1.5px solid #e2e8f0;
  border-right: 1.5px solid #e2e8f0;
  height: 30px;
  line-height: 30px;
}

/* Botón agregar mejorado */
.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-add:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-add:active { transform: translateY(0); }

/* Card body spacing */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 4px;
}

/* Mejoras móvil catálogo */
@media (max-width: 480px) {
  .grid-premium {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 8px 10px !important;
  }
  .card-premium {
    height: auto !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }
  .card-img {
    height: 130px !important;
  }
  .card-title {
    font-size: 12px !important;
    margin: 6px 0 3px !important;
  }
  .card-stars { display: none !important; }
  .desc-text { display: none !important; }
  .precio {
    font-size: 14px !important;
    margin: 4px 0 !important;
  }
  .precio small { display: none; }
  .card-qty-row { margin: 5px 0 !important; }
  .qty-mini-btn { width: 26px; height: 26px; font-size: 14px; }
  .qty-mini-num { min-width: 26px; height: 26px; line-height: 26px; font-size: 12px; }
  .btn-add {
    padding: 8px 6px !important;
    font-size: 12px !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }
  .btn-add i { display: none; }
}

@media (max-width: 360px) {
  .grid-premium {
    grid-template-columns: 1fr !important;
  }
  .card-img { height: 170px !important; }
  .card-title { font-size: 14px !important; }
  .precio { font-size: 16px !important; }
  .btn-add i { display: inline; }
}

/* ==========================================
   BADGE CUPÓN EN CARRITO
   ========================================== */
#badge-cupon {
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
