/* ═══════════════════════════════════════════════
   GRUPO MEGA — Hoja de estilos principal
   Paleta: fondo oscuro azulado + acentos azul eléctrico
   ═══════════════════════════════════════════════ */

:root {
  --bg-0: #04070d;            /* fondo más profundo */
  --bg-1: #080d18;            /* fondo secciones alternas */
  --bg-card: rgba(15, 23, 46, 0.55);
  --border: rgba(96, 165, 250, 0.14);
  --border-hover: rgba(96, 165, 250, 0.45);
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #38bdf8;
  --grad: linear-gradient(135deg, #4f8dff, #38bdf8);
  --text: #e8edf8;
  --text-muted: #92a0bd;
  --wa: #25d366;
  --radius: 18px;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Textura sutil de puntos sobre el fondo */
  background-image: radial-gradient(circle, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 28px 28px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════ Animaciones de aparición al hacer scroll ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }
.delay-5 { transition-delay: 0.60s; }

/* ═══════════ NAVEGACIÓN ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(4, 7, 13, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
}
.logo-text b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;   /* cada opción siempre en una sola línea */
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.3s;
  border-radius: 2px;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 9px 20px;
  background: var(--grad);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to top, var(--bg-0), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 130px 0 80px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 300;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.55);
}
.btn-ghost {
  border: 1px solid var(--border-hover);
  color: var(--text);
  background: rgba(59, 130, 246, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(59, 130, 246, 0.14); transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }

.hero-strip {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ═══════════ SECCIONES ═══════════ */
.section { padding: 110px 0; position: relative; scroll-margin-top: 64px; }
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ═══════════ TARJETAS DE SERVICIOS ═══════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  padding: 34px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.08);
}
.card:hover::before { opacity: 1; }
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 16px; }
.card-list { list-style: none; }
.card-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ═══════════ PAQUETES DE PÁGINAS WEB ═══════════ */
.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;   /* todas las tarjetas de la misma altura */
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.08);
}
/* Tarjeta central destacada */
.plan-destacado {
  border-color: var(--border-hover);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 46, 0.55));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(59, 130, 246, 0.14);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.plan-nombre {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.plan-precio {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;   /* separa el precio de la lista de incluye */
}
.plan-precio > span:first-child {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-precio-sufijo {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.plan-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;   /* empuja el botón al fondo para alinear los 3 */
}
.plan-lista li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.plan-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* En celular las tarjetas se apilan */
@media (max-width: 900px) {
  .planes-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

/* ═══════════ GIROS ═══════════ */
.giros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.giro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.96rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.giro span { font-size: 1.6rem; }
.giro:hover {
  border-color: var(--border-hover);
  background: rgba(59, 130, 246, 0.09);
  transform: translateY(-4px);
}
.giros-note { text-align: center; margin-top: 36px; color: var(--text-muted); }
.giros-note a { color: var(--blue-light); font-weight: 600; text-decoration: none; }
.giros-note a:hover { text-decoration: underline; }

/* ═══════════ ESTADÍSTICAS ═══════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-bottom: 70px;
}
.stat {
  text-align: center;
  padding: 34px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s;
}
.stat:hover { border-color: var(--border-hover); }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }

/* ═══════════ VENTAJAS ═══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.feature {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 0.92rem; }

/* ═══════════ PROCESO ═══════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: paso;
}
.step {
  position: relative;
  padding: 30px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.step:hover { border-color: var(--border-hover); transform: translateY(-6px); }
.step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(79, 141, 255, 0.55), rgba(56, 189, 248, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.88rem; }

/* ═══════════ FAQ ═══════════ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover, .faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
  padding: 20px 54px 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue-light);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ═══════════ CONTACTO ═══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a.contact-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.contact-card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.contact-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.contact-card p { font-size: 1.05rem; font-weight: 600; color: var(--blue-light); }
.contact-hint { font-size: 0.8rem; color: var(--text-muted); }

.contact-form {
  padding: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(4, 7, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-1); }
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #5b6880; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
}
.form-status.ok { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-tag { color: var(--text-muted); font-size: 0.9rem; }
.footer-copy { color: #5b6880; font-size: 0.82rem; }

/* ═══════════ BOTÓN FLOTANTE WHATSAPP ═══════════ */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s;
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%   { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70%  { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Menú hamburguesa: aparece en pantallas medianas para que no se amontone */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(4, 7, 13, 0.97);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border);
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  /* Dentro del menú móvil, "Acceso Clientes" se ve igual que los demás */
  nav.nav-links a.nav-clientes { font-size: 1.1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-strip { gap: 10px; }
  .strip-item { font-size: 0.8rem; padding: 8px 14px; }
}

/* ═══════════════════════════════════════════════
   NUEVOS COMPONENTES
   ═══════════════════════════════════════════════ */

/* ═══════════ PANTALLA DE CARGA ═══════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg-0);
  transition: opacity 0.5s ease, visibility 0.5s;
}
#preloader svg { animation: preloaderPulso 1.4s ease-in-out infinite; }
.preloader-texto {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  opacity: 0.85;
}
.preloader-texto b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#preloader.oculto { opacity: 0; visibility: hidden; pointer-events: none; }
.sin-preloader #preloader { display: none; }
@keyframes preloaderPulso {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
}

/* ═══════════ BARRA DE PROGRESO DE LECTURA ═══════════ */
#barraProgreso {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 150;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

/* ═══════════ BOTÓN VOLVER ARRIBA ═══════════ */
#btnArriba {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: rgba(8, 13, 24, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--blue-light);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#btnArriba.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#btnArriba:hover { background: rgba(59, 130, 246, 0.2); transform: translateY(-3px); }
body[data-edicion] #btnArriba { display: none; }

/* ═══════════ HERO EN DOS COLUMNAS ═══════════ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-bottom: 56px;
}
.hero-text .hero-sub { margin-left: 0; }
.hero-grid h1 { font-size: clamp(2.2rem, 4.3vw, 3.6rem); }
.hero-grid .hero-actions { justify-content: flex-start; margin-bottom: 0; }
.hero-content { padding-bottom: 60px; }

/* Cursor parpadeante del efecto de escritura */
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--cyan);
  border-radius: 2px;
  animation: cursorParpadeo 0.9s steps(1) infinite;
}
@keyframes cursorParpadeo { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ═══════════ TERMINAL PUNTO DE VENTA ANIMADA ═══════════ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.pos-terminal {
  width: min(360px, 82vw);
  background: linear-gradient(165deg, #0d1526, #080d18);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 22px;
  padding: 16px 16px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(59, 130, 246, 0.12);
  transform: rotateY(-7deg) rotateX(3deg);
  animation: posFlotar 6s ease-in-out infinite alternate;
}
@keyframes posFlotar {
  from { transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
  to   { transform: rotateY(-7deg) rotateX(3deg) translateY(-12px); }
}
.pos-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
}
.pos-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(96, 165, 250, 0.25); }
.pos-dot:first-child { background: rgba(96, 165, 250, 0.55); }
.pos-title {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.pos-screen {
  background: rgba(4, 7, 13, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.pos-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(96, 165, 250, 0.12);
  opacity: 0;
  animation: posItem 8s ease infinite both;
}
.pos-row b { color: var(--text); font-weight: 600; }
/* Ayuda a Safari (iPhone/iPad) a componer las animaciones correctamente */
.pos-row, .pos-ticket, .pos-toast { will-change: transform, opacity; }
.pos-terminal { will-change: transform; }
.pos-row:nth-child(1) { animation-delay: 0.5s; }
.pos-row:nth-child(2) { animation-delay: 1.1s; }
.pos-row:nth-child(3) { animation-delay: 1.7s; }
.pos-row:nth-child(4) { animation-delay: 2.3s; }
@keyframes posItem {
  0% { opacity: 0; transform: translateX(-10px); }
  4% { opacity: 1; transform: translateX(0); }
  86% { opacity: 1; }
  93%, 100% { opacity: 0; }
}
.pos-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.pos-total b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: posTotalBrillo 8s ease infinite;
}
@keyframes posTotalBrillo {
  0%, 34% { filter: brightness(1); }
  38% { filter: brightness(1.6); }
  42%, 100% { filter: brightness(1); }
}
.pos-cobrar {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  animation: posCobrar 8s ease infinite;
}
@keyframes posCobrar {
  0%, 40% { transform: scale(1); filter: brightness(1); }
  43% { transform: scale(0.96); filter: brightness(1.35); }
  46%, 100% { transform: scale(1); filter: brightness(1); }
}
.pos-slot {
  width: 55%;
  height: 6px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: rgba(4, 7, 13, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.pos-ticket-zone {
  height: 96px;
  width: 48%;
  margin: 0 auto;
  overflow: hidden;
}
.pos-ticket {
  background: #eef2fa;
  border-radius: 0 0 6px 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translateY(-105%);
  animation: posTicket 8s ease-in-out infinite both;
  animation-delay: 3.8s;
}
@keyframes posTicket {
  0% { transform: translateY(-105%); opacity: 1; }
  28% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(0); opacity: 1; }
  88% { transform: translateY(18%); opacity: 0; }
  100% { transform: translateY(-105%); opacity: 0; }
}
.tk-line { height: 5px; border-radius: 3px; background: #b9c3d8; }
.tk-line.w50 { width: 50%; } .tk-line.w60 { width: 60%; }
.tk-line.w75 { width: 75%; } .tk-line.w80 { width: 80%; } .tk-line.w85 { width: 85%; }
.tk-total { height: 8px; width: 45%; border-radius: 3px; background: #3b82f6; margin-top: 2px; }

.pos-toast {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid var(--border-hover);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: posToast 8s ease infinite;
}
.toast-a { top: 12%; right: -4%; animation-delay: 3.4s; color: #4ade80; }
.toast-b { bottom: 20%; left: -6%; animation-delay: 5.2s; }
@keyframes posToast {
  0%, 2% { opacity: 0; transform: translateY(10px); }
  8% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; }
  38%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* ═══════════ BRILLO QUE SIGUE AL CURSOR ═══════════ */
.glow-target { position: relative; }
.glow-target::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glow-target:hover::after { opacity: 1; }

/* ═══════════ CINTA DE MARCAS ═══════════ */
.marcas { padding: 34px 0 30px; border-bottom: 1px solid var(--border); }
.marcas-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.marcas-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marcas-track {
  display: flex;
  gap: 70px;
  width: max-content;
  animation: marquesina 26s linear infinite;
}
.marcas-track:hover { animation-play-state: paused; }
body[data-edicion] .marcas-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
.marca {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #55627e;
  white-space: nowrap;
  transition: color 0.3s;
}
.marca:hover { color: var(--text); }
@keyframes marquesina {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════ TESTIMONIOS ═══════════ */
.testi-carrusel { position: relative; }
.testi-viewport { overflow: hidden; }
.testi-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.testi-slide {
  flex: 0 0 100%;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  text-align: center;
  margin: 0;
}
.testi-estrellas { color: #fbbf24; font-size: 1.1rem; letter-spacing: 4px; margin-bottom: 18px; }
.testi-slide blockquote {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 22px;
  font-style: italic;
}
.testi-slide blockquote::before { content: '“'; color: var(--blue-light); font-size: 1.4em; }
.testi-slide blockquote::after { content: '”'; color: var(--blue-light); font-size: 1.4em; }
.testi-slide figcaption b { display: block; font-size: 1rem; color: var(--text); }
.testi-slide figcaption span { font-size: 0.85rem; color: var(--text-muted); }
.testi-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(8, 13, 24, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}
.testi-flecha:hover { background: rgba(59, 130, 246, 0.25); }
.testi-prev { left: -14px; }
.testi-next { right: -14px; }
.testi-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.testi-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(96, 165, 250, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.testi-dots button.activo { background: var(--blue-light); transform: scale(1.35); }

/* ═══════════ GALERÍA ═══════════ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.galeria-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.galeria-item:hover img { transform: scale(1.06); }
.galeria-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(4, 7, 13, 0.9), transparent);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4vh 4vw;
  background: rgba(4, 7, 13, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
#lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
#lightbox p { color: var(--text); font-size: 0.95rem; }
#lightbox .cerrar {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 2rem;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
}
#lightbox .cerrar:hover { color: #fff; }

/* ═══════════ RESPONSIVE DE NUEVOS COMPONENTES ═══════════ */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-grid .hero-actions { justify-content: center; }
  .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
  .pos-terminal { transform: none; animation-name: posFlotarMovil; }
  .pos-toast { display: none; }
  .testi-slide { padding: 32px 26px; }
  .testi-prev { left: -6px; }
  .testi-next { right: -6px; }
}
@keyframes posFlotarMovil {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* Respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
  .pos-terminal, .pos-cobrar, .pos-total b { animation: none; }
  .pos-row { animation: none; opacity: 1; transform: none; }
  .pos-ticket { animation: none; transform: translateY(0); }
  .pos-toast { display: none; }
  .marcas-track { animation-duration: 60s; }
  .type-cursor { display: none; }
  #preloader { display: none; }
}

/* ═══════════════════════════════════════════════
   MODO EDICIÓN (compartido por index.php y clientes.php)
   ═══════════════════════════════════════════════ */
body[data-edicion] [data-edit] { outline: 1px dashed rgba(96, 165, 250, 0.35); outline-offset: 3px; cursor: text; min-width: 10px; }
body[data-edicion] [data-edit]:hover { outline-color: rgba(96, 165, 250, 0.7); }
body[data-edicion] [data-edit]:focus { outline: 2px solid var(--blue); outline-offset: 3px; background: rgba(59, 130, 246, 0.06); }
body[data-edicion] .wa-float { display: none; }
body[data-edicion] { padding-bottom: 90px; }
#barraEditor {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; align-items: center; gap: 12px;
  max-width: 94vw; flex-wrap: wrap; justify-content: center;
  padding: 12px 20px; border-radius: 16px;
  background: rgba(8, 13, 24, 0.92); border: 1px solid rgba(96, 165, 250, 0.35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); font-size: 0.9rem;
}
#barraEditor.pendiente { border-color: #fbbf24; }
#estadoEditor { color: var(--text-muted); }
#barraEditor.pendiente #estadoEditor { color: #fbbf24; }
.btn-editor {
  padding: 9px 16px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  background: var(--grad); color: #fff; text-decoration: none;
}
.btn-editor:disabled { opacity: 0.6; cursor: wait; }
.btn-salir { background: none; border: 1px solid rgba(96, 165, 250, 0.35); color: var(--text-muted); }
.btn-salir:hover { color: #fff; }

/* ═══════════ ENLACE "ACCESO CLIENTES" EN EL MENÚ (discreto) ═══════════ */
.nav-links a.nav-clientes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.nav-links a.nav-clientes:hover { color: var(--text); background: none; transform: none; }

/* ═══════════ PÁGINAS DE ACCESO (login clientes / ajustes) ═══════════ */
.acceso-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}
.acceso-caja {
  width: 100%; max-width: 420px; padding: 40px 34px;
  background: var(--bg-card); border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 18px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  text-align: center;
}
.acceso-caja h1 { font-family: var(--font-head); font-size: 1.4rem; margin: 14px 0 6px; }
.acceso-caja .sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 26px; }
.acceso-caja input[type="password"] {
  width: 100%; padding: 14px 16px; background: rgba(4, 7, 13, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.18); border-radius: 11px;
  color: var(--text); font-size: 1rem; font-family: var(--font-body); margin-bottom: 14px;
}
.acceso-caja input[type="password"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.acceso-caja .msg { font-size: 0.9rem; margin-bottom: 14px; }
.acceso-caja .msg.error { color: #f87171; }
.acceso-caja .msg.ok { color: #4ade80; }
.acceso-liga { display: inline-block; margin-top: 18px; color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.acceso-liga:hover { color: var(--text); }

/* ═══════════ BARRA SUPERIOR DEL PORTAL DE CLIENTES ═══════════ */
.portal-top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  background: rgba(4, 7, 13, 0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.portal-acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.portal-btn {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border-hover); color: var(--text);
  transition: all 0.3s;
}
.portal-btn:hover { background: rgba(59, 130, 246, 0.14); }
.portal-btn.primario { background: var(--grad); border: 0; color: #fff; }

/* ═══════════ FICHAS DE CLIENTES (glassmorfismo) ═══════════ */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.cliente-card {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.10), rgba(15, 23, 46, 0.45));
  border: 1px solid rgba(96, 165, 250, 0.22);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: cardEntra 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}
.cliente-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.cliente-card::before {
  content: '';
  position: absolute; top: -40%; right: -30%;
  width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  pointer-events: none;
}
.cliente-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 62px; }
.cliente-icono {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; border-radius: 16px;
  background: rgba(4, 7, 13, 0.4); border: 1px solid rgba(96, 165, 250, 0.25);
}
.cliente-titulos { min-width: 0; }
.cliente-nombre { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.cliente-giro { font-size: 0.82rem; color: var(--blue-light); font-weight: 500; }
.cliente-datos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cliente-dato { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text-muted); }
.cliente-dato span:first-child { flex-shrink: 0; }
.cliente-nota {
  font-size: 0.85rem; color: var(--text-muted);
  padding-top: 14px; border-top: 1px dashed rgba(96, 165, 250, 0.18);
  font-style: italic;
}
.cliente-badge {
  position: absolute; top: 22px; right: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80; font-size: 0.72rem; font-weight: 600;
}
.cliente-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
@keyframes cardEntra { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cliente-card:nth-child(1) { animation-delay: 0.04s; }
.cliente-card:nth-child(2) { animation-delay: 0.10s; }
.cliente-card:nth-child(3) { animation-delay: 0.16s; }
.cliente-card:nth-child(4) { animation-delay: 0.22s; }
.cliente-card:nth-child(5) { animation-delay: 0.28s; }
.cliente-card:nth-child(6) { animation-delay: 0.34s; }
.cliente-card:nth-child(7) { animation-delay: 0.40s; }
.cliente-card:nth-child(8) { animation-delay: 0.46s; }

/* ═══════════ AJUSTES (cambiar claves) ═══════════ */
.ajustes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.ajustes-card {
  padding: 30px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.ajustes-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ajustes-card p.desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.ajustes-card label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.ajustes-card input {
  width: 100%; padding: 13px 16px; margin-bottom: 16px;
  background: rgba(4, 7, 13, 0.6); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
}
.ajustes-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .cliente-card { animation: none; }
}
