/* ==========================================================
   NW STUDIO · ELECTRIC NIGHT
   Hoja única del sitio público y del panel. Reemplaza earth-tone.css.
   Bootstrap 5.3 se conserva; esta hoja solo cambia presentación.
   Paleta oficial: Jet Black #080B0F · Charcoal #14171C · Graphite #222630
   · Border #30343F · Electric Purple #8B45FF · Neon Cyan #00D9FF
   · RGB Magenta #FF35C8 · Electric Blue #426BFF · Soft White #F4F4F8
   · Muted Gray #A1A7B3.
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  --nw-bg: #080B0F;
  --nw-surface: #14171C;
  --nw-surface-2: #222630;
  --nw-surface-3: #2B303C;
  --nw-border: #30343F;
  --nw-text: #F4F4F8;
  --nw-text-muted: #A1A7B3;

  --nw-primary: #8B45FF;
  --nw-primary-hover: #9A5DFF;
  --nw-primary-text: #B48CFF;
  --nw-primary-deep: #6A2BD9;
  --nw-primary-soft: rgba(139, 69, 255, 0.14);
  --nw-cyan: #00D9FF;
  --nw-magenta: #FF35C8;
  --nw-blue: #426BFF;
  --nw-success: #3FD68C;
  --nw-danger: #FF5C7A;
  --nw-warning: #FFC24D;

  --nw-gradient-rgb: linear-gradient(110deg, #FF2D55, #FF9F1C, #FFE135, #3FFF8B, #00E5FF, #426BFF, #B44DFF, #FF35C8);
  --nw-gradient-brand: linear-gradient(135deg, #8B45FF 0%, #426BFF 100%);
  --nw-glow: 0 12px 34px -12px rgba(139, 69, 255, 0.6);
  --nw-radius: 16px;
  --nw-radius-lg: 24px;
  --nw-ease: cubic-bezier(.2, .7, .2, 1);

  /* Bootstrap 5.3 */
  --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-bg: var(--nw-bg);
  --bs-body-color: var(--nw-text);
  --bs-emphasis-color: #FFFFFF;
  --bs-secondary-color: var(--nw-text-muted);
  --bs-secondary-bg: var(--nw-surface);
  --bs-tertiary-bg: var(--nw-surface);
  --bs-border-color: var(--nw-border);
  --bs-border-color-translucent: rgba(48, 52, 63, .6);
  --bs-primary: var(--nw-primary);
  --bs-primary-rgb: 139, 69, 255;
  --bs-link-color: var(--nw-primary-text);
  --bs-link-color-rgb: 180, 140, 255;
  --bs-link-hover-color: #D2BBFF;
  --bs-card-bg: var(--nw-surface);
  --bs-card-border-color: var(--nw-border);
  --bs-dropdown-bg: var(--nw-surface-2);
  --bs-dropdown-border-color: var(--nw-border);
  --bs-dropdown-link-color: var(--nw-text);
  --bs-dropdown-link-hover-color: #FFFFFF;
  --bs-dropdown-link-hover-bg: var(--nw-primary-soft);
  --bs-modal-bg: var(--nw-surface);
  --bs-modal-border-color: var(--nw-border);
  --bs-list-group-bg: var(--nw-surface);
  --bs-list-group-border-color: var(--nw-border);
  --bs-table-bg: transparent;
  --bs-table-color: var(--nw-text);
  --bs-table-border-color: var(--nw-border);
  --bs-table-striped-bg: rgba(255, 255, 255, .025);
  --bs-table-hover-bg: rgba(139, 69, 255, .08);
  --bs-focus-ring-color: rgba(139, 69, 255, .45);

  /* Alias de nombres heredados que siguen en las vistas (apuntan a la paleta oficial) */
  --primary-wine: var(--nw-primary);
  --primary-blue: var(--nw-cyan);
  --primary-green-yellow: var(--nw-cyan);
  --primary-orange: var(--nw-magenta);
  --primary-gray: var(--nw-text-muted);
  --primary-gray-dark: var(--nw-surface-2);
  --primary-gray-very-dark: var(--nw-bg);
  --primary-blue-gray: var(--nw-surface-2);
  --accent-primary: var(--nw-primary);
  --accent-red: var(--nw-primary);
  --accent-green: var(--nw-cyan);
  --accent-gold: var(--nw-magenta);
  --bg-light: var(--nw-bg);
  --bg-subtle: var(--nw-surface);
  --bg-dark: var(--nw-surface);
  --text-primary: var(--nw-text);
  --text-secondary: var(--nw-text-muted);
  --secondary: var(--nw-text-muted);
  --cafe-dark: var(--nw-text);
  --cafe-warm: var(--nw-text-muted);
  --cafe-tan: var(--nw-text-muted);
  --border-light: var(--nw-border);
  --border-mid: var(--nw-border);
}

/* ---------- 2. Base ---------- */
html { background: var(--nw-bg); }
body {
  font-family: var(--bs-body-font-family);
  background-color: var(--nw-bg);
  background-image:
    radial-gradient(900px 480px at 85% -8%, rgba(139, 69, 255, .18), transparent 62%),
    radial-gradient(700px 420px at -5% 18%, rgba(66, 107, 255, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--nw-text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(139, 69, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--nw-cyan); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--nw-border) transparent; }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}
h1, .h1 { font-weight: 800; line-height: 1.04; }
h2, .h2 { font-weight: 700; line-height: 1.1; }
h3, .h3, h4, .h4 { font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.text-muted { color: var(--nw-text-muted) !important; }
.text-primary { color: var(--nw-primary-text) !important; }
.text-secondary { color: var(--nw-text-muted) !important; }
.text-gradient, h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #A66BFF 0%, #00D9FF 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Navegación: píldora de vidrio flotante ---------- */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: transparent;
  padding-block: 1rem;
  transition: padding .35s var(--nw-ease);
}
nav.navbar > .container-lg,
nav.navbar > .container {
  background: rgba(20, 23, 28, .55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--nw-border);
  border-radius: 999px;
  padding: .45rem .6rem .45rem 1.1rem;
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9);
  transition: background-color .35s var(--nw-ease), border-color .35s var(--nw-ease), box-shadow .35s var(--nw-ease);
}
nav.navbar.is-scrolled { padding-block: .55rem; }
nav.navbar.is-scrolled > .container-lg,
nav.navbar.is-scrolled > .container {
  background: rgba(8, 11, 15, .82);
  border-color: rgba(139, 69, 255, .35);
  box-shadow: 0 18px 46px -22px rgba(139, 69, 255, .35);
}

.navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: -0.01em;
}
.navbar-brand strong { color: var(--nw-primary); font-weight: 800; }

.navbar-nav .nav-link {
  position: relative;
  color: var(--nw-text-muted) !important;
  font-weight: 600;
  font-size: .95rem;
  padding-inline: .8rem !important;
  transition: color .25s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.active { color: #FFFFFF !important; }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--nw-primary);
  box-shadow: 0 0 10px rgba(139, 69, 255, .8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--nw-ease);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
  border: 1px solid var(--nw-border);
  border-radius: 12px;
  padding: .4rem .55rem;
  background: var(--nw-surface);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(139, 69, 255, .3); }
.navbar-toggler-icon { filter: invert(1) brightness(1.4); }

.dropdown-menu,
.navbar-collapse.show {
  background: rgba(20, 23, 28, .94);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9);
}
.dropdown-item { border-radius: 10px; font-weight: 600; color: var(--nw-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--nw-primary-soft); color: #fff; }
.dropdown-divider { border-color: var(--nw-border); }

/* ---------- 5. Botones ---------- */
.btn {
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: .7rem 1.4rem;
  border-width: 1px;
  transition: transform .25s var(--nw-ease), box-shadow .25s var(--nw-ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn.disabled { transform: none; box-shadow: none; opacity: .5; }

/* Acción principal: morado de marca */
.btn-primary,
.btn-blue,
.btn-wine,
.btn-login-modal,
.btn-blue-login,
.btn-blue-register {
  background: var(--nw-primary);
  border: 1px solid var(--nw-primary);
  color: #FFFFFF;
  box-shadow: var(--nw-glow);
}
.btn-primary:hover, .btn-primary:focus,
.btn-blue:hover, .btn-blue:focus,
.btn-wine:hover, .btn-wine:focus,
.btn-login-modal:hover, .btn-login-modal:focus,
.btn-blue-login:hover, .btn-blue-login:focus,
.btn-blue-register:hover, .btn-blue-register:focus {
  background: var(--nw-primary-hover);
  border-color: var(--nw-primary-hover);
  color: #FFFFFF;
  box-shadow: 0 18px 46px -12px rgba(139, 69, 255, .75);
}
.btn-primary:active, .btn-blue:active, .btn-wine:active { background: var(--nw-primary-deep); border-color: var(--nw-primary-deep); }

/* Acento RGB para acciones de tienda y comisiones */
.btn-orange {
  background: var(--nw-magenta);
  border: 1px solid var(--nw-magenta);
  color: #FFFFFF;
  box-shadow: 0 12px 34px -14px rgba(255, 53, 200, .6);
}
.btn-orange:hover { background: #FF5AD6; border-color: #FF5AD6; color: #fff; box-shadow: 0 18px 46px -14px rgba(255, 53, 200, .75); }

/* Secundarios: grafito con borde discreto */
.btn-gray,
.btn-gray-dark,
.btn-very-dark,
.btn-blue-gray,
.btn-secondary,
.btn-light {
  background: var(--nw-surface-2);
  border: 1px solid var(--nw-border);
  color: var(--nw-text);
}
.btn-gray:hover, .btn-gray-dark:hover, .btn-very-dark:hover, .btn-blue-gray:hover,
.btn-secondary:hover, .btn-light:hover {
  background: var(--nw-surface-3);
  border-color: #464D5C;
  color: #FFFFFF;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-light {
  color: var(--nw-text);
  border: 1px solid var(--nw-border);
  background: rgba(255, 255, 255, .03);
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-light:hover {
  color: #FFFFFF;
  border-color: var(--nw-cyan);
  background: rgba(0, 217, 255, .08);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, .25), 0 10px 30px -14px rgba(0, 217, 255, .5);
}

.btn-danger { background: var(--nw-danger); border-color: var(--nw-danger); color: #080B0F; }
.btn-success { background: var(--nw-success); border-color: var(--nw-success); color: #06100B; }
.btn-sm { padding: .42rem .95rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }

/* Flecha en botones de llamado a la acción (CTA) */
.btn-cta::after {
  content: "→";
  display: inline-block;
  margin-left: .5rem;
  transition: transform .3s var(--nw-ease);
}
.btn-cta:hover::after { transform: translateX(4px); }

/* Botones de acceso social del modal de login */
.btn-oauth-modal {
  padding: .45rem .85rem;
  font-size: .9rem;
  border-radius: 12px;
  background: var(--nw-surface-2);
  border: 1px solid var(--nw-border);
  color: var(--nw-text);
}
.btn-oauth-modal:hover { background: var(--nw-surface-3); color: #fff; border-color: #464D5C; }

/* ---------- 6. Superficies: tarjetas, paneles y cristal ---------- */
.card,
.modal-content,
.nw-glass {
  background: rgba(20, 23, 28, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  color: var(--nw-text);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .9);
  transition: transform .4s var(--nw-ease), border-color .4s var(--nw-ease), box-shadow .4s var(--nw-ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 69, 255, .55);
  box-shadow: 0 26px 56px -30px rgba(139, 69, 255, .55);
}
.card-title { color: #FFFFFF; }
.card-header, .card-footer { background: transparent; border-color: var(--nw-border); color: #FFFFFF; }
.card-img-top { border-radius: var(--nw-radius) var(--nw-radius) 0 0; }

/* Cristal destacado con borde degradado RGB */
.nw-crystal {
  position: relative;
  background: linear-gradient(150deg, rgba(34, 38, 48, .85), rgba(20, 23, 28, .6));
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-radius: var(--nw-radius-lg);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 70px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.nw-crystal::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,69,255,.9), rgba(0,217,255,.35), rgba(255,53,200,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bg-light, .bg-light-earth, .bg-white, .bg-body, .bg-light-earth-subtle {
  background-color: var(--nw-surface) !important;
  color: var(--nw-text);
}
.bg-light-earth-subtle, .bg-wine-light { background-color: var(--nw-primary-soft) !important; }
.bg-blue-light { background-color: rgba(66, 107, 255, .12) !important; }
.bg-dark { background-color: var(--nw-bg) !important; color: var(--nw-text); }
.text-dark, .text-body, .text-black { color: var(--nw-text) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--nw-border) !important; }

/* Secciones: fondo alterno suave */
section.py-5.bg-light,
section.py-5.bg-light-earth { background-color: transparent !important; }

/* Sección con encabezado (heredado: .section-header) */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 1.5rem 1rem 0;
}
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-header p { font-size: 1.05rem; color: var(--nw-text-muted); font-weight: 500; }

/* Separadores */
.divider {
  height: 2px;
  background: var(--nw-gradient-rgb);
  border-radius: 2px;
  margin: 2rem 0;
  opacity: .8;
}
.divider-section { display: flex; align-items: center; gap: 1rem; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--nw-border), transparent); }
.divider-text { color: var(--nw-text-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(139, 69, 255, .28), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(255, 53, 200, .12), transparent 70%),
    var(--nw-bg);
  border-bottom: 1px solid var(--nw-border);
  isolation: isolate;
}
/* Cuadrícula técnica muy sutil */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}
/* Línea RGB animada en el borde inferior del hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--nw-gradient-rgb);
  background-size: 200% 100%;
  animation: nw-rgb-flow 9s linear infinite;
  opacity: .9;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1.25rem; }
.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--nw-text-muted);
  font-weight: 500;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- 8. Bento: servicios y portafolio ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.25rem;
}
.services-grid > :nth-child(3n + 1) { grid-column: span 2; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.25rem;
}
.gallery-grid > :nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }

.services-grid > *, .gallery-grid > * { min-width: 0; }

/* ---------- 9. Formularios ---------- */
.form-control,
.form-select,
.form-control-modal,
.login-input-modal {
  background-color: var(--nw-surface-2);
  border: 1px solid var(--nw-border);
  color: var(--nw-text);
  border-radius: 12px;
  padding: .7rem 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.form-control::placeholder,
.form-control-modal::placeholder,
.login-input-modal::placeholder { color: #6E7480; opacity: 1; }
.form-control:focus,
.form-select:focus,
.form-control-modal:focus,
.login-input-modal:focus {
  background-color: #282D38;
  border-color: var(--nw-primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(139, 69, 255, .22);
}
.form-control:disabled, .form-select:disabled { background-color: #1A1E26; color: #6E7480; }
.form-select option { background: var(--nw-surface-2); color: var(--nw-text); }
.form-label { font-weight: 600; color: #DADDE5 !important; margin-bottom: .4rem; font-size: .92rem; }
.form-text { color: var(--nw-text-muted); }
.input-group-text { background: var(--nw-surface-2); border-color: var(--nw-border); color: var(--nw-text-muted); }
.form-check-input { background-color: var(--nw-surface-2); border-color: #3E4452; }
.form-check-input:checked { background-color: var(--nw-primary); border-color: var(--nw-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(139, 69, 255, .25); }

/* Opciones tipo tarjeta (método de pago, envío) */
label.border.rounded-3,
.form-check-label.border {
  background: var(--nw-surface);
  transition: border-color .25s, transform .25s var(--nw-ease), box-shadow .25s;
}
label.border.rounded-3:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px rgba(139, 69, 255, .55);
}

/* ---------- 10. Modal de acceso ---------- */
.modal-content {
  background: rgba(20, 23, 28, .96);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-lg);
}
.modal-header, .modal-footer { border-color: var(--nw-border); }
.modal-header { background: transparent; }
.modal-title { color: #FFFFFF; font-weight: 700; font-size: 1.4rem; }
.modal-body { background: transparent; color: var(--nw-text); }
.modal-backdrop.show { background: #000; opacity: .72 !important; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* ---------- 11. Alertas, badges, listas, tablas ---------- */
.alert {
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .8);
}
.alert-success { --bs-alert-color: #9BF0C6; --bs-alert-bg: rgba(63, 214, 140, .12); --bs-alert-border-color: rgba(63, 214, 140, .35); }
.alert-danger  { --bs-alert-color: #FFB3C1; --bs-alert-bg: rgba(255, 92, 122, .12); --bs-alert-border-color: rgba(255, 92, 122, .35); }
.alert-warning { --bs-alert-color: #FFE1A0; --bs-alert-bg: rgba(255, 194, 77, .12); --bs-alert-border-color: rgba(255, 194, 77, .35); }
.alert-info    { --bs-alert-color: #A6F3FF; --bs-alert-bg: rgba(0, 217, 255, .10); --bs-alert-border-color: rgba(0, 217, 255, .3); }
.alert-primary { --bs-alert-color: #D2BBFF; --bs-alert-bg: var(--nw-primary-soft); --bs-alert-border-color: rgba(139, 69, 255, .4); }
.alert .btn-close { filter: invert(1) grayscale(1) brightness(1.5); }

.badge { border-radius: 999px; font-weight: 700; letter-spacing: .02em; }
.badge-success { background-color: rgba(63, 214, 140, .18) !important; color: #9BF0C6 !important; }
.badge-danger  { background-color: rgba(255, 92, 122, .18) !important; color: #FFB3C1 !important; }
.badge-info    { background-color: rgba(0, 217, 255, .16) !important; color: #A6F3FF !important; }
.bg-danger { background-color: var(--nw-danger) !important; color: #080B0F; }
.bg-primary { background-color: var(--nw-primary) !important; color: #fff; }

.list-group { --bs-list-group-bg: var(--nw-surface); }
.list-group-item { background: transparent; border-color: var(--nw-border); color: var(--nw-text); }
.list-group-item-action:hover { background: var(--nw-primary-soft); color: #fff; }

.table { --bs-table-color: var(--nw-text); }
.table > :not(caption) > * > * { border-color: var(--nw-border); background-color: transparent; }
.table thead th, .table-light, .table-light > th, .table-light > td {
  background-color: var(--nw-surface-2) !important;
  color: #DADDE5;
}
.table-hover > tbody > tr:hover > * { color: #FFFFFF; }

/* ---------- 12. Pie de página ---------- */
footer {
  position: relative;
  margin-top: 4rem;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(139, 69, 255, .14), transparent 70%),
    var(--nw-surface);
  border-top: 1px solid var(--nw-border);
  color: var(--nw-text-muted);
  padding-top: 3rem;
}
footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--nw-gradient-rgb);
  opacity: .8;
}
footer h5, footer h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #FFFFFF;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
footer p, footer li { color: var(--nw-text-muted); }
footer ul { padding-left: 0; }
footer li { margin-bottom: .55rem; }
footer a {
  color: #C9CDD6;
  text-decoration: none;
  transition: color .25s, padding-left .25s var(--nw-ease);
}
footer a:hover { color: var(--nw-cyan); padding-left: 4px; }
footer .footer-bottom {
  border-top: 1px solid var(--nw-border);
  padding-top: 1.25rem;
  margin-top: 2.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  color: var(--nw-text-muted);
  font-size: .9rem;
}
footer .social-links a,
footer .social-links { display: inline-flex; align-items: center; }
footer .social-links a {
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  margin-right: .5rem;
  margin-bottom: .5rem;
  background: var(--nw-surface-2);
  border: 1px solid var(--nw-border);
  color: #E6E8EE;
  font-size: 1rem;
  padding-left: 0;
}
footer .social-links a:hover {
  background: var(--nw-primary);
  border-color: var(--nw-primary);
  color: #fff;
  padding-left: 0;
  transform: translateY(-3px);
  box-shadow: var(--nw-glow);
}

/* ---------- 13. Logo ---------- */
/* El SVG del logo no trae color: se pinta en blanco para verse sobre fondo oscuro. Su forma no cambia. */
.logo_horizontal path { fill: #FFFFFF; }
.hover_logo_h:hover .logo_horizontal path { fill: var(--nw-primary-text); }

/* ---------- 14. Movimiento ---------- */
@keyframes nw-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nw-rgb-flow {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
@keyframes nw-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 69, 255, 0); }
  50%      { box-shadow: 0 0 26px 0 rgba(139, 69, 255, .35); }
}
main .card,
main section > .container-lg > .row > [class*="col-"],
.services-grid > *,
.gallery-grid > * {
  animation: nw-rise .7s var(--nw-ease) both;
}
.services-grid > :nth-child(2), .gallery-grid > :nth-child(2) { animation-delay: .06s; }
.services-grid > :nth-child(3), .gallery-grid > :nth-child(3) { animation-delay: .12s; }
.services-grid > :nth-child(4), .gallery-grid > :nth-child(4) { animation-delay: .18s; }
.btn-primary.nw-pulse { animation: nw-glow-pulse 3s ease-in-out infinite; }

/* Subrayado animado en enlaces de contenido */
main a:not(.btn):not(.nav-link):not(.dropdown-item):not(.card) {
  background-image: linear-gradient(var(--nw-cyan), var(--nw-cyan));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .35s var(--nw-ease);
}
main a:not(.btn):not(.nav-link):not(.dropdown-item):not(.card):hover { background-size: 100% 1px; }

/* ---------- 15. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 16. Tablet y móvil ---------- */
@media (max-width: 991.98px) {
  nav.navbar > .container-lg,
  nav.navbar > .container { border-radius: 22px; }
  .navbar-collapse { margin-top: .75rem; padding: .75rem; }
  .navbar-nav .nav-link { padding: .65rem .5rem !important; }
  .navbar-nav .nav-link::after { display: none; }
  .card:hover { transform: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid > :nth-child(3n + 1) { grid-column: auto; }
  .services-grid > :nth-child(odd):last-child { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid > :nth-child(5n + 1) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 575.98px) {
  .container-lg, .container { padding-inline: 16px; }
  .btn.w-100, .btn-block { width: 100% !important; }
  .btn { padding: .65rem 1.15rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .hero { padding: 3.5rem 1rem; }
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .services-grid > *, .gallery-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .card { border-radius: 14px; }
  .nw-crystal { border-radius: 20px; }
  footer { margin-top: 2.5rem; padding-top: 2rem; }
  footer .row > [class*="col-"] { margin-bottom: 1.5rem; }
  .section-header { margin-bottom: 2.25rem; }
}

/* ---------- 17. Estilos del panel admin (antes en línea) ----------
   Clases generadas automáticamente desde style="" de las vistas admin.
   Se renombran a nombres semánticos cuando se revise cada pantalla. */
.adm-surface-muted { background-color: var(--nw-surface-2); }
.adm-surface-text { background-color: var(--nw-surface-2); color: var(--nw-text); }
.adm-section-header-accent { background-color: var(--nw-primary-soft); border-bottom: 2px solid var(--nw-primary); }
.nw-text-accent { color: var(--nw-primary-text); }
.adm-border-bottom-soft { border-bottom-color: var(--nw-border); }
.adm-btn-primary-bg { background-color: var(--nw-primary); }
.nw-fs-2rem { font-size: 2rem; }
.adm-form-heading-accent { color: var(--nw-primary-text); margin-bottom: 30px; }
.adm-card-shadow { background: var(--nw-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nw-border-color { border-color: var(--nw-border); }
.adm-coupon-selected { background-color: rgba(66, 107, 255, 0.08); border-color: var(--nw-primary); color: var(--nw-text); }
.adm-tint-cyan { background-color: rgba(0, 217, 255, 0.1); border-color: var(--nw-border); color: var(--nw-text); }
.adm-table-head { background-color: var(--nw-surface-2); border-bottom: 2px solid var(--nw-border); }
.adm-badge-cyan { background-color: var(--nw-cyan); color: var(--nw-text); }
.adm-badge-soft { background-color: var(--nw-primary-soft); color: var(--nw-primary-text); }
.nw-inline-block { display:inline; }
.nw-text-muted { color: var(--nw-text-muted); }
.adm-border-bottom { border-bottom: 2px solid var(--nw-border); }
.adm-tab-active { color: var(--nw-primary-text); border-bottom: 3px solid var(--nw-primary); }
.nw-text-default { color: var(--nw-text); }
.adm-icon-lg-mb { font-size: 2rem; margin-bottom: 16px; }
.adm-btn-primary-fill { background-color: var(--nw-primary); color: white; }
.adm-section-header-tint { background-color: rgba(139, 69, 255, 0.1); border-bottom: 2px solid var(--nw-border); }
.adm-block-top-border { border-top: 2px solid var(--nw-border); }
.adm-kpi-card-wine { border-left: 6px solid var(--primary-wine) !important; }
.nw-text-wine { color: var(--primary-wine); }
.adm-kpi-icon-wine { font-size: 2rem; color: var(--primary-wine); opacity: 0.2; }
.adm-kpi-card-blue-wide { border-left: 6px solid var(--primary-blue) !important; }
.nw-text-cyan { color: var(--primary-blue); }
.adm-kpi-icon-blue { font-size: 2rem; color: var(--primary-blue); opacity: 0.2; }
.adm-kpi-card-orange { border-left: 6px solid var(--primary-orange) !important; }
.nw-text-orange { color: var(--primary-orange); }
.adm-kpi-icon-orange { font-size: 2rem; color: var(--primary-orange); opacity: 0.2; }
.adm-kpi-card-lime-wide { border-left: 6px solid var(--primary-green-yellow) !important; }
.nw-text-lime { color: var(--primary-green-yellow); }
.adm-kpi-icon-cyan { font-size: 2rem; color: var(--primary-green-yellow); opacity: 0.2; }
.adm-kpi-card-wine-wide { background: rgba(139, 69, 255, 0.05); border-left: 4px solid var(--primary-wine) !important; }
.adm-kpi-card-blue { background: rgba(66, 107, 255, 0.05); border-left: 3px solid var(--primary-blue); }
.adm-kpi-card-blue-thin { background: rgba(66, 107, 255, 0.05); border-left: 4px solid var(--primary-blue) !important; }
.adm-kpi-card-lime { background: rgba(0, 217, 255, 0.05); border-left: 3px solid var(--primary-green-yellow); }
.adm-section-header-tint-2 { background-color: rgba(139, 69, 255, 0.1); border-bottom: 2px solid var(--nw-border); padding: 16px; }
.adm-dropzone { border: 2px dashed var(--nw-border); border-radius: 8px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.3s; }
.adm-empty-icon { font-size: 3rem; color: var(--nw-text-muted); margin-bottom: 16px; }
.adm-text-plain { color: var(--nw-text); margin: 0; }
.nw-hidden { display: none; }
.adm-accent-narrow { color: var(--nw-primary-text); width: 80px; }
.adm-accent-center { color: var(--nw-primary-text); text-align: center; }
.adm-cell-padded-text { color: var(--nw-text); padding: 12px; }
.adm-cell-text-sm { color: var(--nw-text); padding: 12px; font-size: 0.9rem; }
.adm-cell-center-text { color: var(--nw-text); padding: 12px; text-align: center; }
.adm-btn-cyan { background-color: var(--nw-cyan); color: white; }
.adm-badge-magenta-2 { background-color: var(--nw-magenta); color: white; }
.adm-surface-2-white { background-color: var(--nw-surface-2); color: white; }
.adm-cell-center-padded { padding: 12px; text-align: center; }
.nw-inline { display: inline; }
.adm-empty-icon-block { font-size: 3rem; margin-bottom: 16px; display: block; color: var(--nw-text-muted); }
.adm-empty-state-box { background-color: var(--nw-surface-2); padding: 16px; border-radius: 8px; text-align: center; }
.adm-text-accent-lg { color: var(--nw-primary-text); font-size: 1.5rem; font-weight: bold; }
.adm-text-accent-bold { color: var(--nw-primary-text); font-weight: bold; }
.adm-list-indent { color: var(--nw-text); padding-left: 20px; }
.adm-scroll-box { max-height: 200px; overflow-y: auto; }
.adm-gallery-thumb-box { background-color: var(--nw-surface-2); padding: 12px; border-radius: 6px; margin-bottom: 8px; font-size: 0.9rem; }
.adm-muted-gap { color: var(--nw-text); margin-top: 4px; }
.adm-divider-spaced { border-color: var(--nw-border); margin: 20px 0; }
.adm-badge-magenta { background-color: var(--nw-magenta); }
.nw-link-accent { color: var(--nw-primary-text); text-decoration: none; }
.nw-text-success { color: var(--nw-success); }
.adm-badge-magenta-fill { background-color: var(--nw-magenta); color: #fff; }
.adm-badge-success-fill { background-color: var(--nw-success); color: #fff; }
.adm-badge-primary-fill { background-color: var(--nw-primary); color: #fff; }
.adm-card-magenta-border { background-color: var(--nw-surface-2); border: 2px solid var(--nw-magenta) !important; }
.adm-orders-subpanel { background-color: var(--nw-surface-3); color: #fff; }
.nw-border-bottom { border-bottom: 1px solid var(--nw-border); }
.adm-table-collapse { border-collapse: collapse; background: var(--nw-surface); }
.adm-cell-accent-padded { color: var(--nw-primary-text); padding: 12px; }
.adm-cell-padded-text-2 { padding: 12px; color: var(--nw-text); }
.adm-cell-padding { padding: 12px; }
.adm-media-box { background: var(--nw-surface-2); overflow: hidden; }
.adm-gallery-placeholder { width: 100%; height: 200px; background-color: var(--nw-primary-soft); display: flex; align-items: center; justify-content: center; }
.adm-icon-accent-lg { font-size: 2rem; color: var(--nw-primary-text); }
.adm-card-selected { background-color: var(--nw-primary-soft); border-color: var(--nw-primary); color: var(--nw-text); }
.adm-surface-users { background: var(--nw-surface); color: var(--nw-text); }
.adm-layout-min-height { min-height: 100vh; }
.adm-sidebar { width: 280px; background: linear-gradient(180deg, var(--nw-surface) 0%, var(--nw-surface-2) 100%); border-right: 2px solid var(--nw-border); position: fixed; height: 100vh; overflow-y: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.adm-tint-purple-border { border-color: var(--nw-border); background: rgba(139, 69, 255, 0.05); }
.adm-nav-link { background-color: transparent; color: var(--nw-text-muted); text-decoration: none; transition: all 0.3s; border-left: 4px solid transparent; }
.nw-border-top { border-top: 1px solid var(--nw-border); }
.adm-nav-button { background-color: transparent; color: var(--nw-text-muted); border: none; cursor: pointer; text-decoration: none; transition: all 0.3s; }
.adm-main-offset { margin-left: 280px; background-color: var(--nw-surface-2); }
.adm-topbar { background: linear-gradient(90deg, var(--nw-surface) 0%, var(--nw-surface-2) 100%); border-bottom: 2px solid var(--nw-border); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.adm-nav-active { background-color: rgba(139, 69, 255, 0.1); border-color: var(--nw-primary); color: var(--nw-primary-text); }
.adm-thumb-tiny { max-height: 50px; border-radius: 4px; }
.adm-thumb-sm { max-height: 50px; border-radius: 4px; object-fit: cover; width: 50px; }
.adm-gallery-image { width: 100%; border-radius: 8px; object-fit: cover; }
.adm-image-cover { width: 100%; height: 200px; object-fit: cover; }
.adm-product-thumb { max-width: 150px; border-radius: 8px; }

/* ---------- 18. Estilos de tienda, carrito y checkout (antes en línea) ----------
   Clases generadas desde style="" de las vistas tienda. */
.shop-surface-panel { background: var(--nw-surface-2); }
.shop-surface-border { background: var(--nw-surface-2); border-color: var(--nw-border) !important; }
.shop-cart-panel { background: var(--nw-surface-2); border-color: var(--nw-border); color: var(--nw-text); }
.shop-confirm-width { max-width: 720px; }
.shop-tag-tan { background: rgba(255, 194, 77, 0.1); border-color: var(--nw-border) !important; }
.shop-confirm-panel { border-color: var(--nw-border); color: var(--nw-text); background: var(--nw-surface-2); }
.shop-checkout-highlight { background: linear-gradient(135deg, rgba(66, 107, 255, 0.08) 0%, rgba(139, 69, 255, 0.08) 100%); }
.shop-checkout-side-accent { background: var(--nw-surface); border-left: 6px solid var(--primary-blue) !important; }
.shop-field-accent-border { border-color: var(--primary-blue); border-width: 2px; }
.shop-field-hidden-accent { border-color: var(--primary-blue); border-width: 2px; }

/* Galería pública: corazones rojos, conteo de likes azul y compartir en verde */
.gallery-stats .fa-heart { color: #e0245e; }
.gallery-stats .like-total { color: #e0245e; font-weight: 600; }
.shop-section-divider { border-top: 2px solid var(--primary-blue); padding-top: 1.5rem; }
.nw-cursor-disabled { cursor: not-allowed; }
.shop-payment-option-disabled { border-color: var(--primary-blue) !important; border-width: 2px; display: block; opacity: .5; pointer-events: none; }
.shop-payment-logo { height: 40px; margin-right: 1rem; }
.nw-text-gray { color: var(--primary-gray); }
.shop-payment-option { border-color: var(--primary-blue) !important; border-width: 2px; display: block; transition: all 0.2s ease; }
.shop-cta-gradient { background: linear-gradient(90deg, var(--primary-wine), var(--primary-orange)); border: none; color: white; }
.shop-summary-sticky-accent { background: var(--nw-surface); border-left: 6px solid var(--primary-green-yellow) !important; position: sticky; top: 100px; }
.shop-section-underline { border-bottom: 2px solid var(--primary-blue); }
.shop-gradient-tile { background: linear-gradient(135deg, rgba(66, 107, 255, 0.1), rgba(0, 217, 255, 0.1)); border: 2px solid var(--primary-blue); }
.shop-payment-box { max-width: 640px; background: var(--nw-surface-2); border-color: var(--nw-border) !important; }
.shop-btn-disabled-state { background: var(--nw-primary-deep); opacity: .5; pointer-events: none; }
.nw-bg-primary-deep { background: var(--nw-primary-deep); }
.shop-narrow-600 { max-width: 600px; }
.shop-surface-border-2 { background: var(--nw-surface-2); border-color: var(--nw-border); }
.shop-empty-icon { font-size: 60px; margin-bottom: 15px; }
.shop-order-link-outline { border-color: var(--nw-primary-deep); color: var(--nw-primary-text); background: transparent; }
.shop-surface-outline { background: var(--nw-surface-2); border: 1px solid var(--nw-border) !important; }
.shop-order-icon-box { width: 80px; height: 80px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: linear-gradient(135deg, var(--nw-magenta) 0%, var(--nw-primary-deep) 100%); }
.shop-order-icon-lg { font-size: 24px; }
.shop-sticky-panel { background: var(--nw-surface-2); border: 1px solid var(--nw-border) !important; position: sticky; top: 20px; }
.shop-order-text { color: var(--nw-text); border-color: var(--nw-border); }
.shop-order-outline-magenta { border: 2px solid var(--nw-magenta); color: var(--nw-primary-text); background: transparent; }
.shop-order-status-badge { background: var(--nw-primary-deep); color: #fff; }
.shop-show-visual { background: linear-gradient(135deg, var(--nw-magenta), var(--nw-surface-2)); border-radius: 12px; height: 400px; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.shop-rating-col { width: 100px; text-align: center; }
.shop-tag-muted { background: var(--nw-primary-deep); color: white; }
.shop-tile-outline { border: 2px solid var(--nw-border); background: var(--nw-surface-2); color: var(--nw-text); font-weight: 600; }
.shop-tracking-body { background: var(--nw-surface-2); min-height: 60vh; }
.shop-tracking-width { max-width: 640px; }
.shop-cart-thumb-lg { width: 96px; height: 96px; background: var(--nw-border); }
.shop-cart-thumb-sm { width: 80px; background: var(--nw-surface-2); border-color: var(--nw-border); color: var(--nw-text); }
.shop-hero-visual { background: linear-gradient(to bottom right, var(--nw-surface-2), var(--nw-surface-2), var(--nw-surface-2)); min-height: 600px; display: flex; align-items: center; }
.shop-hero-narrow { max-width: 500px; }
.shop-hero-tile-neutral { background: var(--nw-surface-2); border: 2px solid var(--nw-border); color: var(--nw-text); font-weight: 600; }
.shop-hero-tile-info { background: var(--nw-primary-soft); border: 2px solid var(--nw-cyan) !important; cursor: pointer; transition: all 0.3s ease; }
.shop-hero-icon { font-size: 40px; margin-bottom: 10px; }
.shop-hero-tile-danger { background: rgba(255, 92, 122, 0.14); border: 2px solid var(--nw-primary-deep) !important; cursor: pointer; transition: all 0.3s ease; }
.shop-hero-tile-success { background: rgba(63, 214, 140, 0.12); border: 2px solid var(--nw-success) !important; cursor: pointer; transition: all 0.3s ease; }
.shop-card-link { text-decoration: none; color: inherit; }
.shop-product-card { background: var(--nw-surface-2); border: 2px solid var(--nw-border) !important; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; height: 100%; }
.shop-card-visual { background: linear-gradient(135deg, var(--nw-magenta), var(--nw-surface-2)); height: 250px; display: flex; align-items: center; justify-content: center; font-size: 60px; overflow: hidden; }
.shop-clamp-2lines { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-fw-bold { font-weight: 700; }

/* ---------- 19. Resto de la web pública (antes en línea) ---------- */
.web-auth-input { background-color: var(--nw-surface-2); border: none; }
.web-auth-header-gradient { background: linear-gradient(90deg, var(--nw-cyan) 0%, var(--nw-blue) 100%); border-radius: 20px 20px 0 0; }
.web-auth-button-text { color: white; font-weight: 700; }
.web-small-text { font-size: 0.9rem; }
.web-text-dark-tan { color: var(--cafe-dark); }
.web-auth-border-tan { border-color: var(--cafe-tan); }
.web-carousel-tint { background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(139, 69, 255, 0.08) 100%); }
.web-carousel-cta { background: linear-gradient(135deg, var(--nw-primary) 0%, var(--nw-magenta) 100%); box-shadow: 0 10px 40px rgba(139, 69, 255, 0.3); }
.web-carousel-slide { color: white; min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.web-carousel-icon { font-size: 3rem; opacity: 0.9; }
.web-carousel-title { font-size: 2.5rem; font-weight: 700; }
.web-carousel-subtitle { font-size: 1.1rem; opacity: 0.95; }
.web-carousel-caption { font-size: 0.9rem; opacity: 0.8; }
.web-carousel-empty { min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.web-carousel-text { font-size: 1.2rem; }
.web-logo-link { display: flex; align-items: center; height: 45px; }
.web-logo-svg { height: 45px; width: auto; max-width: 200px; }
.web-contact-width { max-width: 600px; margin: 0 auto; padding: 0; }
.web-contact-card { background: var(--bg-light); backdrop-filter: blur(10px); border: 2px solid var(--cafe-tan); border-radius: 15px; padding: 2.5rem; }
.web-contact-lead { font-size: 1.05rem; margin-bottom: 12px; }
.web-muted-secondary { color: var(--secondary); }
.web-error-kicker { letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; }
.web-scroll-box { max-height: 400px; overflow-y: auto; }
.web-hero-image { max-height: 400px; object-fit: cover; object-position: center; width: 100%; }
.web-icon-tan-lg { font-size: 2.5rem; color: var(--cafe-tan); }
.web-list-indent { text-align: left; margin: 1rem 0; padding-left: 1.25rem; }
.web-center-prose { max-width: 65ch; margin-left: auto; margin-right: auto; text-align: center; }
.web-icon-tan { color: var(--cafe-tan); }
.web-nav-avatar { width: 32px; height: 32px; object-fit: cover; }
.web-footer-accent { color: var(--accent-primary); }
.web-login-width { max-width: 420px; }
.web-login-surface { background: var(--nw-surface-2); border-color: var(--nw-border); }
.web-login-accent-lg { color: var(--nw-primary-text); font-size: 1.2rem; }
.web-login-alert { background: rgba(139, 69, 255, 0.12); border: 1px solid var(--nw-magenta); color: var(--nw-primary-text); }
.web-login-text { font-size: 0.95rem; color: var(--nw-text); }
.web-login-field { background: var(--nw-surface-2); border-color: var(--nw-border); color: var(--nw-text); }
.web-login-muted-sm { font-size: 0.9rem; color: var(--nw-text-muted); }
.web-divider-solid { background: var(--nw-border); }
.web-login-input { background: var(--nw-surface-2); border: 1px solid var(--nw-border); color: var(--nw-text); }
.web-gradient-tan { background: linear-gradient(135deg, var(--cafe-tan) 0%, var(--cafe-warm) 100%); }
.web-portfolio-glyph { color: var(--cafe-dark); font-size: 4rem; }
.web-pricing-tile { background: linear-gradient(135deg, var(--nw-surface-2) 0%, var(--nw-border) 100%); }
.web-profile-avatar { width: 150px; height: 150px; object-fit: cover; }
.web-quote-surface { background: var(--nw-surface-2); color: var(--nw-text); }
.web-quote-input-plain { background: var(--nw-surface-2); border: 1px solid var(--nw-border); }
.web-quote-alert { background: rgba(139, 69, 255, 0.12); border: 1px solid var(--nw-magenta); }
.web-quote-input { background: var(--nw-surface-2); border: 1px solid var(--nw-border); color: var(--nw-text); }
.web-service-tile-a { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-radius: 0 20px 20px 0; background: linear-gradient(135deg, var(--cafe-tan) 0%, var(--cafe-warm) 100%); color: white; }
.web-service-tile-b { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-radius: 20px 0 0 20px; background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-red) 100%); color: white; }
.web-service-tile-c { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-radius: 0 20px 20px 0; background: linear-gradient(135deg, var(--accent-green) 0%, #5a9431 100%); color: white; }
.web-service-tile-e { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-radius: 20px 0 0 20px; background: linear-gradient(135deg, var(--cafe-tan) 0%, var(--cafe-warm) 100%); color: white; }
.web-service-tile-f { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-radius: 0 20px 20px 0; background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-red) 100%); color: white; }
.web-service-tile-d { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 40px; border-radius: 20px 0 0 20px; background: linear-gradient(135deg, var(--accent-green) 0%, #5a9431 100%); color: white; }

/* ---------- 20. Componentes de páginas (portafolio, servicios, ilustración, precios, compra) ---------- */

/* Utilidades heredadas de color (tema anterior) */
.text-cafe-dark { color: var(--nw-text) !important; }
.text-cafe-warm { color: var(--nw-text-muted) !important; }
.text-cafe-tan { color: var(--nw-text-muted) !important; }
.bg-cafe-dark { background-color: var(--nw-surface) !important; }
.border-cafe-tan, .border-cafe-warm { border-color: var(--nw-border) !important; }

/* Encabezados de página y secciones */
.page-header { padding: 4rem 0 2.5rem; text-align: center; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.portfolio-section, .pricing-section, .process-section, .filter-section, .stats-section, .artists-section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.stats-section { border-block: 1px solid var(--nw-border); background: var(--nw-surface); }

/* Estadísticas */
.stat-box, .stat, .artist-stats > div {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  border: 1px solid var(--nw-border);
  transition: border-color .3s var(--nw-ease), transform .3s var(--nw-ease);
}
.stat-box:hover, .stat:hover { border-color: rgba(139, 69, 255, .5); transform: translateY(-3px); }
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}
.stat-label { color: var(--nw-text-muted); font-size: .9rem; font-weight: 600; margin-top: .5rem; }

/* Listas con viñeta propia */
.features-list { list-style: none; padding: 0; margin: 0; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .55rem 0;
  color: var(--nw-text);
  border-bottom: 1px dashed var(--nw-border);
}
.feature-item:last-child { border-bottom: 0; }
.feature-item i { color: var(--nw-cyan); margin-top: .25rem; }

/* Tarjetas de servicio y muestras */
.service-showcase, .showcase-card, .cta-card {
  position: relative;
  border-radius: var(--nw-radius-lg);
  background: var(--nw-surface);
  border: 1px solid var(--nw-border);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  transition: border-color .35s var(--nw-ease), box-shadow .35s var(--nw-ease), transform .35s var(--nw-ease);
}
.service-showcase:hover, .showcase-card:hover, .cta-card:hover {
  border-color: rgba(139, 69, 255, .5);
  box-shadow: 0 24px 50px -30px rgba(139, 69, 255, .5);
  transform: translateY(-4px);
}
.service-description { color: var(--nw-text-muted); }
.showcase-image { border-radius: var(--nw-radius); width: 100%; height: auto; }
.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: var(--nw-radius);
  background: var(--nw-surface-2);
  color: var(--nw-text-muted);
  border: 1px dashed var(--nw-border);
}

/* Pasos de proceso */
.process-timeline { position: relative; }
.process-step { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.75rem; position: relative; }
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px; top: 48px; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--nw-primary), transparent);
}
.step-number {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nw-primary);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--nw-glow);
}
.step-content h3, .step-content h4 { font-size: 1.15rem; margin-bottom: .3rem; }
.step-content p { color: var(--nw-text-muted); margin-bottom: 0; }

/* Filtros de portafolio */
.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--nw-border);
  background: var(--nw-surface-2);
  color: var(--nw-text);
  padding: .45rem 1rem;
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s var(--nw-ease);
}
.filter-btn:hover, .filter-btn.active { background: var(--nw-primary); border-color: var(--nw-primary); color: #fff; }

/* Precios */
.pricing-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--nw-radius-lg);
  background: var(--nw-surface);
  border: 1px solid var(--nw-border);
  transition: transform .35s var(--nw-ease), border-color .35s var(--nw-ease), box-shadow .35s var(--nw-ease);
}
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(139, 69, 255, .5); }
.pricing-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--nw-surface), var(--nw-surface)) padding-box,
    var(--nw-gradient-rgb) border-box;
  box-shadow: 0 30px 70px -36px rgba(139, 69, 255, .65);
}
.badge-featured {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--nw-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.plan-name { color: #FFFFFF; font-size: 1.25rem; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; }
.price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}
.price-period { color: var(--nw-text-muted); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0; flex: 1; }
.plan-features li { padding: .45rem 0; color: var(--nw-text); border-bottom: 1px dashed var(--nw-border); }
.plan-features li:last-child { border-bottom: 0; }
.plan-features i.fa-check { color: var(--nw-success); }
.plan-features i.fa-times { color: var(--nw-text-muted); }

/* Llamado final */
.cta-section { padding-block: clamp(3rem, 7vw, 5rem); }
.cta-card { text-align: center; background: radial-gradient(500px 240px at 50% 0%, rgba(139, 69, 255, .25), transparent 70%), var(--nw-surface); }

@media (max-width: 575.98px) {
  .process-step:not(:last-child)::before { left: 20px; }
  .step-number { flex-basis: 40px; height: 40px; }
  .pricing-card { padding: 1.5rem 1.25rem; }
}

/* Complementos de tarjetas de portafolio y precios */
.portfolio-meta { color: var(--nw-text-muted); font-size: .85rem; }
.plan-header { margin-bottom: 1rem; }
.plan-header p { color: var(--nw-text-muted); margin-bottom: 0; }
.bg-gradient-primary { background: var(--nw-gradient-brand) !important; color: #fff; }
.bg-gradient-secondary { background: linear-gradient(135deg, var(--nw-surface-3), var(--nw-surface-2)) !important; color: var(--nw-text); }
.bg-gradient-success { background: linear-gradient(135deg, var(--nw-success), var(--nw-cyan)) !important; color: #06100B; }

/* ---------- 21. Acceso, contacto, galería y utilidades migradas ---------- */

/* Utilidades nuevas (nombres semánticos en lugar de nombres de Tailwind) */
.nw-pointer { cursor: pointer; }
.nw-shadow-glass { box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); }
.nw-bg-surface { background-color: var(--nw-surface) !important; }
.nw-bg-surface-2 { background-color: var(--nw-surface-2) !important; }
.nw-fs-95 { font-size: .95rem; }
.nw-divide > * + * { border-top: 1px solid var(--nw-border); }
.nw-stack-2 > * + * { margin-top: .5rem; }
.nw-stack-4 > * + * { margin-top: 1rem; }
.nw-stack-6 > * + * { margin-top: 1.5rem; }

/* Modal de acceso y registro */
.login-modal-content { border-radius: var(--nw-radius-lg); }
.modal-dialog-custom { max-width: 420px; }
.modal-title-custom { font-weight: 800; letter-spacing: -0.01em; color: #FFFFFF; }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 3rem; }
.btn-show-password-modal {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--nw-text-muted);
  padding: .35rem .5rem;
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.btn-show-password-modal:hover { color: #fff; background: var(--nw-surface-3); }
.web-auth-header-gradient { background: var(--nw-gradient-brand); border-radius: var(--nw-radius-lg) var(--nw-radius-lg) 0 0; }
.badge-secondary { background-color: var(--nw-surface-3) !important; color: var(--nw-text) !important; }

/* Contacto */
.contact-section { padding-block: clamp(3rem, 6vw, 5rem); }
.contact-card {
  background: var(--nw-surface);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .9);
}
.contact-form-container { max-width: 640px; margin-inline: auto; }
.form-control-contact,
.textarea-contact {
  background-color: var(--nw-surface-2);
  border: 1px solid var(--nw-border);
  color: var(--nw-text);
  border-radius: 12px;
  padding: .75rem 1rem;
}
.form-control-contact:focus,
.textarea-contact:focus {
  background-color: #282D38;
  border-color: var(--nw-primary);
  box-shadow: 0 0 0 4px rgba(139, 69, 255, .22);
  color: #FFFFFF;
  outline: 0;
}
.textarea-contact { min-height: 160px; resize: vertical; }
.btn-contact-submit { background: var(--nw-primary); border: 1px solid var(--nw-primary); color: #fff; font-weight: 700; border-radius: 999px; padding: .75rem 1.6rem; box-shadow: var(--nw-glow); }
.btn-contact-submit:hover { background: var(--nw-primary-hover); border-color: var(--nw-primary-hover); color: #fff; }

/* Galería: acciones de imagen */
.like-btn, .share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--nw-surface-2);
  border: 1px solid var(--nw-border);
  color: var(--nw-text);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .25s, color .25s, background-color .25s;
}
.like-btn:hover, .share-btn:hover { border-color: var(--nw-primary); color: #fff; }
.like-count { color: var(--nw-text-muted); font-weight: 600; }

/* Botón rojo (Me gusta): clase propia, con corazón y conteo en blanco */
.btn-red { background: #e0245e; border: 1px solid #e0245e; color: #fff; font-weight: 700; box-shadow: 0 12px 30px -14px rgba(224, 36, 94, .7); }
.btn-red:hover, .btn-red:focus { background: #c81e4f; border-color: #c81e4f; color: #fff; box-shadow: 0 16px 36px -12px rgba(224, 36, 94, .75); }
.btn-red .fa-heart, .btn-red .like-count { color: #fff; }

/* Me gusta y compartir centrados en la tarjeta y en el detalle */
.gallery-actions, .gallery-actions-detail { justify-content: center; align-items: center; }

/* Botón compartir (componente gallery-share), versión compacta */
.share-btn-wrapper { position: relative; display: inline-block; padding: 2px; border-radius: 999px; background: linear-gradient(135deg, #86efac, #15803d); cursor: pointer; box-shadow: 0 6px 12px rgba(0, 0, 0, .05); transition: all .5s cubic-bezier(.16, 1, .3, 1); }
.share-btn-wrapper:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(22, 163, 74, .5); }
.share-btn-wrapper:active { transform: translateY(-1px) scale(.98); box-shadow: 0 6px 12px -4px rgba(22, 163, 74, .4); }
.share-btn-wrapper .share-inner { position: relative; width: 170px; height: 44px; background: linear-gradient(to bottom, #ffffff, #fafafa); border-radius: 999px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.share-btn-wrapper .hover-panel { position: absolute; top: 0; right: 0; width: calc(100% - 22px); height: 100%; background: linear-gradient(90deg, #22c55e, #15803d); border-radius: 999px; transform: translateX(105%); transition: transform .6s cubic-bezier(.22, 1, .36, 1); z-index: 1; }
.share-btn-wrapper:hover .hover-panel { transform: translateX(0); }
.share-btn-wrapper .share-text { position: absolute; font-size: 14px; font-weight: 800; letter-spacing: .4px; color: #166534; z-index: 2; transition: all .5s cubic-bezier(.22, 1, .36, 1); }
.share-btn-wrapper:hover .share-text { transform: translateX(-30px); opacity: 0; }
.share-btn-wrapper .social-icons { position: absolute; top: 0; right: 0; width: calc(100% - 22px); height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 3; transform: translateX(30px); opacity: 0; transition: all .6s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.share-btn-wrapper:hover .social-icons { transform: translateX(0); opacity: 1; pointer-events: auto; transition-delay: .05s; }
.share-btn-wrapper .social-icons a { display: flex; }
.share-btn-wrapper .social-icons button { display: flex; background: none; border: 0; padding: 0; cursor: pointer; }
/* Panel abierto con toque (pantallas sin hover) */
.share-btn-wrapper.is-open .hover-panel { transform: translateX(0); }
.share-btn-wrapper.is-open .share-text { transform: translateX(-30px); opacity: 0; }
.share-btn-wrapper.is-open .social-icons { transform: translateX(0); opacity: 1; pointer-events: auto; }
.share-btn-wrapper .social-icons button.is-copied svg { stroke: #BBF7D0; }
.share-btn-wrapper .social-icons svg { width: 16px; height: 16px; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease; cursor: pointer; }
.share-btn-wrapper .social-icons svg:hover { transform: scale(1.2) translateY(-2px); opacity: .9; }

/* Celular y pantallas táctiles: no hay cursor, así que los iconos se muestran siempre */
@media (hover: none), (max-width: 575.98px) {
  .share-btn-wrapper .share-text { transform: translateX(-30px); opacity: 0; }
  .share-btn-wrapper .hover-panel { transform: translateX(0); }
  .share-btn-wrapper .social-icons { transform: translateX(0); opacity: 1; pointer-events: auto; }
}

/* Ilustración */
.artist-info { color: var(--nw-text-muted); }
.artist-specialties { display: flex; flex-wrap: wrap; gap: .5rem; }
.oauth-icon-small { width: 18px; height: 18px; }
.artist-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .artist-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 22. Pasos de compra (carrito, datos, pago, confirmación) ---------- */
.nw-steps { padding-bottom: 0; }
.nw-steps__list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: 0;
  margin: 0 0 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.nw-steps__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--nw-text-muted);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.nw-steps__item + .nw-steps__item::before {
  content: "";
  width: clamp(18px, 4vw, 48px);
  height: 2px;
  margin-inline: .35rem;
  border-radius: 2px;
  background: var(--nw-border);
}
.nw-steps__item.is-done + .nw-steps__item::before,
.nw-steps__item.is-current::before { background: var(--nw-gradient-brand); }
.nw-steps__dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--nw-border);
  background: var(--nw-surface);
  font-weight: 800;
  font-size: .8rem;
  color: var(--nw-text-muted);
}
.nw-steps__item.is-done .nw-steps__dot { background: var(--nw-success); border-color: var(--nw-success); color: #06100B; }
.nw-steps__item.is-current { color: #FFFFFF; }
.nw-steps__item.is-current .nw-steps__dot { background: var(--nw-primary); border-color: var(--nw-primary); color: #fff; box-shadow: var(--nw-glow); }
@media (max-width: 575.98px) {
  .nw-steps__label { font-size: .78rem; }
  .nw-steps__item + .nw-steps__item::before { width: 14px; }
}

/* ---------- 23. Portafolio en bento ---------- */
.nw-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.5rem;
  margin: 0;
}
.nw-bento > .portfolio-item {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  min-width: 0;
}
.nw-bento > .portfolio-item:nth-child(5n + 1) { grid-column: span 2; }
@media (max-width: 991.98px) {
  .nw-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-bento > .portfolio-item:nth-child(5n + 1) { grid-column: span 2; }
}
@media (max-width: 575.98px) {
  .nw-bento { grid-template-columns: 1fr; }
  .nw-bento > .portfolio-item:nth-child(5n + 1) { grid-column: auto; }
}

/* ---------- 24. Ronda de ajustes: portada, servicios, tienda, galería y admin ---------- */

/* Animaciones compartidas */
@keyframes nw-arrow-swing { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes nw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes nw-rgb-shift { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* Flecha de llamado a la acción: una sola (la del CSS), más gruesa y con movimiento */
.btn-cta::after {
  content: "→";
  display: inline-block;
  margin-left: .55rem;
  font-weight: 900;
  font-size: 1.25em;
  line-height: 1;
  text-shadow: 0 0 1px currentColor;
  animation: nw-arrow-swing 1.1s ease-in-out infinite;
}
.btn-cta:hover::after { transform: none; }

/* Imagen de la portada con marco RGB */
.nw-hero-art {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(139, 69, 255, .35);
  box-shadow: 0 30px 80px -30px rgba(139, 69, 255, .65), 0 0 0 1px rgba(0, 217, 255, .08);
  animation: nw-float 6s ease-in-out infinite;
}
.nw-rgb-text {
  background: linear-gradient(100deg, #8B45FF, #426BFF, #00D9FF, #FF35C8, #8B45FF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nw-rgb-shift 8s linear infinite;
}

/* Sección Nosotros: título e icono de cada pilar */
.nw-about-design, .nw-about-design i { color: #FF9F1C !important; }
.nw-about-develop, .nw-about-develop i { color: #7FD8FF !important; }
.nw-about-simplify, .nw-about-simplify i { color: #FFB3D9 !important; }

/* Tarjetas de cristal (componente x-card) */
.card-box {
  position: relative;
  height: 100%;
  border-radius: var(--nw-radius-lg);
  background: linear-gradient(160deg, rgba(34, 38, 48, .55), rgba(20, 23, 28, .35));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px -32px rgba(0, 0, 0, .9);
  transition: transform .4s var(--nw-ease), border-color .4s var(--nw-ease), box-shadow .4s var(--nw-ease);
  overflow: hidden;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--nw-text);
}
.card-box:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 69, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(139, 69, 255, .6);
}
.card-container { height: 100%; }
.card-box h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.card-box p { color: var(--nw-text-muted); }
.card-box ul { padding-left: 1.1rem; }
.card-box li { margin-bottom: .2rem; }
.card-badge { display: none; }

/* Iconos de servicio de la portada: color RGB con movimiento */
.nw-svc-icon {
  display: inline-block;
  font-size: 2.2rem;
  background: var(--nw-gradient-rgb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nw-float 4s ease-in-out infinite, nw-rgb-shift 6s linear infinite;
}
.nw-svc-icon.nw-svc-2 { background-image: linear-gradient(90deg, #00D9FF, #426BFF, #8B45FF); }
.nw-svc-icon.nw-svc-3 { background-image: linear-gradient(90deg, #FF35C8, #8B45FF, #FF35C8); }
.nw-svc-icon.nw-svc-4 { background-image: linear-gradient(90deg, #3FD68C, #00D9FF, #3FD68C); }
.nw-svc-icon.nw-svc-5 { background-image: linear-gradient(90deg, #FF9F1C, #FF35C8, #FF9F1C); }
.nw-svc-icon.nw-svc-6 { background-image: linear-gradient(90deg, #426BFF, #B48CFF, #426BFF); }

/* Contacto: colores por medio */
.nw-ico-mail { color: #B48CFF !important; text-shadow: 0 0 22px rgba(139, 69, 255, .7); }
.nw-ico-phone { color: #00D9FF !important; text-shadow: 0 0 22px rgba(0, 217, 255, .6); }
.nw-ico-wa { color: #25D366 !important; text-shadow: 0 0 22px rgba(37, 211, 102, .6); }
.web-icon-tan-lg { font-size: 2.2rem; }

/* Botones con el color de cada marca */
.btn-whatsapp { background: #25D366; border: 1px solid #25D366; color: #06100B; font-weight: 800; box-shadow: 0 12px 30px -14px rgba(37, 211, 102, .7); }
.btn-whatsapp:hover { background: #2EE574; border-color: #2EE574; color: #06100B; }
.btn-facebook { background: #1877F2; border: 1px solid #1877F2; color: #fff; }
.btn-facebook:hover { background: #3B8AF5; color: #fff; }
.btn-linkedin { background: #0A66C2; border: 1px solid #0A66C2; color: #fff; }
.btn-linkedin:hover { background: #2B7BD0; color: #fff; }
.btn-instagram { background: linear-gradient(135deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); border: 0; color: #fff; }
.btn-instagram:hover { filter: brightness(1.1); color: #fff; }
.btn-google { background: #fff; border: 1px solid #fff; color: #1F1F1F; }
.btn-google:hover { background: #F1F1F1; color: #1F1F1F; }

/* Redes del pie: color de marca al pasar el cursor */
footer .social-links a[title="WhatsApp"] { color: #25D366; }
footer .social-links a[title="Facebook"]:hover { background: #1877F2; border-color: #1877F2; }
footer .social-links a[title="Instagram"]:hover { background: linear-gradient(135deg, #FA7E1E, #D62976, #962FBF); border-color: #D62976; }
footer .social-links a[title="Linkedin"]:hover, footer .social-links a[title="LinkedIn"]:hover { background: #0A66C2; border-color: #0A66C2; }
footer .social-links a[title="Twitter"]:hover { background: #111; border-color: #00D9FF; }
footer .social-links a[title="WhatsApp"]:hover { background: #25D366; border-color: #25D366; color: #06100B; }

/* Marco RGB animado para bloques destacados */
.nw-rgb-frame { position: relative; isolation: isolate; }
.nw-rgb-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--nw-gradient-rgb);
  background-size: 300% 100%;
  animation: nw-rgb-shift 6s linear infinite;
  opacity: .85;
}
.nw-rgb-frame::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--nw-radius-lg) - 1px);
  background: var(--nw-surface);
}
.service-showcase, .cta-card, .contact-card { isolation: isolate; }

/* Servicios: títulos y elementos con color y movimiento */
.service-showcase h2, .service-showcase h3 {
  background: var(--nw-gradient-rgb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nw-rgb-shift 9s linear infinite;
}
.service-showcase .feature-item i { color: var(--nw-cyan); }
.service-showcase .feature-item:nth-child(3n+2) i { color: var(--nw-magenta); }
.service-showcase .feature-item:nth-child(3n) i { color: #FFC24D; }
.service-showcase .step-number { background: var(--nw-gradient-rgb); background-size: 300% 100%; animation: nw-rgb-shift 6s linear infinite; }
.service-showcase .fas.fa-3x,
.service-showcase .fab.fa-3x,
.service-showcase .fas.fa-4x,
.service-showcase .fas.fa-5x {
  display: inline-block;
  background: var(--nw-gradient-rgb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nw-float 4s ease-in-out infinite;
}

/* Planes y precios: fondo oscuro */
.pricing-section, .web-gradient-tan {
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(139, 69, 255, .22), transparent 70%),
    radial-gradient(600px 300px at 90% 100%, rgba(255, 53, 200, .12), transparent 70%),
    var(--nw-surface) !important;
  color: var(--nw-text);
}
.web-text-dark-tan { color: #FFFFFF !important; }

/* Proceso: contenido centrado */
.process-timeline { max-width: 720px; margin-inline: auto; }

/* Galería: todas las tarjetas del mismo tamaño */
.gallery-grid > *,
.gallery-grid > :nth-child(5n + 1) { grid-column: auto !important; grid-row: auto !important; }
.gallery-grid .card-img-top,
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

/* Admin: horarios más compactos y grupos de botones */
.adm-slots-card { max-width: 640px; }
.btn-group > .btn { border-radius: 0 !important; }
.btn-group > .btn:first-child { border-radius: 999px 0 0 999px !important; }
.btn-group > .btn:last-child { border-radius: 0 999px 999px 0 !important; }
.btn-group > .btn + .btn { margin-left: -1px; }
.btn-group .btn-blue { background: var(--nw-cyan); border-color: var(--nw-cyan); color: #06100B; box-shadow: none; }
.btn-group .btn-blue:hover { background: #5CE6FF; border-color: #5CE6FF; color: #06100B; }
.btn-group .btn-orange { background: var(--nw-magenta); border-color: var(--nw-magenta); color: #fff; box-shadow: none; }
.btn-group .btn-orange:hover { background: #FF5AD6; border-color: #FF5AD6; color: #fff; }

/* Admin: tarjetas del dashboard con RGB */
.adm-kpi-card-blue, .adm-kpi-card-blue-thin, .adm-kpi-card-blue-wide {
  border-left: 4px solid var(--nw-cyan) !important;
  background: linear-gradient(135deg, rgba(0, 217, 255, .14), rgba(20, 23, 28, .9) 60%) !important;
  box-shadow: 0 0 26px -12px rgba(0, 217, 255, .55) !important;
}
.adm-kpi-card-wine, .adm-kpi-card-wine-wide {
  border-left: 4px solid var(--nw-magenta) !important;
  background: linear-gradient(135deg, rgba(255, 53, 200, .14), rgba(20, 23, 28, .9) 60%) !important;
  box-shadow: 0 0 26px -12px rgba(255, 53, 200, .55) !important;
}
.adm-kpi-card-orange {
  border-left: 4px solid #FFC24D !important;
  background: linear-gradient(135deg, rgba(255, 194, 77, .16), rgba(20, 23, 28, .9) 60%) !important;
  box-shadow: 0 0 26px -12px rgba(255, 194, 77, .55) !important;
}
.adm-kpi-card-lime, .adm-kpi-card-lime-wide {
  border-left: 4px solid #3FD68C !important;
  background: linear-gradient(135deg, rgba(63, 214, 140, .14), rgba(20, 23, 28, .9) 60%) !important;
  box-shadow: 0 0 26px -12px rgba(63, 214, 140, .55) !important;
}
.adm-kpi-icon-blue, .adm-kpi-icon-cyan { color: var(--nw-cyan) !important; opacity: .9 !important; text-shadow: 0 0 18px rgba(0, 217, 255, .7); }
.adm-kpi-icon-wine { color: var(--nw-magenta) !important; opacity: .9 !important; text-shadow: 0 0 18px rgba(255, 53, 200, .7); }
.adm-kpi-icon-orange { color: #FFC24D !important; opacity: .9 !important; text-shadow: 0 0 18px rgba(255, 194, 77, .7); }

/* ---------- 25. Ronda: órdenes, productos a cotización, tienda, tarjetas neón y contacto ---------- */

/* Estados de orden tipo semáforo */
.nw-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nw-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.nw-status-pending { color: #FFC24D; background: rgba(255, 194, 77, .14); border-color: rgba(255, 194, 77, .45); }
.nw-status-in_progress { color: #00D9FF; background: rgba(0, 217, 255, .12); border-color: rgba(0, 217, 255, .45); }
.nw-status-completed { color: #3FD68C; background: rgba(63, 214, 140, .14); border-color: rgba(63, 214, 140, .45); }
.nw-status-cancelled { color: #FF5C7A; background: rgba(255, 92, 122, .14); border-color: rgba(255, 92, 122, .45); }

/* Etiqueta de producto a cotización */
.nw-quote-badge {
  background: rgba(255, 53, 200, .16);
  color: #FF8AE3;
  border: 1px solid rgba(255, 53, 200, .45);
  font-weight: 800;
  padding: .4rem .7rem;
}

/* Tienda: encabezado con el mismo fondo que la portada */
.shop-hero-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(139, 69, 255, .28), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(255, 53, 200, .12), transparent 70%),
    var(--nw-bg);
  border-bottom: 1px solid var(--nw-border);
}
.shop-hero-visual h1 { color: #FFFFFF; }
.shop-surface-panel { background: transparent; }

/* Tarjetas con marco RGB neón animado */
@keyframes nw-neon-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(139, 69, 255, .35), 0 0 22px rgba(0, 217, 255, .15); }
  50% { box-shadow: 0 0 18px rgba(139, 69, 255, .6), 0 0 36px rgba(255, 53, 200, .25); }
}
@keyframes nw-neon-flow {
  from { background-position: 0% 50%, 0% 50%; }
  to { background-position: 0% 50%, 300% 50%; }
}
.card-box {
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, rgba(20, 23, 28, .94), rgba(14, 16, 21, .94)) padding-box,
    linear-gradient(90deg, #8B45FF, #426BFF, #00D9FF, #FF35C8, #8B45FF) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: nw-neon-flow 6s linear infinite, nw-neon-pulse 3.5s ease-in-out infinite;
}
.card-box:hover { transform: translateY(-6px) scale(1.01); }

/* Contacto: iconos más grandes y botones por medio */
.nw-ico-mail, .nw-ico-phone, .nw-ico-wa { font-size: 3.6rem; display: inline-block; }
.btn-email { background: #8B45FF; border: 1px solid #8B45FF; color: #fff; font-weight: 800; box-shadow: 0 12px 30px -14px rgba(139, 69, 255, .7); }
.btn-email:hover { background: #9A5DFF; border-color: #9A5DFF; color: #fff; }
.btn-phone { background: #00D9FF; border: 1px solid #00D9FF; color: #06100B; font-weight: 800; box-shadow: 0 12px 30px -14px rgba(0, 217, 255, .65); }
.btn-phone:hover { background: #5CE6FF; border-color: #5CE6FF; color: #06100B; }

/* Contacto telefónico/WhatsApp desactivado temporalmente: se ve apagado y no es clickeable */
.nw-contact-off { opacity: .35 !important; filter: grayscale(1); box-shadow: none !important; cursor: not-allowed; pointer-events: none; }

/* ---------- 26. Espectro RGB (referencia de onda de luz) y alertas SweetAlert2 ---------- */

/* Gradiente RGB de los efectos: espectro completo en lugar de solo morado-cian */
:root {
  --nw-spectrum: linear-gradient(90deg, #FF2D55, #FF9F1C, #FFE135, #3FFF8B, #00E5FF, #426BFF, #B44DFF, #FF35C8, #FF2D55);
}

/* Marcos de tarjetas con el espectro animado */
.card-box {
  background:
    linear-gradient(160deg, rgba(20, 23, 28, .94), rgba(14, 16, 21, .94)) padding-box,
    var(--nw-spectrum) border-box;
  background-size: 100% 100%, 300% 100%;
}

/* SweetAlert2: tema oscuro con borde de espectro y barra de luz superior */
@keyframes nw-swal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nw-swal-flow {
  from { background-position: 0% 50%, 0% 50%; }
  to { background-position: 0% 50%, 300% 50%; }
}
.nw-swal {
  position: relative;
  background:
    linear-gradient(160deg, rgba(14, 16, 21, .97), rgba(20, 23, 28, .97)) padding-box,
    var(--nw-spectrum) border-box !important;
  background-size: 100% 100%, 300% 100%;
  border: 2px solid transparent !important;
  border-radius: 22px !important;
  color: var(--nw-text) !important;
  box-shadow: 0 0 42px -8px rgba(139, 69, 255, .5), 0 30px 80px -20px rgba(0, 0, 0, .9) !important;
  overflow: hidden;
  padding: 2rem 1.75rem 1.5rem !important;
}
.nw-swal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--nw-spectrum);
  background-size: 300% 100%;
  animation: nw-rgb-shift 4s linear infinite;
  box-shadow: 0 0 18px 2px rgba(255, 53, 200, .45);
}
.nw-swal__title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  letter-spacing: -0.01em;
}
.nw-swal__text { color: var(--nw-text-muted) !important; font-size: 1rem; }
.nw-swal__btn {
  background: var(--nw-primary) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: .7rem 1.8rem !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 30px -10px rgba(139, 69, 255, .8);
  transition: transform .2s var(--nw-ease), background-color .2s;
}
.nw-swal__btn:hover { background: var(--nw-primary-hover) !important; transform: translateY(-2px); }
.nw-swal__btn--ghost { background: var(--nw-surface-2) !important; box-shadow: none !important; border: 1px solid var(--nw-border) !important; }

/* Íconos con el color del espectro */
.nw-swal .swal2-icon { border-width: 3px !important; }
.nw-swal .swal2-icon.swal2-success { border-color: #3FFF8B !important; color: #3FFF8B !important; box-shadow: 0 0 26px -4px rgba(63, 255, 139, .7); }
.nw-swal .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #3FFF8B !important; }
.nw-swal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(63, 255, 139, .3) !important; }
.nw-swal .swal2-icon.swal2-error { border-color: #FF2D55 !important; color: #FF2D55 !important; box-shadow: 0 0 26px -4px rgba(255, 45, 85, .7); }
.nw-swal .swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: #FF2D55 !important; }
.nw-swal .swal2-icon.swal2-warning { border-color: #FFE135 !important; color: #FFE135 !important; box-shadow: 0 0 26px -4px rgba(255, 225, 53, .6); }
.nw-swal .swal2-icon.swal2-info { border-color: #00E5FF !important; color: #00E5FF !important; box-shadow: 0 0 26px -4px rgba(0, 229, 255, .7); }
.nw-swal .swal2-icon.swal2-question { border-color: #B44DFF !important; color: #B44DFF !important; }

/* Ventana de bienvenida al iniciar sesión */
.nw-swal--login { padding-top: 2.4rem !important; }
.nw-swal--login .swal2-icon.swal2-success { animation: nw-float 3s ease-in-out infinite; }

/* Avisos breves (toast) */
.nw-swal--toast {
  padding: 1rem 1.25rem !important;
  border-radius: 16px !important;
}
.nw-swal--toast::before { height: 3px; }
.nw-swal--toast .nw-swal__title { font-size: 1rem !important; }
.nw-swal__progress { background: var(--nw-spectrum) !important; background-size: 300% 100% !important; animation: nw-rgb-shift 3s linear infinite; }
.nw-swal__close { color: var(--nw-text-muted) !important; }
.nw-swal__close:hover { color: #FFFFFF !important; }

/* Fondo del aviso */
/* Fondo oscuro solo para ventanas centradas. Los avisos breves (toast) no llevan fondo:
   el contenedor del toast ocupa solo la esquina y el fondo se veía como un recuadro negro. */
body:not(.swal2-toast-shown) .swal2-container { backdrop-filter: blur(4px); }
body:not(.swal2-toast-shown) .swal2-container.swal2-backdrop-show { background: rgba(8, 11, 15, .72) !important; }
body.swal2-toast-shown .swal2-container { background: transparent !important; backdrop-filter: none !important; }

/* ---------- 27. Recuperar y restablecer contraseña ---------- */
.nw-reset-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: #fff;
  background: var(--nw-spectrum);
  background-size: 300% 100%;
  animation: nw-rgb-shift 6s linear infinite, nw-float 4s ease-in-out infinite;
  box-shadow: 0 0 34px -6px rgba(139, 69, 255, .7);
}
.nw-info-box {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(0, 217, 255, .08);
  border: 1px solid rgba(0, 217, 255, .3);
  color: #A6F3FF;
  font-size: .9rem;
}
.nw-info-box i { margin-top: .2rem; color: var(--nw-cyan); }
.nw-req .requirement { color: var(--nw-text-muted); padding: .2rem 0; transition: color .25s; }
.nw-req .requirement i { font-size: .7rem; color: #6E7480; transition: color .25s; }
.nw-req .requirement.met { color: var(--nw-success); }
.nw-req .requirement.met i { color: var(--nw-success); }
.nw-req .requirement.met i::before { content: "\f058"; }

/* ---------- 28. Tarjetas de producto de la tienda con marco RGB ---------- */
.shop-product-card.border-0 {
  border: 2px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(20, 23, 28, .95), rgba(14, 16, 21, .95)) padding-box,
    var(--nw-spectrum) border-box !important;
  background-size: 100% 100%, 300% 100%;
  animation: nw-neon-flow 6s linear infinite, nw-neon-pulse 3.5s ease-in-out infinite;
  overflow: hidden;
}
.shop-product-card.border-0:hover {
  border-color: transparent !important;
  transform: translateY(-6px);
}

/* ---------- 29. Pie de página: separación inferior ---------- */
footer {
  margin-bottom: -1.5rem;
}

/* SweetAlert2: el contenedor siempre queda fijo sobre la página */
.swal2-container { position: fixed !important; z-index: 1100 !important; }

/* ---------- 30. Imágenes de producto en la tienda: escaladas a la tarjeta ---------- */
.shop-card-visual {
  height: 250px;
  overflow: hidden;
  position: relative;
  padding: 0;
}
.shop-card-visual .shop-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- 31. Asterisco de campos obligatorios (color RGB) ---------- */
.nw-asterisco {
  background: var(--nw-spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 1.1em;
  animation: nw-rgb-shift 4s linear infinite;
}
