/*
==========================================================================
   BUSCKÖ PLATFORM - STYLES.CSS CONSOLIDADO
   Portal de Servicios - Tierra del Fuego, Argentina
   
   Versión: 2.0 (Enero 2026)
   Consolidación completa de estilos según PRD
   
   Referencia visual: https://portal2.buscko.com.ar
==========================================================================

   TABLA DE CONTENIDOS
   --------------------------------------------------------------------------
   1.0 IMPORTS & VARIABLES CSS
       1.1 Google Fonts
       1.2 Variables de tema (Root Variables)
   
   2.0 ESTILOS BASE
       2.1 Reset y Body
       2.2 Tipografía global
   
   3.0 LAYOUTS
       3.1 Panel Layout (Dashboard)
       3.2 Auth Layout (Login, Registro, etc.)
   
   4.0 COMPONENTES
       4.1 Header & Navegación
       4.2 Aside (Menú lateral)
       4.3 Footer
       4.4 Botones
       4.5 Formularios
       4.6 Cards (Tarjetas)
       4.7 Modales
       4.8 Paginación
       4.9 Mensajes y Alertas
       4.10 File Upload
       4.11 Estrellas de Evaluación
       4.12 Listas de Servicios
   
   5.0 PÁGINAS ESPECÍFICAS
       5.1 Portal Administrador
       5.2 Administrar Categorías
       5.3 Administrar Servicios
       5.4 Cambiar Foto de Perfil
       5.5 Detalle de Servicio
       5.6 Datos de Usuario
       5.7 Solicitudes
   
   6.0 UTILIDADES
       6.1 Clases auxiliares
       6.2 Accesibilidad
       6.3 Estados (hidden, visible, etc.)
   
   7.0 MEDIA QUERIES (Responsive)
==========================================================================
*/

/* ==========================================================================
   1.0 IMPORTS & VARIABLES CSS
   ========================================================================== */

/* 1.1 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* 1.2 Variables de tema (Root Variables) */
:root {
  /* Colores principales - Tema Oscuro Premium */
  --bs-body-bg: #151515;
  --bs-body-color: #fbffff;
  --bs-border-color: #5f6366;
  --bs-primary: #4f9cf9;
  --bs-primary-rgb: 79, 156, 249;
  --bs-primary-hover: #67a8f5;
  --bs-secondary: #24292f;
  --bs-light: #d7dbe4;
  --bs-light-rgb: 215, 219, 228;
  --bs-dark: #151515;
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-success: #28a745;
  --bs-success-rgb: 40, 167, 69;
  --bs-warning: #f0ad4e;
  --bs-warning-rgb: 240, 173, 78;

  /* Colores legacy (compatibilidad con tema anterior) */
  --color-primary-legacy: #233857;
  --color-primary-hover-legacy: #1a2d48;

  /* Fuentes */
  --font-family-base:
    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --font-family-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Bordes y sombras */
  --border-radius: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 12px 36px rgba(0, 0, 0, 0.3);

  /* Surface */
  --surface-color: var(--bs-secondary);

  /* Layout */
  --container-max: min(1240px, 100%);
  --layout-max: 1560px;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
}

/* ==========================================================================
   2.0 ESTILOS BASE
   ========================================================================== */

/* 2.1 Reset y Body */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  background:
    radial-gradient(
      circle at 20% -10%,
      rgba(79, 156, 249, 0.16),
      transparent 45%
    ),
    radial-gradient(circle at 80% 10%, rgba(32, 54, 88, 0.22), transparent 50%),
    linear-gradient(160deg, #0e121a 0%, #121824 40%, #0b111c 100%);
  color: #e8edf7;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* PRD: Contenedor raíz y flujo vertical (.app-root pattern) */
.app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.app-root header,
body > header {
  flex: 0 0 auto;
}

.app-root main,
body > main {
  flex: 1 0 auto;
}

.app-root footer,
body > footer {
  flex: 0 0 auto;
}

/* 2.2 Tipografía global */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f7fbff;
  font-family: var(--font-family-display);
  letter-spacing: 0.02em;
  word-break: break-word; /* Evita desbordes de texto */
  hyphens: auto; /* Mejora la división de palabras */
}

a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  word-break: break-word; /* Evita desbordes en enlaces largos */
}

a:hover,
a:focus {
  text-decoration: underline;
  color: var(--bs-primary-hover);
}

a:focus,
button:focus {
  outline: 2px solid rgba(79, 156, 249, 0.6);
  outline-offset: 2px;
}

/* ==========================================================================
   3.0 LAYOUTS
   ========================================================================== */

/* 3.1 Panel Layout (Dashboard) */
.panel-layout {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(79, 156, 249, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, #151515 0%, #1b1f26 55%, #0f1217 100%);
  color: #fbffff;
  min-height: 100vh;
}

.panel-layout header {
  position: sticky;
  top: 0;
  z-index: 180;
  width: 100%;
  background: linear-gradient(
    165deg,
    rgba(10, 16, 28, 0.95) 0%,
    rgba(8, 14, 26, 0.98) 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: visible;
  padding: 0;
  margin: 0;
}

.panel-layout main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 4vw, 3.2rem)
    clamp(3rem, 7vw, 5.5rem);
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  box-sizing: border-box;
  position: relative;
  min-height: 0; /* PRD: Reemplazar min-height:100vh - flex:1 0 auto se encarga del espacio */
}

.panel-layout section {
  flex: 1 0 auto;
  width: 100%;
  max-width: min(var(--layout-max), 100%);
  background: linear-gradient(
    180deg,
    rgba(12, 18, 30, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 65%,
    rgba(6, 10, 18, 0.97) 100%
  );
  border-radius: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(79, 156, 249, 0.12);
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 4vw, 3.2rem)
    clamp(4rem, 7vw, 6rem);
  box-shadow:
    0 32px 64px rgba(3, 7, 16, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(28px);
  color: rgba(236, 242, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  min-height: 0; /* PRD: Evitar min-height fijo que causa espacio vacío entre contenido y footer */
  box-sizing: border-box;
  margin-inline: auto;
}

/* Fallback para páginas sin panel-layout — scoped to direct child header */
body:not(.panel-layout) > header {
  background: linear-gradient(
    135deg,
    rgba(14, 22, 38, 0.92) 0%,
    rgba(24, 38, 62, 0.88) 100%
  );
  color: #f7fbff;
  padding: 1rem 1.5rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(79, 156, 249, 0.3);
  box-shadow: 0 24px 48px rgba(3, 7, 16, 0.45);
}

/* Legal pages header should match panel header — scoped to page-level header only */
body.legal-page > header {
  position: sticky;
  top: 0;
  z-index: 180;
  width: 100%;
  background: linear-gradient(
    165deg,
    rgba(10, 16, 28, 0.95) 0%,
    rgba(8, 14, 26, 0.98) 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: visible;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   LEGAL PAGES - TERMS, PRIVACY POLICY
   ========================================================================== */

.legal-page main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem)
    clamp(0.5rem, 1vw, 1rem);
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 0;
}

.legal-page .legal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.legal-page .legal-content * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Strict overflow guardrails for legal pages */
.legal-page,
.legal-page * {
  box-sizing: border-box;
  max-width: 100%;
}

.legal-page p,
.legal-page li,
.legal-page span,
.legal-page a,
.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4,
.legal-page h5,
.legal-page h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-page img,
.legal-page svg,
.legal-page video,
.legal-page canvas {
  max-width: 100%;
  height: auto;
}

.legal-page .legal-grid,
.legal-page .legal-rights-grid,
.legal-page .legal-prohibited-grid,
.legal-page .legal-security-grid,
.legal-page .legal-ip-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legal-page .legal-card__row,
.legal-page .legal-share-case,
.legal-page .legal-comm-rule,
.legal-page .legal-contact-card {
  flex-wrap: wrap;
}

.legal-page .legal-share-case__content,
.legal-page .legal-comm-rule__content,
.legal-page .legal-card__value {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #a7caff 0%, #d6e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(167, 202, 255, 0.1);
}

/* Table of Contents */
.legal-toc {
  background: linear-gradient(
    160deg,
    rgba(18, 28, 48, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 24px 48px rgba(4, 10, 22, 0.5);
}

.legal-toc__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0 0 1.5rem 0;
  text-align: center;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.legal-toc__title i {
  color: var(--bs-primary);
  font-size: 1.2em;
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr; /* single-col base; sidebar & mobile */
  gap: 0.5rem;
  counter-reset: toc-counter;
}

/* Tablet wide (TOC spans full width below 1024px): multi-column */
@media (min-width: 540px) and (max-width: 1023px) {
  .legal-toc__list {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 0.6rem;
  }
}

/* Neutralize global list-item overrides that add padding/bg */
.legal-toc__item,
.legal-toc__list > li {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  list-style: none;
}

/* Glass pill — targets both `.legal-toc__link` class and bare <a> inside <li> */
.legal-toc__link,
.legal-toc__list li > a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.55),
    rgba(15, 23, 42, 0.55)
  );
  border: 1px solid rgba(79, 156, 249, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    color 0.2s ease;
  position: relative;
  overflow: hidden;
  counter-increment: toc-counter;
}

/* Numbered counter badge inside the pill */
.legal-toc__link::before,
.legal-toc__list li > a::before {
  content: counter(toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  height: 1.45em;
  background: rgba(79, 156, 249, 0.15);
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bs-primary, #4f9cf9);
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

/* Animated underline sweep */
.legal-toc__link::after,
.legal-toc__list li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--bs-primary, #4f9cf9),
    var(--bs-primary-hover, #74b2fb)
  );
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.legal-toc__link:hover,
.legal-toc__link:focus-visible,
.legal-toc__list li > a:hover,
.legal-toc__list li > a:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.65),
    rgba(30, 41, 59, 0.65)
  );
  border-color: rgba(79, 156, 249, 0.38);
  color: #f1f7ff;
  transform: translateX(3px);
  box-shadow:
    0 4px 18px rgba(79, 156, 249, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.legal-toc__link:hover::before,
.legal-toc__list li > a:hover::before {
  background: rgba(79, 156, 249, 0.28);
  border-color: rgba(79, 156, 249, 0.55);
}

.legal-toc__link:hover::after,
.legal-toc__list li > a:hover::after {
  width: 100%;
}

/* Legal Sections */
.legal-section {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(79, 156, 249, 0.1);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  scroll-margin-top: 100px; /* Offset for sticky header */
}

.legal-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--bs-primary);
  margin: 0 0 1.5rem 0;
  border-bottom: 1px solid rgba(79, 156, 249, 0.2);
  padding-bottom: 0.75rem;
}

.legal-section h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: #e2e8f0;
  margin: 2rem 0 1rem 0;
}

.legal-section p,
.legal-section li {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  color: #94a3b8;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-section a {
  font-weight: 600;
  color: var(--bs-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--bs-primary-rgb), 0.4);
  transition: all 0.2s ease;
}

.legal-section a:hover {
  color: var(--bs-primary-hover);
  text-decoration-color: rgba(var(--bs-primary-rgb), 1);
}

@media (min-width: 1024px) {
  /* Grid container es main.legal-container:
     Fila 1 — .legal-header ocupa todo el ancho
     Fila 2+ — .legal-toc (col 1, sticky) | article.legal-content (col 2)
  */
  .legal-page main.legal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 1.25rem 2rem;
  }

  .legal-page main.legal-container > .legal-header {
    grid-column: 1 / -1;
  }

  .legal-page main.legal-container > .legal-toc {
    grid-column: 1;
    position: sticky;
    top: 90px;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 156, 249, 0.3) transparent;
  }

  .legal-page main.legal-container > .legal-content {
    grid-column: 2;
  }

  /* Desktop: lista del TOC en columna única (sidebar es 280px) */
  .legal-toc .legal-toc__list,
  .legal-toc__list {
    grid-template-columns: 1fr;
  }
}

/* Legal pages header should match panel header - (Repeated for specificity cascade) */
body.legal-page > header {
  position: sticky;
  top: 0;
  z-index: 180;
  width: 100%;
  background: linear-gradient(
    165deg,
    rgba(10, 16, 28, 0.95) 0%,
    rgba(8, 14, 26, 0.98) 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: visible;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   LEGAL PAGES - TERMS, PRIVACY POLICY (Continued styles)
   ========================================================================== */

.legal-page main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem)
    clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 0;
}

.legal-page .legal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.legal-page .legal-content * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #a7caff 0%, #d6e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(167, 202, 255, 0.1);
}

/* ── TOC + Legal Sections styles defined in first block above (collapsed duplicate) ── */

/* Legal Sections */
.legal-section {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(79, 156, 249, 0.1);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--bs-primary);
  margin: 0 0 1.5rem 0;
  border-bottom: 1px solid rgba(79, 156, 249, 0.2);
  padding-bottom: 0.75rem;
}

.legal-section h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: #e2e8f0;
  margin: 2rem 0 1rem 0;
}

.legal-section p,
.legal-section li {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  color: #94a3b8;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-section a {
  font-weight: 600;
  color: var(--bs-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--bs-primary-rgb), 0.4);
  transition: all 0.2s ease;
}

.legal-section a:hover {
  color: var(--bs-primary-hover);
  text-decoration-color: rgba(var(--bs-primary-rgb), 1);
}

/* (second 1024px legal-page block removed — rules consolidated above) */

body:not(.panel-layout):not(.legal-page) main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

body:not(.panel-layout):not(.legal-page) section {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 38, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 60%,
    rgba(6, 10, 18, 0.96) 100%
  );
  border-radius: 24px;
  box-shadow: 0 34px 68px rgba(3, 7, 16, 0.55);
  padding: 2rem;
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(79, 156, 249, 0.2);
  color: rgba(226, 236, 255, 0.88);
}

/* Neutralizar estilos genéricos en secciones de páginas legales */
.legal-page section.legal-section {
  max-width: 100%;
  margin: 0;
  flex: none;
  background: rgba(15, 23, 42, 0.3);
  box-shadow: 0 4px 24px rgba(3, 7, 16, 0.2);
}

/* 3.2 Auth Layout (Login, Registro, etc.) */
.auth-layout {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-attachment: fixed;
  font-family: var(--font-family-base);
}

.auth-layout--hero {
  padding: 0;
  align-items: stretch;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(79, 156, 249, 0.08),
      transparent 55%
    ),
    linear-gradient(160deg, #151515 0%, #1a2027 40%, #0f1319 100%);
  color: var(--bs-body-color);
}

.auth-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

.auth-hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.auth-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 21, 21, 0.96) 0%,
    rgba(36, 41, 47, 0.92) 55%,
    rgba(36, 41, 47, 0.78) 100%
  );
}

.auth-hero__halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}

.auth-hero__halo--left {
  background: rgba(79, 156, 249, 0.45);
  top: -160px;
  left: -140px;
}

.auth-hero__halo--right {
  background: rgba(215, 219, 228, 0.2);
  bottom: -200px;
  right: -120px;
}

.auth-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-hero__card {
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(24, 32, 48, 0.92) 0%,
    rgba(12, 18, 32, 0.94) 70%,
    rgba(9, 14, 24, 0.96) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.28);
  border-radius: 1.85rem;
  padding: clamp(2.4rem, 4vw, 3rem);
  box-shadow: 0 48px 90px rgba(3, 7, 16, 0.55);
  color: #f7fbff;
  overflow: hidden;
  width: min(100%, 540px);
  margin-inline: auto;
  backdrop-filter: blur(24px);
}

.auth-hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% -10%,
      rgba(79, 156, 249, 0.32),
      transparent 55%
    ),
    radial-gradient(
      circle at 110% 10%,
      rgba(88, 122, 237, 0.24),
      transparent 45%
    );
  pointer-events: none;
}

.auth-hero__card-header {
  position: relative;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  max-width: 100%;
}

.auth-hero__card-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2rem);
  font-weight: 700;
  color: #fbffff;
  word-break: break-word;
  hyphens: auto;
  font-family: var(--font-family-display);
  letter-spacing: 0.01em;
}

.auth-hero__card-header p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(215, 219, 228, 0.75);
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.auth-hero__form {
  position: relative;
  display: grid;
  gap: 1.35rem;
}

.auth-hero__submit {
  width: 100%;
  padding: 0.95rem 1rem;
  font-weight: 600;
  border-radius: 0.95rem;
  box-shadow: 0 26px 46px rgba(var(--bs-primary-rgb), 0.32);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.9) 0%,
    rgba(62, 134, 229, 0.95) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.45);
}

.auth-hero__footer {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(215, 219, 228, 0.75);
}

.auth-hero__footer a {
  color: rgba(214, 231, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
}

.auth-hero__footer a:hover,
.auth-hero__footer a:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* ==========================================================================
   4.0 COMPONENTES
   ========================================================================== */

/* 4.1 Header & Navegación */
/* Scoped to body > header to avoid matching <header class="legal-header"> inside articles */
body > header {
  background: linear-gradient(
    135deg,
    rgba(14, 22, 38, 0.95) 0%,
    rgba(10, 17, 30, 0.98) 100%
  );
  color: #f7fbff;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body > header .menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.42);
  background: linear-gradient(
    135deg,
    rgba(38, 62, 108, 0.9) 0%,
    rgba(18, 32, 58, 0.95) 100%
  );
  color: #f0f6ff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(8, 16, 32, 0.35);
}

body > header .menu-icon:hover,
body > header .menu-icon:focus {
  border-color: rgba(79, 156, 249, 0.7);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.65) 0%,
    rgba(53, 112, 213, 0.78) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(79, 156, 249, 0.28);
}

/* Scoped to exclude .legal-toc <nav> inside legal articles */
nav:not(.legal-toc) {
  background: linear-gradient(
    135deg,
    rgba(14, 22, 38, 0.95) 0%,
    rgba(10, 17, 30, 0.98) 100%
  );
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f7fbff;
}

.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.logo a img {
  width: 50px;
  height: auto;
  border-radius: 0.5em;
}

.welcome-message {
  margin: 0 20px;
  font-size: 16px;
}

.logout-link {
  color: #fff;
  text-decoration: none;
  background-color: #ff5757;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.logout-link:hover {
  background-color: #e44e4e;
}

/* Panel Header Bar - Diseño compacto y accesible */
.panel-header__bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.panel-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.panel-header__logo:hover {
  transform: scale(1.05);
}

.panel-header__logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.2);
}

.panel-header__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.panel-header__notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(79, 156, 249, 0.2);
  background: linear-gradient(
    135deg,
    rgba(18, 28, 46, 0.7),
    rgba(14, 22, 38, 0.85)
  );
  color: rgba(235, 242, 255, 0.95);
  cursor: pointer;
  transition: all 0.3s ease;
}

.panel-header__notifications:hover,
.panel-header__notifications:focus {
  border-color: rgba(79, 156, 249, 0.4);
  background: linear-gradient(
    135deg,
    rgba(33, 54, 92, 0.7),
    rgba(26, 44, 78, 0.85)
  );
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.15);
  outline: none;
}

.panel-header__notifications i {
  font-size: 1rem;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(95, 175, 255, 0.95),
    rgba(79, 156, 249, 1)
  );
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(8, 14, 26, 0.9);
}

.panel-header__user {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(18, 28, 46, 0.7),
    rgba(14, 22, 38, 0.85)
  );
  border-radius: 999px;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border: 1px solid rgba(79, 156, 249, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px; /* Accesibilidad: tamaño mínimo de toque */
  max-width: 100%;
}

.panel-header__user:hover,
.panel-header__user:focus {
  border-color: rgba(79, 156, 249, 0.4);
  background: linear-gradient(
    135deg,
    rgba(33, 54, 92, 0.7),
    rgba(26, 44, 78, 0.85)
  );
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.15);
}

.panel-header__username {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(235, 242, 255, 0.95);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-header__dropdown-icon {
  font-size: 0.75rem;
  color: rgba(214, 231, 255, 0.7);
  transition: transform 0.3s ease;
}

.panel-header__user[aria-expanded='true'] .panel-header__dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown de usuario */
.panel-header__user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  max-width: min(260px, 90vw);
  background: linear-gradient(
    165deg,
    rgba(16, 24, 40, 0.96) 0%,
    rgba(11, 18, 30, 0.98) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.panel-header__user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.panel-header__user-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(214, 231, 255, 0.85);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.panel-header__user-link:hover,
.panel-header__user-link:focus {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.15),
    rgba(53, 112, 213, 0.12)
  );
  color: #f7fbff;
  outline: none;
}

.panel-header__user-link--logout {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(79, 156, 249, 0.1);
  padding-top: 0.85rem;
  color: rgba(255, 134, 134, 0.9);
}

.panel-header__user-link--logout:hover {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.15),
    rgba(176, 42, 55, 0.12)
  );
  color: #ff8686;
}

/* Menu overlay para modal universal */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Clase auxiliar para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Avatar mejorado con efecto Liquid Glass */
.panel-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(79, 156, 249, 0.4);
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.5) 0%,
    rgba(53, 112, 213, 0.65) 50%,
    rgba(79, 156, 249, 0.4) 100%
  );
  box-shadow:
    0 4px 12px rgba(79, 156, 249, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7fbff;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.panel-header__user:hover .panel-header__avatar {
  transform: scale(1.05);
  box-shadow:
    0 6px 16px rgba(79, 156, 249, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 2px 6px rgba(255, 255, 255, 0.15);
  border-color: rgba(79, 156, 249, 0.6);
}

.panel-header__user:hover .panel-header__avatar {
  transform: scale(1.05);
  box-shadow:
    0 6px 16px rgba(79, 156, 249, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 2px 6px rgba(255, 255, 255, 0.15);
  border-color: rgba(79, 156, 249, 0.6);
}

.panel-header__avatar::before {
  content: '';
  display: block;
}

.panel-header__avatar[src=''],
.panel-header__avatar:not([src]),
.panel-header__avatar[src*='default-profile-picture'] {
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.5) 0%,
    rgba(53, 112, 213, 0.65) 50%,
    rgba(79, 156, 249, 0.4) 100%
  );
}

.panel-header__avatar[src='']::before,
.panel-header__avatar:not([src])::before,
.panel-header__avatar[src*='default-profile-picture']::before {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.panel-header__logout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: rgba(236, 242, 255, 0.85);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 156, 249, 0.2);
  background: rgba(18, 26, 42, 0.7);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.panel-header__logout:hover,
.panel-header__logout:focus {
  color: #f7fbff;
  border-color: rgba(79, 156, 249, 0.55);
  background-color: rgba(79, 156, 249, 0.25);
  box-shadow: 0 12px 22px rgba(79, 156, 249, 0.22);
}

/* 4.2 Aside (Menú lateral) */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

#menuOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

aside#menu {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  height: auto;
  max-height: 85vh;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 1000;
  background: linear-gradient(
    165deg,
    rgba(12, 20, 36, 0.97) 0%,
    rgba(8, 14, 26, 0.99) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 24px;
  box-shadow:
    0 32px 64px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

aside#menu.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-duration: 250ms;
}

/* Reverse animation for closing */
aside#menu:not(.show) {
  transition-duration: 200ms;
  transform: translate(-50%, -50%) scale(0.95);
}

#menuOverlay:not(.show) {
  transition-duration: 200ms;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  width: 100%;
}

.panel-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem 1.2rem;
  border-bottom: 1px solid rgba(79, 156, 249, 0.15);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.5), transparent);
  flex-shrink: 0;
}

.panel-nav__header .panel-nav__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(79, 156, 249, 0.95);
}

.panel-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 28, 46, 0.7),
    rgba(14, 22, 38, 0.85)
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 12px;
  color: rgba(214, 231, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.panel-nav__close:hover,
.panel-nav__close:focus {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.2),
    rgba(176, 42, 55, 0.25)
  );
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff8686;
  transform: scale(1.05);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* .panel-layout aside#menu - styles handled by the main aside#menu selector */
/* .legal-page aside#menu - styles handled by the main aside#menu selector */

.panel-layout aside#menu::-webkit-scrollbar {
  width: 6px;
}

.panel-layout aside#menu::-webkit-scrollbar-track {
  background: transparent;
}

.panel-layout aside#menu::-webkit-scrollbar-thumb {
  background: rgba(79, 156, 249, 0.3);
  border-radius: 999px;
}

.panel-layout aside#menu::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 156, 249, 0.5);
}

.panel-nav__list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  flex: 1 1 auto;
  overflow-y: auto;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Reset li dentro de panel-nav__list */
.panel-nav__list li {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.panel-nav__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: rgba(226, 236, 255, 0.85);
  font-weight: 500;
  padding: 1rem 1.25rem;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(14, 22, 36, 0.55) 0%,
    rgba(18, 28, 46, 0.5) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.panel-nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.15) 0%,
    rgba(53, 112, 213, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel-nav__link:hover::before,
.panel-nav__link:focus::before {
  opacity: 1;
}

.panel-nav__link i {
  font-size: 1.05rem;
  color: var(--bs-primary);
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  position: relative;
  z-index: 1;
}

.panel-nav__link span {
  position: relative;
  z-index: 1;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.panel-nav__link:hover,
.panel-nav__link:focus {
  transform: translateX(2px);
  border-color: rgba(79, 156, 249, 0.4);
  background: linear-gradient(
    135deg,
    rgba(33, 54, 92, 0.5) 0%,
    rgba(26, 44, 78, 0.55) 100%
  );
  box-shadow:
    0 12px 32px rgba(79, 156, 249, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #f7fbff;
  text-decoration: none;
}

.panel-nav__link:hover i,
.panel-nav__link:focus i {
  transform: scale(1.15);
  color: rgba(79, 156, 249, 1);
}

.panel-nav__link--active,
.panel-nav__link[aria-current='page'] {
  border-color: rgba(79, 156, 249, 0.5);
  background: linear-gradient(
    135deg,
    rgba(53, 112, 213, 0.35) 0%,
    rgba(33, 82, 180, 0.3) 100%
  );
  color: #f7fbff;
  box-shadow:
    0 16px 24px rgba(79, 156, 249, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-nav__link--active i,
.panel-nav__link[aria-current='page'] i {
  color: rgba(79, 156, 249, 1);
  transform: scale(1.1);
}

/* Badge en los enlaces */
.panel-nav__link .badge {
  margin-left: auto;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(53, 112, 213, 0.3)
  );
  color: rgba(214, 231, 255, 0.95);
  border: 1px solid rgba(79, 156, 249, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-family-display);
  min-width: 32px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.15);
}

/* Sección CTA en el menú */
.panel-nav__cta {
  padding: 1.25rem 1rem 1.75rem;
  margin-top: auto;
  border-top: 1px solid rgba(79, 156, 249, 0.12);
  background: linear-gradient(180deg, transparent, rgba(14, 22, 38, 0.3));
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.panel-nav__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 280px);
  padding: 1rem 1.5rem;
  min-height: 52px;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.95) 0%,
    rgba(53, 112, 213, 0.98) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-family-display);
  letter-spacing: 0.02em;
  border: 1px solid rgba(135, 180, 249, 0.4);
  box-shadow:
    0 16px 32px rgba(79, 156, 249, 0.35),
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.panel-nav__cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel-nav__cta-button:hover::before,
.panel-nav__cta-button:focus::before {
  opacity: 1;
}

.panel-nav__cta-button:hover,
.panel-nav__cta-button:focus {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(95, 170, 255, 0.98) 0%,
    rgba(79, 156, 249, 1) 100%
  );
  box-shadow:
    0 20px 40px rgba(79, 156, 249, 0.45),
    0 12px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: rgba(155, 200, 255, 0.5);
}

.panel-nav__cta-button:active {
  transform: translateY(0);
  box-shadow:
    0 12px 24px rgba(79, 156, 249, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.panel-nav__cta-button i {
  font-size: 1.1rem;
}

/* 4.3 Footer - Liquid Glass Design */
footer {
  position: relative;
  background: linear-gradient(
    165deg,
    rgba(14, 22, 38, 0.92) 0%,
    rgba(10, 17, 30, 0.96) 50%,
    rgba(8, 14, 26, 0.98) 100%
  );
  color: #f7fbff;
  text-align: center;
  padding: 0;
  padding-inline: clamp(1rem, 4vw, 2rem);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  border-top: 1px solid rgba(79, 156, 249, 0.15);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 -4px 20px rgba(4, 10, 22, 0.3);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 156, 249, 0.4),
    rgba(135, 180, 249, 0.3),
    transparent
  );
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  max-width: 1280px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  align-items: start;
  justify-items: center;
}

.footer-container .logo {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

@media (min-width: 768px) {
  .footer-container .logo {
    grid-column: auto;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
  }
}

.footer-container .logo img {
  width: 72px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(79, 156, 249, 0.15));
  transition: transform 0.3s ease;
}

.footer-container .footer-tagline {
  margin: 0.85rem 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(214, 231, 255, 0.82);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer-container .logo img {
    margin: 0;
  }
}

.footer-container .logo img:hover {
  transform: scale(1.05);
}

.footer-container div {
  margin: 0;
  text-align: center;
}

.footer-container h3 {
  margin: 0 0 1.25rem 0;
  font-family: var(--font-family-display);
  font-size: 0.88rem;
  width: min(100%, 1280px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(135, 180, 249, 0.98);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  gap: 0.6rem;
}

.footer-container h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, rgba(79, 156, 249, 0.8), transparent);
  border-radius: 3px;
}

.footer-container p,
.footer-container ul {
  margin: 0.4rem 0;
  color: rgba(214, 231, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-container a {
  color: rgba(214, 231, 255, 0.85);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-container a:hover {
  color: #4f9cf9;
  text-decoration: none;
}

.footer-container ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-container ul li {
  margin: 0;
}

.footer-container ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.footer-container ul li a::before,
.footer-container .contact-info a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 156, 249, 0.6), transparent);
  transition: width 0.3s ease;
}

.footer-container ul li a:hover::before,
.footer-container ul li a:focus::before,
.footer-container .contact-info a:hover::before,
.footer-container .contact-info a:focus::before {
  width: 100%;
}

.footer-container ul li a:hover,
.footer-container ul li a:focus {
  background: none;
  box-shadow: none;
  transform: none;
}

.social-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(24, 36, 58, 0.85),
    rgba(16, 26, 46, 0.95)
  );
  border: 1px solid rgba(79, 156, 249, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow:
    0 8px 16px rgba(4, 10, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-media a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 156, 249, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.social-media a:hover::before {
  opacity: 1;
}

.social-media a:hover {
  border-color: rgba(79, 156, 249, 0.6);
  transform: translateY(-4px);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.3),
    rgba(53, 112, 213, 0.4)
  );
  box-shadow:
    0 16px 32px rgba(79, 156, 249, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-media img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.social-media a:hover img {
  opacity: 1;
}

#technicalgroup {
  max-width: 7rem;
  height: auto;
  opacity: 0.85;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

#technicalgroup:hover {
  opacity: 1;
  filter: drop-shadow(0 10px 22px rgba(79, 156, 249, 0.35));
  transform: translateY(-2px);
}

.back-to-top {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(79, 156, 249, 0.12);
  margin-top: 1.5rem;
}

.back-to-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #f7fbff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85),
    rgba(53, 112, 213, 0.92)
  );
  border: 1px solid rgba(135, 180, 249, 0.4);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-family-display);
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow:
    0 12px 24px rgba(79, 156, 249, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.back-to-top a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.back-to-top a:hover::before {
  opacity: 1;
}

.back-to-top a:hover {
  background: linear-gradient(
    135deg,
    rgba(95, 175, 255, 0.95),
    rgba(79, 156, 249, 1)
  );
  border-color: rgba(155, 200, 255, 0.6);
  color: #f7fbff;
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px rgba(79, 156, 249, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.back-to-top a:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 16px rgba(79, 156, 249, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Quick Links */
.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Footer Credits */
.credits {
  grid-column: 1 / -1;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(79, 156, 249, 0.12);
  margin-top: 1rem;
}

.credits p {
  margin: 0.5rem 0;
  font-size: 0.82rem;
  color: rgba(214, 231, 255, 0.65);
  text-align: center;
  line-height: 1.6;
}

.credits a {
  color: rgba(135, 180, 249, 0.92);
  transition: color 0.25s ease;
}

.credits a:hover {
  color: rgba(79, 156, 249, 1);
}

.credits a:hover {
  color: #4f9cf9;
}

/* Panel Footer - Liquid Glass */
.panel-layout footer {
  position: static;
  background: linear-gradient(
    165deg,
    rgba(21, 21, 21, 0.96) 0%,
    rgba(16, 24, 38, 0.92) 50%,
    rgba(11, 18, 32, 0.95) 100%
  );
  border-top: 1px solid rgba(79, 156, 249, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3rem);
  box-shadow:
    0 -30px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-layout footer::before {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(79, 156, 249, 0.35) 30%,
    rgba(135, 180, 249, 0.25) 50%,
    rgba(79, 156, 249, 0.35) 70%,
    transparent 95%
  );
}

.panel-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
  color: rgba(214, 231, 255, 0.78);
  font-size: 0.88rem;
}

.panel-footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1 1 200px;
  min-width: 180px;
}

.panel-footer__column h3 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-family-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(79, 156, 249, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-footer__column h3::before {
  content: '';
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, rgba(79, 156, 249, 0.75), transparent);
  border-radius: 3px;
}

.panel-footer__column a {
  color: rgba(214, 231, 255, 0.75);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.panel-footer__column a:hover {
  color: #4f9cf9;
  transform: translateX(3px);
}

.panel-footer__column p {
  margin: 0;
  line-height: 1.6;
  color: rgba(214, 231, 255, 0.65);
}

.panel-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(79, 156, 249, 0.1);
  font-size: 0.82rem;
  color: rgba(214, 231, 255, 0.55);
}

.panel-footer__bottom a {
  color: rgba(79, 156, 249, 0.8);
}

.panel-footer__bottom a:hover {
  color: #4f9cf9;
}

/* 4.4 Botones */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 156, 249, 0.45);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85) 0%,
    rgba(64, 134, 224, 0.95) 100%
  );
  color: #f7fbff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-pill:hover,
.btn-pill:focus {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(79, 156, 249, 0.35);
}

.btn-pill--ghost {
  border-color: rgba(162, 189, 222, 0.35);
  background: rgba(19, 28, 46, 0.75);
  color: rgba(224, 235, 255, 0.9);
}

.btn-pill--ghost:hover,
.btn-pill--ghost:focus {
  border-color: rgba(162, 189, 222, 0.55);
  background: rgba(32, 46, 72, 0.85);
  box-shadow: 0 14px 26px rgba(23, 36, 58, 0.35);
}

.btn-solicitar {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85) 0%,
    rgba(53, 112, 213, 0.95) 100%
  );
  color: #f7fbff;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(79, 156, 249, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-weight: 600;
}

.btn-solicitar:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(79, 156, 249, 0.3);
}

.boton-agregar {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.82) 0%,
    rgba(53, 112, 213, 0.9) 100%
  );
  color: #f7fbff;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(79, 156, 249, 0.42);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.boton-agregar:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(79, 156, 249, 0.28);
}

.boton-eliminar {
  padding: 10px;
  border-radius: 5px;
  border: none;
  background-color: #dc3545;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.boton-eliminar:hover {
  background-color: #c82333;
  color: #f5f5f5;
}

.boton-secundario {
  background: linear-gradient(
    135deg,
    rgba(255, 209, 124, 0.9) 0%,
    rgba(255, 183, 77, 0.92) 100%
  );
  color: #1a2338;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.boton-secundario:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(255, 200, 130, 0.35);
}

/* Botones de Contacto */
.contacto-solicitante {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 0;
}

.panel-layout section.contacto-view {
  min-height: auto;
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.2rem, 3vw, 2rem)
    clamp(2rem, 4vw, 2.8rem);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.contacto-view h2 {
  margin-bottom: 0.35rem;
}

.contacto-view p {
  margin-top: 0;
}

.contacto-view .contacto-solicitante {
  margin-top: 0.5rem;
}

.btn-contacto {
  flex: 0 1 auto;
  padding: 0.7rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  min-width: fit-content;
  max-width: 280px;
  background: linear-gradient(
    135deg,
    rgba(47, 211, 107, 0.9) 0%,
    rgba(21, 175, 88, 0.95) 100%
  );
  color: #f7fbff;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(63, 225, 128, 0.4);
  box-shadow:
    0 18px 34px rgba(20, 120, 68, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn-contacto:visited {
  color: #f7fbff;
}

.btn-contacto:nth-child(2) {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.9) 0%,
    rgba(53, 112, 213, 0.95) 100%
  );
  border-color: rgba(79, 156, 249, 0.45);
  box-shadow:
    0 18px 34px rgba(12, 46, 110, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-contacto:hover,
.btn-contacto:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(12, 46, 110, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: #f7fbff;
}

.btn-contacto:nth-child(1):hover,
.btn-contacto:nth-child(1):focus-visible {
  box-shadow:
    0 22px 42px rgba(18, 150, 84, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-contacto:nth-child(2):hover,
.btn-contacto:nth-child(2):focus-visible {
  box-shadow:
    0 22px 42px rgba(12, 46, 110, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-contacto:active {
  transform: translateY(0);
}

.icono-whatsapp {
  width: 20px;
  height: 20px;
}

/* 4.5 Formularios */
.form-servicio {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 860px;
  width: 100%;
  margin-top: 20px;
  margin-inline: auto;
  text-align: center;
}

.form-servicio label {
  color: rgba(226, 236, 255, 0.85);
  font-weight: 600;
  line-height: 1.5;
}

.form-servicio input[type='text'],
.form-servicio input[type='number'],
.form-servicio input[type='email'],
.form-servicio input[type='password'],
.form-servicio select,
.form-servicio textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.25);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(14, 20, 32, 0.9);
  color: rgba(236, 242, 255, 0.95);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  line-height: 1.5;
}

.form-servicio input[type='text']:focus,
.form-servicio input[type='number']:focus,
.form-servicio input[type='email']:focus,
.form-servicio input[type='password']:focus,
.form-servicio select:focus,
.form-servicio textarea:focus {
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.22);
  outline: none;
}

.form-servicio input::placeholder,
.form-servicio textarea::placeholder {
  color: rgba(215, 219, 228, 0.45);
}

.form-servicio button {
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(79, 156, 249, 0.4);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85) 0%,
    rgba(53, 112, 213, 0.95) 100%
  );
  color: #f7fbff;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.form-servicio button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(79, 156, 249, 0.28);
}

li button {
  margin: 0.2em 0;
}

.radio-group {
  display: flex;
  gap: 15px;
}

.radio-group label {
  display: flex;
  align-items: center;
}

.radio-group input[type='radio'] {
  margin-right: 5px;
}

/* Form Fields */
.form {
  display: grid;
  gap: 1.25rem;
}

.form__group {
  display: grid;
  gap: 0.5rem;
}

.form__group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bs-light);
}

.form__input,
.form__select {
  appearance: none;
  width: 100%;
  background-color: var(--bs-dark);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: var(--bs-body-color);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form__input::placeholder {
  color: var(--bs-border-color);
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  background-color: var(--surface-color);
}

/* Formularios de selección/edición (Admin) */
.form-seleccion-servicio,
.form-seleccion-categoria {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin-bottom: 30px;
}

.form-seleccion-servicio label,
.form-seleccion-categoria label {
  font-weight: bold;
  color: rgba(226, 236, 255, 0.85);
}

.form-seleccion-servicio select,
.form-editar-servicio input[type='text'],
.form-editar-servicio select,
.form-seleccion-categoria select,
.form-editar-categoria input {
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.3);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(12, 20, 34, 0.92);
  color: rgba(236, 242, 255, 0.95);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-seleccion-servicio select:focus,
.form-editar-servicio input[type='text']:focus,
.form-editar-servicio select:focus,
.form-seleccion-categoria select:focus,
.form-editar-categoria input:focus {
  border-color: rgba(79, 156, 249, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.22);
}

#selector-categoria,
#selector-servicio {
  margin-bottom: 15px;
}

.form-editar-servicio,
.form-editar-categoria,
.form-eliminar-categoria {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-editar-servicio button,
.form-editar-categoria button {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.82) 0%,
    rgba(53, 112, 213, 0.92) 100%
  );
  color: #f7fbff;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.45);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.form-editar-servicio button:hover,
.form-editar-categoria button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(79, 156, 249, 0.28);
}

/* 4.6 Cards (Tarjetas) */
li {
  background: linear-gradient(
    180deg,
    rgba(13, 20, 33, 0.85) 0%,
    rgba(9, 14, 24, 0.92) 55%,
    rgba(7, 12, 22, 0.95) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.18);
  padding: 15px;
  border-radius: 0.5em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

li p {
  margin: 0.3rem 0;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  line-height: 1.35;
}

li a,
.file-upload span {
  display: inline-block;
  padding: clamp(0.35rem, 1.2vw, 0.55rem) clamp(0.6rem, 1.8vw, 0.9rem);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.6) 0%,
    rgba(57, 124, 214, 0.82) 100%
  );
  color: #f7fbff;
  text-decoration: none;
  border-radius: 0.3em;
  transition: background-color 0.3s ease;
  margin: 0.2em 0;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  line-height: 1.2;
  border: 1px solid rgba(79, 156, 249, 0.3);
  box-shadow:
    0 8px 18px rgba(4, 10, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

li a:hover,
.file-upload input[type='file']:hover + span,
.file-upload input[type='file']:focus + span {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(79, 156, 249, 0.35);
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(95, 175, 255, 0.85) 0%,
    rgba(63, 132, 224, 0.95) 100%
  );
  color: #f7fbff;
}

/* Card de Servicio - Liquid Glass Design */
.card-servicio {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  text-align: left;
  width: 100%;
  background: linear-gradient(
    165deg,
    rgba(16, 24, 40, 0.88) 0%,
    rgba(11, 18, 30, 0.92) 45%,
    rgba(8, 14, 26, 0.95) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-servicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% -20%,
    rgba(79, 156, 249, 0.08),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-servicio:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 156, 249, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(79, 156, 249, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-servicio:hover::before {
  opacity: 1;
}

.card-servicio__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  aspect-ratio: 16 / 10;
}

.card-servicio__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(9, 15, 26, 0.7) 100%
  );
  pointer-events: none;
}

.card-servicio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.card-servicio:hover .card-servicio__media img {
  transform: scale(1.05);
}

.card-servicio__body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.5rem 0;
  line-height: 1.65;
}

.card-servicio__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(1.2rem, 2.8vw, 1.4rem);
  font-weight: 700;
  color: #f5f9ff;
  letter-spacing: 0.01em;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.card-servicio__meta {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.card-servicio__meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: rgba(214, 231, 255, 0.82);
  border-bottom: 1px solid rgba(79, 156, 249, 0.12);
  padding-bottom: 0.7rem;
  align-items: center;
  line-height: 1.6;
}

.card-servicio__meta div strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.card-servicio__meta div:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.card-servicio__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.01em;
}

.card-servicio__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.2) 0%,
    rgba(53, 112, 213, 0.25) 100%
  );
  color: rgba(214, 231, 255, 0.95);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.15);
}

.card-servicio__badge.is-live {
  border-color: rgba(79, 156, 249, 0.5);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25) 0%,
    rgba(53, 112, 213, 0.3) 100%
  );
}

.card-servicio__badge.is-draft {
  border-color: rgba(255, 199, 92, 0.45);
  background: linear-gradient(
    135deg,
    rgba(255, 199, 92, 0.18) 0%,
    rgba(230, 169, 62, 0.22) 100%
  );
  color: rgba(255, 214, 143, 0.95);
}

.card-servicio__badge.is-paused {
  border-color: rgba(255, 134, 134, 0.45);
  background: rgba(255, 134, 134, 0.18);
  color: rgba(255, 208, 208, 0.92);
}

.card-servicio__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tarjetas Admin */
.tarjeta-admin {
  background: linear-gradient(
    180deg,
    rgba(14, 22, 38, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 60%,
    rgba(6, 10, 18, 0.96) 100%
  );
  border-radius: 22px;
  box-shadow: 0 26px 52px rgba(4, 10, 22, 0.45);
  width: 280px;
  border: 1px solid rgba(79, 156, 249, 0.18);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.tarjeta-admin:hover,
.tarjeta-admin:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(79, 156, 249, 0.22);
}

.tarjeta-enlace {
  display: block;
  text-decoration: none;
  color: rgba(226, 236, 255, 0.9);
  padding: 2rem;
  border-radius: 22px;
}

.tarjeta-enlace h3 {
  margin-bottom: 10px;
  color: #f7fbff;
  font-family: var(--font-family-display);
}

.tarjeta-enlace p {
  font-size: 0.95rem;
  color: rgba(186, 204, 233, 0.75);
}

/* Tarjeta de servicio y acciones (admin) */
.tarjeta-servicio {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.tarjeta-servicio.card-servicio {
  margin-top: 1.25rem;
  border: 1px solid rgba(79, 156, 249, 0.22);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 38, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 60%,
    rgba(6, 10, 18, 0.96) 100%
  );
  box-shadow: 0 28px 58px rgba(4, 10, 22, 0.5);
}

.tarjeta-servicio.activa,
.tarjeta-acciones.activa {
  opacity: 1;
  transform: translateY(0);
}

.tarjeta-servicio h3,
.tarjeta-acciones h3 {
  margin-bottom: 0.75rem;
  color: #f7fbff;
  font-family: var(--font-family-display);
}

.tarjeta-acciones {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(79, 156, 249, 0.22);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 38, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 60%,
    rgba(6, 10, 18, 0.96) 100%
  );
  box-shadow: 0 28px 58px rgba(4, 10, 22, 0.5);
}

.nombre-servicio-animada,
.nombre-categoria-animada {
  animation: fadeInText 0.3s ease;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nota-informativa {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.22) 0%,
    rgba(53, 112, 213, 0.32) 100%
  );
  color: rgba(226, 236, 255, 0.9);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  box-shadow: 0 18px 32px rgba(5, 10, 20, 0.35);
}

/* 4.7 Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(4, 8, 16, 0.72);
}

.modal-contenido {
  background: linear-gradient(
    160deg,
    rgba(18, 28, 48, 0.92) 0%,
    rgba(11, 18, 32, 0.96) 100%
  );
  color: rgba(226, 236, 255, 0.9);
  margin: 12% auto;
  padding: 1.8rem;
  border: 1px solid rgba(79, 156, 249, 0.28);
  width: 90%;
  max-width: 420px;
  border-radius: 18px;
  box-shadow: 0 38px 70px rgba(4, 10, 22, 0.55);
  animation-name: aparecer;
  animation-duration: 0.4s;
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes vibrar {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.modal-contenido.error {
  border-color: rgba(255, 118, 118, 0.65);
  animation: vibrar 0.3s ease-in-out;
  box-shadow: 0 0 25px rgba(255, 118, 118, 0.42);
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.cerrar:hover,
.cerrar:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.modal-contenido h2,
.modal-contenido p {
  color: rgba(226, 236, 255, 0.9);
}

.modal-contenido form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-contenido form label {
  color: rgba(226, 236, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.modal-contenido form input[type='password'] {
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.32);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(12, 20, 34, 0.9);
  color: rgba(236, 242, 255, 0.95);
}

.modal-contenido form button {
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(79, 156, 249, 0.42);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85) 0%,
    rgba(53, 112, 213, 0.95) 100%
  );
  color: #f7fbff;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-contenido form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(79, 156, 249, 0.32);
}

/* 4.8 Paginación */
.paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  border-radius: 16px;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  background: rgba(14, 22, 38, 0.72);
  border: 1px solid rgba(79, 156, 249, 0.18);
  box-shadow: 0 18px 28px rgba(4, 10, 22, 0.35);
  width: fit-content;
  align-self: center;
}

.paginacion a,
.paginacion span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  color: rgba(226, 236, 255, 0.85);
  background: linear-gradient(
    135deg,
    rgba(24, 36, 58, 0.85) 0%,
    rgba(16, 26, 46, 0.9) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.28);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paginacion a:hover {
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow: 0 14px 26px rgba(79, 156, 249, 0.25);
  transform: translateY(-1px);
}

.paginacion a.active {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.7) 0%,
    rgba(53, 112, 213, 0.85) 100%
  );
  color: #f7fbff;
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 16px 32px rgba(79, 156, 249, 0.32);
}

.paginacion a:disabled {
  pointer-events: none;
  opacity: 0.4;
}

#perPage {
  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.28);
  font-size: 0.95rem;
  color: rgba(226, 236, 255, 0.9);
  background: linear-gradient(
    135deg,
    rgba(19, 28, 46, 0.82) 0%,
    rgba(12, 20, 34, 0.92) 100%
  );
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  min-width: 90px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dfe9ff' d='M10.59.58 6 5.17 1.41.58 0 2l6 6 6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

#perPage:hover,
#perPage:focus {
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow: 0 12px 24px rgba(79, 156, 249, 0.25);
}

#perPage option {
  color: #1d2336;
  background: #f8fbff;
}

/* 4.9 Mensajes y Alertas */
.mensaje {
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.15) 0%,
    rgba(53, 112, 213, 0.2) 50%,
    rgba(79, 156, 249, 0.12) 100%
  );
  color: rgba(236, 242, 255, 0.95);
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(79, 156, 249, 0.3);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  box-shadow:
    0 16px 40px rgba(79, 156, 249, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  animation: slideInToast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#error-mensaje {
  display: none;
  background: linear-gradient(
    145deg,
    rgba(255, 107, 122, 0.12) 0%,
    rgba(220, 53, 69, 0.18) 55%,
    rgba(255, 107, 122, 0.1) 100%
  );
  color: rgba(255, 231, 235, 0.95);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  box-shadow:
    0 16px 36px rgba(220, 53, 69, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.notice {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  background: rgba(14, 22, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 36px rgba(4, 10, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.notice p {
  margin: 0;
}

.notice--error {
  background: linear-gradient(
    145deg,
    rgba(255, 107, 122, 0.14) 0%,
    rgba(220, 53, 69, 0.2) 55%,
    rgba(255, 107, 122, 0.12) 100%
  );
  border: 1px solid rgba(255, 107, 122, 0.38);
  color: rgba(255, 231, 235, 0.95);
  box-shadow: 0 16px 34px rgba(220, 53, 69, 0.22);
}

.notice--success {
  background: linear-gradient(
    145deg,
    rgba(93, 216, 121, 0.14) 0%,
    rgba(40, 167, 69, 0.2) 55%,
    rgba(93, 216, 121, 0.12) 100%
  );
  border: 1px solid rgba(93, 216, 121, 0.38);
  color: rgba(225, 255, 235, 0.95);
  box-shadow: 0 16px 34px rgba(40, 167, 69, 0.2);
}

.notice--info {
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.14) 0%,
    rgba(53, 112, 213, 0.2) 55%,
    rgba(79, 156, 249, 0.12) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.35);
  color: rgba(230, 241, 255, 0.95);
  box-shadow: 0 16px 34px rgba(79, 156, 249, 0.2);
}

.advertencia-finalizacion {
  background: linear-gradient(
    145deg,
    rgba(240, 173, 78, 0.14) 0%,
    rgba(192, 138, 62, 0.22) 55%,
    rgba(240, 173, 78, 0.12) 100%
  );
  border: 1px solid rgba(240, 173, 78, 0.4);
  color: rgba(255, 243, 217, 0.95);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  box-shadow:
    0 18px 36px rgba(240, 173, 78, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.advertencia-finalizacion ul {
  margin: 0.65rem 0 0.85rem;
  padding-left: 1.2rem;
}

.advertencia-finalizacion input[type='checkbox'] {
  margin-right: 0.5rem;
  accent-color: #f0ad4e;
}

/* 4.10 File Upload */
.file-upload {
  position: relative;
  display: block;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  border: 2px dashed rgba(79, 156, 249, 0.35);
  border-radius: 18px;
  padding: 1.6rem;
  text-align: center;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
  background: rgba(14, 20, 32, 0.85);
  color: rgba(225, 235, 255, 0.88);
  /* Cursor fijo en toda el área — evita el parpadeo entre cursor:text y cursor:pointer */
  cursor: pointer;
  /* Elimina selección de texto en todos los hijos — previene cursor:text */
  user-select: none;
  -webkit-user-select: none;
}

.file-upload input[type='file'] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  /* Garantiza que el input siempre esté encima — intercepta todos los eventos de puntero */
  z-index: 1;
}

.file-upload span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.6) 0%,
    rgba(57, 124, 214, 0.82) 100%
  );
  color: #f7fbff;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  /* El input (z-index:1) maneja todos los clics — el span es puramente decorativo */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  /* z-index explícito bajo el input para evitar ambigüedad en el stacking context */
  position: relative;
  z-index: 0;
}

.file-upload input[type='file']:hover + span,
.file-upload input[type='file']:focus + span {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(79, 156, 249, 0.35);
}

.file-upload.dragover {
  background-color: rgba(23, 34, 56, 0.85);
  border-color: rgba(79, 156, 249, 0.55);
}

/* Contenedores de fotos */
.foto-container {
  max-width: 500px;
  max-height: 500px;
  overflow: hidden;
}

.foto-servicio {
  border-radius: 0.5em;
  max-width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.preview-container {
  max-width: 280px;
  margin-top: 0.75rem;
}

.foto-preview {
  border-radius: 0.5em;
  max-width: 100%;
  max-height: 200px;
  opacity: 0;
  transform: scale(0.9);
}

.foto-preview.visible {
  transition:
    opacity 0.5s ease-in,
    transform 0.5s ease-in;
  opacity: 1;
  transform: scale(1);
}

.foto-perfil {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1rem;
}

/* 4.11 Estrellas de Evaluación */
.form-evaluacion {
  max-width: 440px;
  margin: 2rem auto;
  padding: clamp(1.6rem, 3vw, 2rem);
  border: 1px solid rgba(79, 156, 249, 0.24);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 38, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 60%,
    rgba(6, 10, 18, 0.96) 100%
  );
  box-shadow: 0 26px 52px rgba(4, 10, 22, 0.45);
  font-family: var(--font-family-base);
  color: rgba(226, 236, 255, 0.9);
}

.form-evaluacion fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-evaluacion legend {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: #f7fbff;
  font-family: var(--font-family-display);
}

.form-evaluacion .contenedor-estrellas {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.4rem;
}

.form-evaluacion .contenedor-estrellas input[type='radio'] {
  display: none;
}

.estrella {
  font-size: 2.2rem;
  color: lightgray;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: inline-block;
  margin-right: 4px;
  position: relative;
}

.estrella::before {
  content: '\2605';
  color: #ffd700;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  overflow: hidden;
}

.estrella.llena::before {
  width: 100%;
}

.estrella.media::before {
  width: 50%;
}

.contenedor-estrellas {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Estrellas seleccionadas */
input[type='radio']:checked + label,
input[type='radio']:checked + label ~ label {
  color: gold;
}

/* Hover visual */
.estrella:hover,
.estrella:hover ~ .estrella {
  color: orange;
  transform: scale(1.2);
}

.form-evaluacion button[type='submit'] {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.82) 0%,
    rgba(53, 112, 213, 0.92) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.42);
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.form-evaluacion button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(79, 156, 249, 0.28);
}

.evaluacion-contenido {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* 4.12 Listas de Servicios */
.lista-servicios {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(200px, 45vw, 300px), 1fr)
  );
  gap: clamp(1rem, 2.2vw, 1.6rem);
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  justify-items: stretch;
}

.servicios-grid .lista-servicios {
  width: 100%;
}

.lista-servicios li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: min(100%, 300px);
  min-width: 0;
  min-height: clamp(400px, 50vw, 480px);
  height: auto;
  padding: 0.75rem;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-radius: 20px;
  border: 1px solid rgba(79, 156, 249, 0.16);
  background: linear-gradient(
    165deg,
    rgba(16, 24, 40, 0.86) 0%,
    rgba(11, 18, 30, 0.92) 50%,
    rgba(8, 14, 26, 0.95) 100%
  );
  box-shadow: 0 16px 36px rgba(4, 10, 22, 0.38);
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lista-servicios li::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% -10%,
      rgba(79, 156, 249, 0.18),
      transparent 55%
    ),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.lista-servicios li:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 156, 249, 0.35);
  box-shadow:
    0 28px 60px rgba(4, 10, 22, 0.55),
    0 0 0 1px rgba(79, 156, 249, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lista-servicios li:hover::before {
  opacity: 1;
}

.lista-servicios li a,
.lista-servicios li button {
  margin-top: auto;
  align-self: center;
  width: 100%;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1rem, 2.2vw, 1.3rem);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.92) 0%,
    rgba(53, 112, 213, 0.95) 100%
  );
  color: #f7fbff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.7vw, 0.92rem);
  letter-spacing: 0.02em;
  border: 1px solid rgba(135, 180, 249, 0.45);
  box-shadow:
    0 12px 24px rgba(79, 156, 249, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  cursor: pointer;
  border: 1px solid rgba(135, 180, 249, 0.45);
  font-family: inherit;
  appearance: none;
}

.lista-servicios li a::before,
.lista-servicios li button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.lista-servicios li a:hover::before,
.lista-servicios li a:focus::before,
.lista-servicios li button:hover::before,
.lista-servicios li button:focus::before {
  opacity: 1;
}

.lista-servicios li a:hover,
.lista-servicios li a:focus,
.lista-servicios li button:hover,
.lista-servicios li button:focus {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(95, 175, 255, 0.95) 0%,
    rgba(79, 156, 249, 1) 100%
  );
  box-shadow:
    0 18px 36px rgba(79, 156, 249, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(155, 200, 255, 0.6);
  color: #f7fbff;
  text-decoration: none;
  outline: none;
}

.lista-servicios li a:active,
.lista-servicios li button:active {
  transform: translateY(0);
  box-shadow:
    0 8px 16px rgba(79, 156, 249, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lista-servicios .foto-servicio {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  image-rendering: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── Estado vacío: sin servicios ─────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  margin: 2rem auto;
  max-width: 480px;
  text-align: center;
  background: rgba(10, 16, 28, 0.55);
  border: 1px solid rgba(79, 156, 249, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(4, 10, 22, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.18) 0%,
    rgba(53, 112, 213, 0.28) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.3);
  font-size: 1.85rem;
  color: rgba(130, 190, 255, 0.9);
  box-shadow: 0 4px 20px rgba(79, 156, 249, 0.18);
}

.empty-state__title {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.empty-state__text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(200, 215, 240, 0.7);
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  background: rgba(10, 16, 28, 0.6);
  border: 1px solid rgba(79, 156, 249, 0.16);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 32px 72px rgba(4, 10, 22, 0.55);
  width: 100%;
  place-items: stretch;
}

.services-grid.is-list {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.services-grid.is-list .card-servicio {
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
}

/* Services Toolbar */
.services-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 clamp(1.25rem, 3vw, 1.8rem);
  flex-wrap: wrap;
  width: 100%;
  background: rgba(14, 22, 36, 0.68);
  border: 1px solid rgba(79, 156, 249, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  box-shadow: 0 18px 32px rgba(5, 12, 24, 0.32);
}

.services-toolbar label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(173, 192, 222, 0.8);
  margin-right: 0.15rem;
  flex: 0 0 auto;
}

.services-toolbar select {
  margin-left: auto;
  background: rgba(8, 14, 24, 0.92);
  border: 1px solid rgba(79, 156, 249, 0.35);
  color: #f7fbff;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
}

/* ==========================================================================
   5.0 PÁGINAS ESPECÍFICAS
   ========================================================================== */

/* 5.1 Portal Administrador */
.page-portal-administrador .mensaje-bienvenida {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 22px;
  text-align: center;
  color: rgba(226, 236, 255, 0.88);
  background: linear-gradient(
    160deg,
    rgba(18, 28, 48, 0.92) 0%,
    rgba(9, 14, 24, 0.95) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  box-shadow: 0 30px 60px rgba(4, 10, 22, 0.5);
}

.page-portal-administrador .mensaje-bienvenida h2 {
  margin-top: 0;
  color: #f7fbff;
  font-family: var(--font-family-display);
}

.contenedor-tarjetas-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-top: 30px;
}

.bloque-agregar {
  margin-bottom: 20px;
}

/* 5.2 Administrar Categorías - Ya incluido en componentes */

/* 5.3 Administrar Servicios - Ya incluido en componentes */

/* 5.4 Cambiar Foto de Perfil */
.page-cambiar-foto-perfil .contenedor-fotos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 20px auto;
  gap: 20px;
}

.page-cambiar-foto-perfil .foto-actual,
.page-cambiar-foto-perfil .foto-nueva {
  width: 45%;
}

.page-cambiar-foto-perfil .foto-actual img,
.page-cambiar-foto-perfil .foto-nueva .crop-container {
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-cambiar-foto-perfil .foto-nueva .crop-container {
  animation: aparecer 0.5s ease-in-out;
}

.croppie-container .cr-boundary {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  z-index: 1;
  max-width: 100%;
  border-radius: 10px;
  height: 100%;
}

/* Contenedor de fotos genérico */
.contenedor-fotos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 20px auto;
  gap: 20px;
}

.foto-actual,
.foto-nueva {
  width: 45%;
}

.foto-actual img,
.foto-nueva .crop-container {
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.foto-nueva .crop-container {
  animation: aparecer 0.5s ease-in-out;
}

/* 5.5 Detalle de Servicio */
.contenedor-detalle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.cuadro-servicio,
.cuadro-prestador {
  background: linear-gradient(
    160deg,
    rgba(18, 28, 48, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 100%
  );
  padding: 1.5rem;
  margin: 0.75rem 0;
  border: 1px solid rgba(79, 156, 249, 0.18);
  border-radius: 18px;
  width: 80%;
  box-sizing: border-box;
  box-shadow: 0 30px 60px rgba(4, 10, 22, 0.5);
  color: rgba(226, 236, 255, 0.88);
}

.cuadro-servicio img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.cuadro-servicio p,
.cuadro-prestador p {
  margin: 0.35rem 0;
  color: inherit;
}

/* Panel Layout overrides para detalle */
.panel-layout .contenedor-detalle {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 1.25rem;
}

.panel-layout .cuadro-servicio,
.panel-layout .cuadro-prestador {
  background: linear-gradient(
    160deg,
    rgba(18, 28, 48, 0.92) 0%,
    rgba(9, 14, 24, 0.95) 100%
  ) !important;
  border: 1px solid rgba(79, 156, 249, 0.22);
  border-radius: 22px;
  padding: clamp(1.25rem, 3.2vw, 1.8rem);
  box-shadow: 0 30px 60px rgba(4, 10, 22, 0.55);
  color: rgba(226, 236, 255, 0.9);
}

.panel-layout .cuadro-servicio h1,
.panel-layout .cuadro-prestador h2 {
  margin: 0 0 0.85rem 0;
  color: #f7fbff;
  font-family: var(--font-family-display);
}

.panel-layout .cuadro-servicio img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(79, 156, 249, 0.25);
  margin-bottom: 1rem;
  background: #0f1217;
}

.panel-layout .detalle-precio {
  color: var(--bs-primary);
  font-weight: 700;
}

.panel-layout .foto-perfil {
  width: 160px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: #0f1217;
  margin-bottom: 0.75rem;
}

.panel-layout .btn-solicitar {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.32) 0%,
    rgba(53, 112, 213, 0.48) 100%
  );
  color: #f7fbff;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(79, 156, 249, 0.42);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.panel-layout .btn-solicitar:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.45) 0%,
    rgba(53, 112, 213, 0.62) 100%
  );
  border-color: rgba(79, 156, 249, 0.65);
  box-shadow: 0 18px 32px rgba(79, 156, 249, 0.28);
}

.contenedor-imagen-servicio img,
.contenedor-perfil-prestador img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
}

/* 5.6 Datos de Usuario */
.contenedor-datos-usuario {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contenedor-seccion {
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 16px;
  padding: 1.75rem;
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 38, 0.9) 0%,
    rgba(9, 14, 24, 0.94) 100%
  );
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contenedor-seccion:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(79, 156, 249, 0.15);
}

.contenedor-perfil img {
  max-width: 350px;
  height: auto;
  border-radius: 50%;
}

.contenedor-seccion a {
  display: block;
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85) 0%,
    rgba(53, 112, 213, 0.95) 100%
  );
  color: #f7fbff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contenedor-seccion a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(79, 156, 249, 0.28);
}

.contenedor-contraseña {
  flex: 1 1 100%;
  padding: 0.65rem 1.1rem;
}

.contenedor-seccion p {
  word-wrap: break-word;
  font-size: 0.92rem;
}

.page-actualizar-datos .datos-usuario {
  color: #1d2336;
  background: #f8fbff;
  max-width: 100%;
  box-sizing: border-box;
}

/* 5.7 Solicitudes */
.subfiltros-solicitudes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.subfiltros-solicitudes button {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(135, 180, 249, 0.35);
  background: linear-gradient(
    135deg,
    rgba(24, 36, 58, 0.75),
    rgba(16, 26, 46, 0.9)
  );
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(226, 236, 255, 0.9);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow:
    0 10px 20px rgba(4, 10, 22, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.subfiltros-solicitudes button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.subfiltros-solicitudes button:hover::before,
.subfiltros-solicitudes button:focus::before {
  opacity: 1;
}

.subfiltros-solicitudes button:hover,
.subfiltros-solicitudes button:focus {
  transform: translateY(-2px);
  border-color: rgba(155, 200, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.35),
    rgba(53, 112, 213, 0.5)
  );
  box-shadow:
    0 16px 32px rgba(79, 156, 249, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  outline: none;
}

.subfiltros-solicitudes button.activo {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.95),
    rgba(53, 112, 213, 1)
  );
  color: #fff;
  border-color: rgba(155, 200, 255, 0.7);
  box-shadow:
    0 18px 36px rgba(79, 156, 249, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.vista-solicitudes {
  display: none;
}

.vista-solicitudes.activo {
  display: block;
}

/* ==========================================================================
   6.0 UTILIDADES
   ========================================================================== */

/* 6.1 Clases auxiliares */
.is-hidden {
  display: none !important;
}

/* Overflow safety for content (no header changes) */
.mensaje-bienvenida,
.admin-welcome,
.auth-welcome,
.auth-hero__card-header,
.legal-section__content,
.legal-header__title,
.legal-header__update,
.legal-toc__title,
.legal-toc__list a,
.panel-section__title,
.panel-layout section,
.settings-card__description,
.settings-summary__item,
.card-servicio__title,
.card-servicio__meta div,
.notification-item h4,
.notification-item p {
  overflow-wrap: break-word;
  word-break: break-word;
}

.mensaje-bienvenida,
.admin-welcome,
.auth-hero__card,
.auth-card,
.panel-layout section,
.settings-card,
.legal-content,
.legal-section,
.legal-grid,
.legal-rights-grid,
.legal-prohibited-grid,
.legal-security-grid,
.legal-ip-grid {
  max-width: 100%;
  box-sizing: border-box;
}

.mensaje-bienvenida,
.admin-welcome,
.auth-hero__card,
.auth-card,
.panel-layout section,
.settings-card,
.legal-grid,
.legal-rights-grid,
.legal-prohibited-grid,
.legal-security-grid,
.legal-ip-grid,
.panel-footer,
.footer-container {
  min-width: 0;
}

.legal-grid,
.legal-rights-grid,
.legal-prohibited-grid,
.legal-security-grid,
.legal-ip-grid,
.admin-stats-grid,
.admin-cards-grid,
.services-grid,
.lista-servicios {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-footer,
.footer-container,
.services-toolbar,
.panel-section__header,
.notification-item__actions,
.notifications-modal__actions {
  flex-wrap: wrap;
}

.panel-footer__column,
.services-toolbar label,
.services-toolbar select,
.panel-filter__select,
.panel-filter__label,
.notification-item__actions button {
  min-width: 0;
  max-width: 100%;
}

.legal-page img,
.legal-page svg,
.legal-page video,
.legal-page canvas,
.admin-welcome__icon img,
.panel-header__logo img,
.auth-welcome__logo,
.auth-hero__logo {
  max-width: 100%;
  height: auto;
}

.d-none {
  display: none !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.mt-30 {
  margin-top: 30px !important;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(162, 189, 222, 0.18);
  color: rgba(226, 236, 255, 0.85);
  border: 1px solid rgba(162, 189, 222, 0.35);
}

.etiqueta--success {
  background: rgba(102, 227, 154, 0.2);
  border-color: rgba(102, 227, 154, 0.45);
  color: rgba(214, 250, 226, 0.9);
}

/* 6.2 Accesibilidad */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   7.0 MEDIA QUERIES (Responsive)
   ========================================================================== */

/* Pantallas grandes */
@media (min-width: 992px) {
  .contenedor-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
    width: 80%;
    margin: 0 auto;
  }

  .cuadro-servicio,
  .cuadro-prestador {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-self: center;
    min-height: 400px;
    width: 100%;
    height: 100%;
  }

  .cuadro-servicio {
    grid-column: 1 / 2;
  }

  .cuadro-prestador {
    grid-column: 2 / 3;
  }

  .form-servicio {
    grid-column: 1 / 3;
    display: flex;
    justify-content: center;
  }

  .contenedor-seccion {
    flex: 1 1 calc(45% - 20px);
    max-width: calc(45% - 20px);
  }

  .panel-layout .contenedor-detalle {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .panel-layout .form-servicio {
    grid-column: 1 / -1;
  }
}

/* Pantallas muy grandes */
@media (min-width: 1024px) {
  .lista-servicios {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.4rem, 2.5vw, 2rem);
  }
}

/* Ajustes para desktop medio (861-1071px) - 3 columnas */
@media (min-width: 861px) and (max-width: 1071px) {
  .lista-servicios {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2.3vw, 1.8rem);
  }

  .lista-servicios li {
    min-height: 440px;
    padding-bottom: 1.85rem;
  }

  .lista-servicios li a {
    max-width: 170px;
    padding: 0.7rem 1.15rem;
  }
}

/* Ajustes para desktop grande (1072-1199px) - 3 columnas */
@media (min-width: 1072px) and (max-width: 1199px) {
  .lista-servicios {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2rem);
  }

  .lista-servicios li {
    min-height: 460px;
    padding-bottom: 2rem;
  }

  .lista-servicios li a {
    max-width: 180px;
    padding: 0.75rem 1.3rem;
  }
}

/* Ajustes para desktop extra grande (1200px+) - 4 columnas */
@media (min-width: 1200px) {
  .lista-servicios {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.6rem, 2.5vw, 2.2rem);
  }

  .lista-servicios li {
    min-height: 460px;
    padding-bottom: 2rem;
  }

  .lista-servicios li a {
    max-width: 180px;
    padding: 0.75rem 1.3rem;
  }
}

/* Ajustes para pantallas medianas */
@media (max-width: 992px) {
  .contenedor-seccion {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .panel-layout main {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(2rem, 5vw, 2.8rem);
    padding: clamp(1.8rem, 5vw, 2.6rem);
    max-width: min(var(--layout-max), calc(100% - clamp(2.4rem, 10vw, 4rem)));
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 910px) {
  .contenedor-seccion {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Ajustes específicos para tablet (601-860px) */
@media (min-width: 601px) and (max-width: 860px) {
  .lista-servicios {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
  }

  .lista-servicios li {
    min-height: 420px;
    max-width: 100%;
    padding-bottom: 1.75rem;
  }

  .lista-servicios li a {
    max-width: 160px;
    padding: 0.65rem 1rem;
  }
}

@media (max-width: 860px) {
  .page-cambiar-foto-perfil .contenedor-fotos,
  .contenedor-fotos {
    flex-direction: column;
    align-items: center;
    max-width: 75vw;
  }

  .page-cambiar-foto-perfil .foto-actual,
  .page-cambiar-foto-perfil .foto-nueva,
  .foto-actual,
  .foto-nueva {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-cambiar-foto-perfil .foto-nueva .crop-container .cr-boundary {
    max-width: 90%;
  }

  /* Mantener header en row layout para diseño más compacto y elegante */
  .panel-header__bar {
    gap: 0.75rem;
    padding: 0.65rem clamp(1rem, 4vw, 1.5rem);
    border-radius: 0 0 16px 16px;
  }

  .panel-header__logo img {
    width: 42px;
    height: 42px;
  }

  .panel-header__user {
    padding: 0.4rem 0.65rem 0.4rem 0.4rem;
    min-height: 40px;
  }

  .panel-header__username {
    font-size: 0.85rem;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .panel-layout main {
    width: min(100%, 600px);
    margin: 0 auto;
    padding: clamp(1.6rem, 5vw, 2.1rem) clamp(1.8rem, 6vw, 2.3rem);
    row-gap: clamp(2rem, 6vw, 2.8rem);
  }

  .panel-layout section {
    width: 100%;
    max-width: 540px;
    padding: clamp(1.8rem, 6vw, 2.5rem);
    border-radius: 28px;
    align-items: center;
    margin-inline: auto;
    gap: clamp(1.8rem, 6vw, 2.6rem);
  }
}

@media (max-width: 420px) {
  .panel-header__bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  header .menu-icon,
  .panel-header__notifications {
    width: 38px;
    height: 38px;
  }

  .panel-header__logo img {
    width: 38px;
    height: 38px;
  }

  .panel-header__actions {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .panel-header__user {
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    min-height: 38px;
  }

  .panel-header__username {
    display: none;
  }

  .panel-header__user-dropdown {
    right: 0;
    left: auto;
    max-width: 92vw;
  }

  .panel-layout main {
    padding: 1.2rem 1rem 2rem;
    row-gap: 1.6rem;
  }

  .panel-layout section {
    padding: 1.6rem 1rem 2rem;
    min-height: auto;
    gap: 1.4rem;
  }

  .contacto-solicitante {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0.8rem;
  }

  .btn-contacto {
    width: fit-content;
    max-width: 90%;
    justify-content: center;
    white-space: normal;
  }
}

/* Paginación responsive */
@media (max-width: 600px) {
  .preview-container {
    display: block;
    margin-top: 10px;
  }

  .paginacion a,
  .paginacion span {
    display: block;
    margin: 0.4rem 0;
  }

  .paginacion {
    flex-direction: column;
    padding: 0.75rem;
  }

  .lista-servicios {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lista-servicios li {
    max-width: 100%;
    min-height: 380px;
    padding-bottom: 1.5rem;
  }

  .lista-servicios li a {
    max-width: min(100%, 200px);
    padding: 0.7rem 1.2rem;
  }
}

/* Panel layout móvil */
@media (max-width: 640px) {
  .panel-layout aside#menu {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    padding: clamp(0.5rem, 2.5vw, 1rem);
    border-radius: 0;
    border: none;
  }

  .panel-nav__header {
    padding: 1.5rem 1rem 1.2rem;
  }

  .panel-nav__list {
    padding: 1.25rem 1rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .panel-nav__cta {
    padding: 1rem 1rem 1.4rem;
  }

  .panel-nav__link:hover,
  .panel-nav__link:focus {
    transform: translateX(2px);
  }

  .services-toolbar {
    justify-content: space-between;
    gap: 0.6rem;
  }

  .services-toolbar select {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .services-toolbar label {
    flex: 1 1 100%;
  }
}

/* Auth layout responsive */
@media (max-width: 992px) {
  .auth-hero {
    padding: 3rem 1.75rem;
  }

  .auth-hero__copy {
    max-width: none;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .auth-hero__title {
    font-size: clamp(2.1rem, 6vw, 2.75rem);
  }

  .auth-hero__card {
    width: min(100%, 480px);
    padding: clamp(2.2rem, 6vw, 2.85rem);
  }

  .auth-hero__card-header {
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 720px) {
  .auth-hero {
    padding: 2.5rem 1.5rem;
  }

  .auth-hero__card {
    width: min(100%, 440px);
    padding: clamp(2rem, 7vw, 2.5rem);
  }
}

@media (max-width: 540px) {
  .auth-hero {
    padding: 2.25rem 1.25rem;
  }

  .auth-hero__title {
    font-size: clamp(1.9rem, 7.5vw, 2.35rem);
  }

  .auth-hero__card {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .panel-layout main {
    padding: 1rem;
  }

  .panel-header__bar {
    padding-inline: 1rem;
    padding-block: 0.6rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    row-gap: 0.75rem;
    border-radius: 0 0 14px 14px;
  }

  .panel-header__actions {
    justify-self: end;
  }

  .panel-header__logo {
    justify-self: center;
  }

  .panel-header__user-dropdown {
    right: 0;
    left: auto;
    max-width: calc(100vw - 2rem);
  }

  .panel-header__user {
    gap: 0.65rem;
  }

  .panel-header__greeting {
    flex: 1 1 100%;
    font-size: 0.85rem;
  }

  .panel-layout section {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   8.0 PÁGINAS DE AUTENTICACIÓN (Login, Registro, Activación, Recuperación)
   ========================================================================== */

/* 8.1 Auth Page Container */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(79, 156, 249, 0.1),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(215, 219, 228, 0.05),
      transparent 45%
    ),
    linear-gradient(160deg, #151515 0%, #1a2027 40%, #0f1319 100%);
  font-family: var(--font-family-base);
  position: relative;
}

/* 8.2 Auth Card (contenedor principal) */
.auth-card {
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(24, 32, 48, 0.92) 0%,
    rgba(12, 18, 32, 0.94) 70%,
    rgba(9, 14, 24, 0.96) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.28);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 48px 90px rgba(3, 7, 16, 0.55);
  color: #f7fbff;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  max-height: fit-content;
  backdrop-filter: blur(24px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% -10%,
      rgba(79, 156, 249, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at 110% 10%,
      rgba(88, 122, 237, 0.18),
      transparent 45%
    );
  pointer-events: none;
}

.auth-card--wide {
  max-width: 550px;
  max-height: fit-content;
}

.auth-card--split {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 400px;
  max-height: fit-content;
  text-align: center;
}

@media (min-width: 800px) {
  .auth-card--split {
    flex-direction: row;
    text-align: left;
    max-width: 660px;
    gap: 2.5rem;
    padding: 2rem 2.5rem;
  }

  .auth-card--split .auth-welcome {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
    max-width: 160px;
  }

  .auth-card--split .auth-form-container {
    flex: 1;
  }
}

/* 8.3 Auth Welcome Section (logo y mensaje) */
.auth-welcome {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.auth-welcome__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.auth-welcome__logo:hover {
  transform: scale(1.05);
}

.auth-welcome__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbffff;
  font-family: var(--font-family-display);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}

.auth-welcome__subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(215, 219, 228, 0.7);
  line-height: 1.35;
  max-width: 100%;
  text-align: center;
}

.auth-welcome__message {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-welcome__message--success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #5dd879;
}

.auth-welcome__message--error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff6b7a;
}

.auth-welcome__message--info {
  background: rgba(79, 156, 249, 0.15);
  border: 1px solid rgba(79, 156, 249, 0.4);
  color: #7ab8ff;
}

/* 8.4 Auth Form Container */
.auth-form-container {
  position: relative;
  z-index: 1;
}

.auth-form-container__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #fbffff;
  font-family: var(--font-family-display);
}

/* 8.5 Auth Form */
.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form--grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 500px) {
  .auth-form--grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-form--grid .auth-form__group--full {
    grid-column: 1 / -1;
  }
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(215, 219, 228, 0.9);
}

.auth-form__input,
.auth-form__select {
  appearance: none;
  width: 100%;
  background: rgba(14, 20, 32, 0.9);
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: rgba(236, 242, 255, 0.95);
  font-size: 0.9rem;
  font-family: var(--font-family-base);
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-sizing: border-box;
}

.auth-form__input::placeholder {
  color: rgba(215, 219, 228, 0.45);
}

.auth-form__input:focus,
.auth-form__select:focus {
  outline: none;
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.22);
  background: rgba(18, 26, 42, 0.95);
}

.auth-form__input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-form__input--error {
  border-color: rgba(220, 53, 69, 0.6);
}

.auth-form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.22);
}

.auth-form__hint {
  font-size: 0.8rem;
  color: rgba(215, 219, 228, 0.6);
  margin-top: 0.25rem;
}

.auth-form__error {
  font-size: 0.85rem;
  color: #ff6b7a;
  font-weight: 500;
  margin-top: 0.25rem;
}

.auth-form__success {
  font-size: 0.85rem;
  color: #5dd879;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* 8.6 Auth Button */
.auth-form__submit {
  width: 100%;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(79, 156, 249, 0.45);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.9) 0%,
    rgba(62, 134, 229, 0.95) 100%
  );
  color: #f7fbff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  font-family: var(--font-family-base);
  margin-top: 0.1rem;
}

.auth-form__submit:hover,
.auth-form__submit:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(79, 156, 249, 0.35);
}

.auth-form__submit:active {
  transform: translateY(0);
}

.auth-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 8.7 Auth Links/Footer */
.auth-links {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.auth-links__item {
  font-size: 0.82rem;
  color: rgba(215, 219, 228, 0.75);
  margin: 0;
}

.auth-links__item a {
  color: var(--bs-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-links__item a:hover,
.auth-links__item a:focus {
  color: var(--bs-primary-hover);
  text-decoration: underline;
}

/* 8.8 Custom Alert System (Modales Personalizados) */
.custom-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-alert-overlay--show {
  opacity: 1;
}

.custom-alert-modal {
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(24, 32, 48, 0.98) 0%,
    rgba(12, 18, 32, 0.98) 70%,
    rgba(9, 14, 24, 0.98) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.3);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-alert-modal--show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.custom-alert-modal__header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.custom-alert-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.custom-alert-modal__icon svg {
  width: 28px;
  height: 28px;
}

.custom-alert-modal__icon--info {
  background: linear-gradient(135deg, #7ab8ff, #4f9cf9);
}

.custom-alert-modal__icon--success {
  background: linear-gradient(135deg, #5dd879, #28a745);
}

.custom-alert-modal__icon--error {
  background: linear-gradient(135deg, #ff6b7a, #dc3545);
}

.custom-alert-modal__icon--warning {
  background: linear-gradient(135deg, #ffc978, #f0ad4e);
}

.custom-alert-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbffff;
  font-family: var(--font-family-display);
}

.custom-alert-modal__body {
  padding: 0 1.5rem 1.25rem;
  text-align: center;
}

.custom-alert-modal__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(215, 219, 228, 0.9);
}

.custom-alert-modal__footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.custom-alert-modal__button {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
}

.custom-alert-modal__button--primary {
  background: linear-gradient(135deg, #4f9cf9 0%, #3b7dd6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.3);
}

.custom-alert-modal__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 156, 249, 0.4);
}

.custom-alert-modal__button--primary:active {
  transform: translateY(0);
}

.custom-alert-modal__button--secondary {
  background: rgba(215, 219, 228, 0.1);
  color: rgba(215, 219, 228, 0.9);
  border: 1px solid rgba(215, 219, 228, 0.2);
}

.custom-alert-modal__button--secondary:hover {
  background: rgba(215, 219, 228, 0.15);
  border-color: rgba(215, 219, 228, 0.3);
}

.custom-alert-modal__button--danger {
  background: linear-gradient(135deg, #ff6b7a 0%, #dc3545 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.custom-alert-modal__button--danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.custom-alert-modal__button--success {
  background: linear-gradient(135deg, #5dd879 0%, #28a745 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.custom-alert-modal__button--success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.custom-alert-modal__button--warning {
  background: linear-gradient(135deg, #ffc978 0%, #f0ad4e 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(240, 173, 78, 0.3);
}

.custom-alert-modal__button--warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 173, 78, 0.4);
}

/* Responsive para modales */
@media (max-width: 480px) {
  .custom-alert-modal {
    max-width: calc(100% - 2rem);
  }

  .custom-alert-modal__header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .custom-alert-modal__body {
    padding: 0 1.25rem 1rem;
  }

  .custom-alert-modal__footer {
    padding: 0.75rem 1.25rem 1.25rem;
    flex-direction: column;
  }

  .custom-alert-modal__button {
    width: 100%;
    min-width: auto;
  }
}

/* 8.9 Toast Notification System */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  pointer-events: none;
}

.toast {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(18, 26, 42, 0.98) 0%,
    rgba(12, 18, 32, 0.98) 100%
  );
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(79, 156, 249, 0.2);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  transform: translateX(calc(100% + 2rem));
  animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  overflow: hidden;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.toast.toast--hiding {
  animation: slideOut 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes slideOut {
  to {
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
  }
}

.toast__content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__message {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e8edf7;
  margin: 0;
  word-wrap: break-word;
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  width: 100%;
  transform-origin: left;
  animation: shrink 5s linear forwards;
}

@keyframes shrink {
  to {
    transform: scaleX(0);
  }
}

/* Toast Variants */
.toast--success {
  border-left: 3px solid #5dd879;
}

.toast--success .toast__icon {
  color: #5dd879;
}

.toast--success .toast__progress {
  color: #5dd879;
}

.toast--error {
  border-left: 3px solid #ff6b7a;
}

.toast--error .toast__icon {
  color: #ff6b7a;
}

.toast--error .toast__progress {
  color: #ff6b7a;
}

.toast--warning {
  border-left: 3px solid #ffc978;
}

.toast--warning .toast__icon {
  color: #ffc978;
}

.toast--warning .toast__progress {
  color: #ffc978;
}

.toast--info {
  border-left: 3px solid #7ab8ff;
}

.toast--info .toast__icon {
  color: #7ab8ff;
}

.toast--info .toast__progress {
  color: #7ab8ff;
}

/* Toast Responsive */
@media (max-width: 600px) {
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .toast {
    transform: translateY(-150%);
    animation: slideInMobile 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55)
      forwards;
  }

  @keyframes slideInMobile {
    to {
      transform: translateY(0);
    }
  }

  .toast.toast--hiding {
    animation: slideOutMobile 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55)
      forwards;
  }

  @keyframes slideOutMobile {
    to {
      transform: translateY(-150%);
      opacity: 0;
    }
  }
}

/* Legacy notification styles (hidden by default) */
.auth-notification {
  display: none;
}

/* 8.9 Auth Page Responsive */
@media (max-width: 480px) {
  .auth-page {
    padding: 1rem;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
  }

  .auth-card {
    padding: 1.2rem 1.1rem;
    border-radius: 14px;
    max-width: calc(100% - 2rem);
    max-height: fit-content;
  }

  .auth-card--split {
    gap: 0.8rem;
    max-width: calc(100% - 2rem);
    max-height: fit-content;
  }

  .auth-card--wide {
    max-width: calc(100% - 2rem);
    max-height: fit-content;
  }

  .auth-welcome {
    gap: 0.3rem;
    margin-bottom: 0.7rem;
  }

  .auth-welcome__logo {
    width: 50px;
    height: 50px;
  }

  .auth-welcome__title {
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .auth-welcome__subtitle {
    font-size: 0.73rem;
  }

  .auth-form {
    gap: 0.6rem;
  }

  .auth-form--grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .auth-form__group {
    gap: 0.22rem;
  }

  .auth-form__label {
    font-size: 0.8rem;
  }

  .auth-form__input,
  .auth-form__select {
    padding: 0.65rem 0.85rem;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 10px;
  }

  .auth-form__submit {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.15rem;
  }

  .auth-form__hint {
    font-size: 0.7rem;
  }

  .auth-links {
    margin-top: 0.6rem;
    gap: 0.28rem;
  }

  .auth-links__item {
    font-size: 0.74rem;
    line-height: 1.3;
  }
}

/* 8.10 Ingresar Código (Activación/Recuperación) */
.auth-code-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-weight: 600;
  padding: 1rem;
}

.auth-code-input::-webkit-outer-spin-button,
.auth-code-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.auth-code-input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ==========================================================================
   9.0 PÁGINAS DE CONFIGURACIÓN (Settings - Panel de Usuario)
   ========================================================================== */

/* 9.1 Settings Section */
.settings-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* 9.2 Settings Card */
.settings-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(
    160deg,
    rgba(18, 26, 42, 0.92) 0%,
    rgba(12, 18, 32, 0.95) 70%,
    rgba(9, 14, 24, 0.97) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.22);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 32px 64px rgba(3, 7, 16, 0.45);
  backdrop-filter: blur(20px);
}

.settings-card__header {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.settings-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: #fbffff;
  font-family: var(--font-family-display);
}

.settings-card__description {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(215, 219, 228, 0.7);
  line-height: 1.5;
}

/* 9.2.1 Settings Summary */
.settings-summary {
  display: grid;
  gap: 1.5rem;
}

.settings-summary__block {
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(14, 20, 32, 0.6);
  border: 1px solid rgba(79, 156, 249, 0.2);
  display: grid;
  gap: 0.75rem;
}

.settings-summary__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(236, 242, 255, 0.95);
}

.settings-summary__item {
  margin: 0;
  color: rgba(214, 231, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}

.settings-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  color: #f7fbff;
  background: rgba(20, 32, 52, 0.75);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.settings-link:hover,
.settings-link:focus {
  transform: translateY(-1px);
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 14px 26px rgba(79, 156, 249, 0.25);
}

.settings-link--primary {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.85) 0%,
    rgba(62, 134, 229, 0.95) 100%
  );
  border-color: rgba(79, 156, 249, 0.5);
}

.settings-link--secondary {
  background: rgba(15, 24, 40, 0.9);
}

/* 9.3 Settings Form */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.campo-editable {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.campo-editable .settings-form__input,
.campo-editable .settings-form__select {
  flex: 1 1 auto;
}

.settings-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(215, 219, 228, 0.9);
}

.settings-form__input,
.settings-form__select,
.settings-form__textarea {
  appearance: none;
  width: 100%;
  background: rgba(14, 20, 32, 0.9);
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: var(--border-radius);
  padding: 0.85rem 1rem;
  color: rgba(236, 242, 255, 0.95);
  font-size: 1rem;
  font-family: var(--font-family-base);
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-sizing: border-box;
}

.settings-form__input::placeholder,
.settings-form__textarea::placeholder {
  color: rgba(215, 219, 228, 0.45);
}

.settings-form__input:focus,
.settings-form__select:focus,
.settings-form__textarea:focus {
  outline: none;
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.22);
  background: rgba(18, 26, 42, 0.95);
}

.settings-form__input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Campo habilitado para edición — feedback visual Liquid Glass */
.settings-form__input.campo-editando,
.settings-form__select.campo-editando {
  border-color: rgba(79, 156, 249, 0.7);
  box-shadow:
    0 0 0 3px rgba(79, 156, 249, 0.18),
    0 0 12px rgba(79, 156, 249, 0.15);
  background: rgba(18, 28, 46, 0.97);
  opacity: 1;
}

.settings-form__hint {
  font-size: 0.8rem;
  color: rgba(215, 219, 228, 0.55);
  margin-top: 0.25rem;
}

.settings-form__feedback {
  display: block;
  min-height: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

.settings-form__success {
  color: #5dd879;
  font-weight: 500;
}

.settings-form__error {
  color: #ff6b7a;
  font-weight: 500;
}

.editar-campo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(79, 156, 249, 0.3);
  color: rgba(214, 231, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.editar-campo:hover,
.editar-campo:focus {
  color: #f7fbff;
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 10px 20px rgba(79, 156, 249, 0.22);
}

/* 9.4 Settings Submit Button */
.settings-form__submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(79, 156, 249, 0.45);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.9) 0%,
    rgba(62, 134, 229, 0.95) 100%
  );
  color: #f7fbff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  font-family: var(--font-family-base);
  margin-top: 0.75rem;
}

.settings-form__submit:hover,
.settings-form__submit:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(79, 156, 249, 0.35);
}

.settings-form__submit:active {
  transform: translateY(0);
}

.settings-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 9.5 Settings Notification */
.settings-notification {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  background: rgba(79, 156, 249, 0.12);
  border: 1px solid rgba(79, 156, 249, 0.35);
  color: #7ab8ff;
}

.settings-notification--success {
  background: rgba(40, 167, 69, 0.12);
  border: 1px solid rgba(40, 167, 69, 0.35);
  color: #5dd879;
}

.settings-notification--error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #ff6b7a;
}

/* 9.6 Settings Responsive */
@media (max-width: 600px) {
  .settings-section {
    padding: 1rem;
  }

  .settings-card {
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border-radius: var(--border-radius);
  }

  .settings-form__input,
  .settings-form__select {
    padding: 0.75rem 0.9rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ==========================================================================
   SECTION 8.10 - ESTILOS DE FORMULARIO DE EVALUACIÓN (Consolidado)
   ========================================================================== */

.form-evaluacion {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', sans-serif;
}

.form-evaluacion fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.form-evaluacion legend {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

.contenedor-estrellas {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.4rem;
}

.contenedor-estrellas input[type='radio'] {
  display: none;
}

.estrella {
  font-size: 2.2rem;
  color: lightgray;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contenedor-estrellas input[type='radio']:checked ~ label {
  color: lightgray;
}

/* Estrellas seleccionadas */
.contenedor-estrellas input[type='radio']:checked + label,
.contenedor-estrellas input[type='radio']:checked + label ~ label {
  color: gold;
}

/* Hover visual */
.estrella:hover,
.estrella:hover ~ .estrella {
  color: orange;
  transform: scale(1.2);
}

/* Botón */
.form-evaluacion button[type='submit'] {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #233857;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-evaluacion button[type='submit']:hover {
  background-color: #1a2a40;
}

/* ==========================================================================
   SECTION 8.11 - ESTILOS DE ACTUALIZAR CORREO (Consolidado)
   ========================================================================== */

.contenedor-correo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contenedor-correo h2 {
  color: #233857;
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.contenedor-correo p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.contenedor-correo label {
  color: #233857;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.contenedor-correo input[type='email'] {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.contenedor-correo button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background-color: #233857;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}

.contenedor-correo button:hover {
  background-color: #1a2a40;
}

/* ==========================================================================
   SECTION 8.12 - ESTILOS DE EDITAR SERVICIO (Admin)
   ========================================================================== */

.form-editar-servicio label {
  font-weight: bold;
  color: #233857;
  margin-bottom: 5px;
}

.form-editar-servicio select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  margin-bottom: 15px;
}

.form-editar-servicio select:focus {
  border-color: #007acc;
  outline: none;
}

.boton-secundario {
  background-color: #f0ad4e;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.boton-secundario:hover {
  background-color: #ec9a30;
}

/* ==========================================================================
   7.0 MEDIA QUERIES (Responsive)
   ========================================================================== */

/* 7.1 Estilos del botón de menú hamburger - Liquid Glass */
.menu-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(79, 156, 249, 0.35);
  background: linear-gradient(
    145deg,
    rgba(38, 62, 108, 0.75) 0%,
    rgba(18, 32, 58, 0.85) 50%,
    rgba(24, 42, 78, 0.8) 100%
  );
  color: #f0f6ff;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(8, 16, 32, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 200;
}

.menu-icon:hover,
.menu-icon:focus {
  border-color: rgba(79, 156, 249, 0.6);
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.55) 0%,
    rgba(53, 112, 213, 0.65) 50%,
    rgba(79, 156, 249, 0.5) 100%
  );
  transform: scale(1.05);
  box-shadow:
    0 12px 32px rgba(79, 156, 249, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.menu-icon:active {
  transform: scale(0.95);
}

/* 7.2 Overlay del menú - Siempre disponible */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 7.4 Badge mejorado */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0.15rem 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.35) 0%,
    rgba(53, 112, 213, 0.45) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(79, 156, 249, 0.2);
}

/* Badge de estado de publicación - Liquid Glass */
.badge--activo {
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(50, 200, 120, 0.25) 0%,
    rgba(30, 160, 90, 0.35) 100%
  );
  border-color: rgba(50, 200, 120, 0.45);
  color: #6feaa0;
  box-shadow: 0 2px 10px rgba(50, 200, 120, 0.15);
  margin-left: 0;
}

.badge--inactivo {
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 100, 100, 0.18) 0%,
    rgba(200, 60, 60, 0.28) 100%
  );
  border-color: rgba(255, 100, 100, 0.35);
  color: #ff8f8f;
  box-shadow: 0 2px 10px rgba(255, 100, 100, 0.12);
  margin-left: 0;
}

.badge--suspendido {
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 180, 50, 0.18) 0%,
    rgba(200, 130, 20, 0.28) 100%
  );
  border-color: rgba(255, 180, 50, 0.35);
  color: #ffd080;
  box-shadow: 0 2px 10px rgba(255, 180, 50, 0.12);
  margin-left: 0;
}

/* 7.5 Estilos del panel section header */
.panel-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(79, 156, 249, 0.12);
}

/* 7.6 Link destacado del menú */
.panel-nav__link--highlight {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.3) 0%,
    rgba(53, 112, 213, 0.38) 100%
  ) !important;
  border-color: rgba(79, 156, 249, 0.45) !important;
  position: relative;
}

.panel-nav__link--highlight::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--bs-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(79, 156, 249, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-50%) scale(0.85);
  }
}

.panel-nav__link--highlight:hover,
.panel-nav__link--highlight:focus {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.45) 0%,
    rgba(53, 112, 213, 0.55) 100%
  ) !important;
  border-color: rgba(79, 156, 249, 0.65) !important;
}

/* 7.7 Panel section title */
.panel-section__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #fbffff;
  font-family: var(--font-family-display);
  letter-spacing: 0.01em;
}

/* 7.8 Panel filter */
.panel-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-filter__label {
  font-size: 0.9rem;
  color: rgba(215, 219, 228, 0.85);
  font-weight: 600;
}

.panel-filter__select {
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.25);
  background: linear-gradient(
    145deg,
    rgba(14, 20, 32, 0.85) 0%,
    rgba(18, 26, 42, 0.9) 100%
  );
  color: rgba(236, 242, 255, 0.95);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.panel-filter__select:hover {
  border-color: rgba(79, 156, 249, 0.4);
}

.panel-filter__select:focus {
  outline: none;
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow:
    0 0 0 3px rgba(79, 156, 249, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

/* 7.9 Grid de servicios */
.servicios-grid {
  display: block;
  width: 100%;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* 7.10 Paginación */
.paginacion__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.paginacion__info {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

/* 7.10.1 Paginación - Números de página */
.paginacion__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  color: rgba(226, 236, 255, 0.85);
  background: linear-gradient(
    135deg,
    rgba(24, 36, 58, 0.85) 0%,
    rgba(16, 26, 46, 0.9) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.paginacion__num:hover {
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow: 0 8px 20px rgba(79, 156, 249, 0.2);
  transform: translateY(-1px);
  color: #f7fbff;
}

.paginacion__num--active {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.7) 0%,
    rgba(53, 112, 213, 0.85) 100%
  );
  color: #f7fbff;
  border-color: rgba(79, 156, 249, 0.6);
  box-shadow: 0 10px 28px rgba(79, 156, 249, 0.3);
  cursor: default;
  pointer-events: none;
}

.paginacion__ellipsis {
  color: rgba(226, 236, 255, 0.45);
  padding: 0 0.3rem;
  font-size: 1rem;
  user-select: none;
}

/* 7.10.2 Panel Section Actions */
.panel-section__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 7.10.3 Botón Refresh Catálogo - Liquid Glass */
.btn-refresh-catalogo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.25);
  background: linear-gradient(
    135deg,
    rgba(24, 36, 58, 0.82) 0%,
    rgba(16, 26, 46, 0.9) 100%
  );
  color: rgba(226, 236, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.03em;
}

.btn-refresh-catalogo:hover {
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow: 0 12px 30px rgba(79, 156, 249, 0.22);
  transform: translateY(-2px);
  color: #f7fbff;
}

.btn-refresh-catalogo:hover .fa-sync-alt {
  animation: spinRefresh 0.6s ease-in-out;
}

@keyframes spinRefresh {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 7.10.4 Liquid Glass Page Transition */
.liquid-glass-container {
  animation: liquidGlassIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes liquidGlassIn {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
    filter: blur(6px) saturate(0.8);
  }
  40% {
    opacity: 0.7;
    filter: blur(2px) saturate(1);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) saturate(1);
  }
}

/* Staggered entrance for individual service cards */
.liquid-glass-container .lista-servicios li {
  animation: liquidCardEntrance 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.liquid-glass-container .lista-servicios li:nth-child(1) {
  animation-delay: 0.04s;
}
.liquid-glass-container .lista-servicios li:nth-child(2) {
  animation-delay: 0.08s;
}
.liquid-glass-container .lista-servicios li:nth-child(3) {
  animation-delay: 0.12s;
}
.liquid-glass-container .lista-servicios li:nth-child(4) {
  animation-delay: 0.16s;
}
.liquid-glass-container .lista-servicios li:nth-child(5) {
  animation-delay: 0.2s;
}
.liquid-glass-container .lista-servicios li:nth-child(6) {
  animation-delay: 0.24s;
}
.liquid-glass-container .lista-servicios li:nth-child(7) {
  animation-delay: 0.28s;
}
.liquid-glass-container .lista-servicios li:nth-child(8) {
  animation-delay: 0.32s;
}
.liquid-glass-container .lista-servicios li:nth-child(9) {
  animation-delay: 0.36s;
}
.liquid-glass-container .lista-servicios li:nth-child(10) {
  animation-delay: 0.4s;
}

@keyframes liquidCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    filter: blur(4px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    box-shadow: 0 16px 36px rgba(4, 10, 22, 0.38);
  }
}

/* Liquid Glass glow effect on the container */
.liquid-glass-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 156, 249, 0.4),
    rgba(79, 156, 249, 0.6),
    rgba(79, 156, 249, 0.4),
    transparent
  );
  border-radius: 2px;
  opacity: 0;
  animation: liquidGlowLine 1.2s 0.3s ease-out forwards;
}

@keyframes liquidGlowLine {
  0% {
    opacity: 0;
    width: 0%;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    width: 80%;
  }
}

.liquid-glass-container {
  position: relative;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .liquid-glass-container,
  .liquid-glass-container .lista-servicios li {
    animation: none;
  }
  .liquid-glass-container::before {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   7.10.5  BUSCADOR AVANZADO — Liquid Glass Design
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper externo */
.buscador-wrapper {
  width: 100%;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* ── Botón trigger ────────────────────────────────────────────── */
.buscador-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(79, 156, 249, 0.22);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(16, 26, 46, 0.88) 0%,
    rgba(10, 18, 34, 0.94) 100%
  );
  color: rgba(220, 235, 255, 0.92);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  user-select: none;
  text-align: left;
}

.buscador-toggle:hover {
  border-color: rgba(79, 156, 249, 0.42);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(79, 156, 249, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.buscador-toggle span {
  flex: 1;
}

.buscador-toggle__icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── Panel colapsable ─────────────────────────────────────────── */
.buscador-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  transform-origin: top center;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height, opacity, transform;
  /* Liquid Glass */
  background: linear-gradient(
    165deg,
    rgba(12, 20, 36, 0.92) 0%,
    rgba(8, 14, 28, 0.96) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.16);
  border-top: none;
  border-radius: 0 0 20px 20px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.buscador-panel.is-open {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Ajuste del toggle cuando panel está abierto */
.buscador-toggle[aria-expanded='true'] {
  border-color: rgba(79, 156, 249, 0.35);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow:
    0 4px 0 rgba(79, 156, 249, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Filas internas del panel ─────────────────────────────────── */
.buscador-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.35rem 1.5rem 0;
}

.buscador-panel__row--price {
  padding-top: 0.8rem;
}

.buscador-panel__row--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid rgba(79, 156, 249, 0.08);
  margin-top: 0.8rem;
}

.buscador-panel__row--filters {
  gap: 0.85rem;
}

/* ── Campos (label + input) ───────────────────────────────────── */
.buscador-campo {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 200px;
  min-width: 0;
}

.buscador-campo--full {
  flex: 1 1 100%;
}

.buscador-campo__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(160, 190, 240, 0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.buscador-campo__label i {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ── Input texto ──────────────────────────────────────────────── */
.buscador-campo__input {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.22);
  background: rgba(10, 16, 30, 0.75);
  color: rgba(225, 235, 255, 0.95);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.buscador-campo__input::placeholder {
  color: rgba(140, 165, 215, 0.45);
}

.buscador-campo__input:focus {
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow:
    0 0 0 3px rgba(79, 156, 249, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Select campos ────────────────────────────────────────────── */
.buscador-campo__select {
  padding: 0.58rem 2.2rem 0.58rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.22);
  background: rgba(10, 16, 30, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23adc8f5' d='M10.59.58 6 5.17 1.41.58 0 2l6 6 6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  color: rgba(215, 230, 255, 0.9);
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.buscador-campo__select:focus {
  border-color: rgba(79, 156, 249, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.12);
}

.buscador-campo__select option {
  background: #0d1729;
  color: rgba(215, 230, 255, 0.9);
}

/* ── Sugerencias predictivas ──────────────────────────────────── */
#buscador-texto-wrap {
  position: relative;
}

.buscador-sugerencias {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  border-radius: 14px;
  border: 1px solid rgba(79, 156, 249, 0.25);
  background: linear-gradient(
    145deg,
    rgba(14, 22, 40, 0.97) 0%,
    rgba(9, 15, 28, 0.99) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  /* Colapsado */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.buscador-sugerencias.is-open {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  overflow-y: auto;
}

.buscador-sugerencia__item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background-color 0.18s ease;
  border-radius: 10px;
  margin: 0 0.35rem;
}

.buscador-sugerencia__item:hover {
  background: rgba(79, 156, 249, 0.12);
}

.buscador-sugerencia__titulo {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(225, 238, 255, 0.95);
}

.buscador-sugerencia__titulo mark {
  background: transparent;
  color: rgba(100, 170, 255, 1);
  font-style: normal;
}

.buscador-sugerencia__meta {
  font-size: 0.76rem;
  color: rgba(140, 165, 215, 0.65);
}

/* Scrollbar sugerencias */
.buscador-sugerencias::-webkit-scrollbar {
  width: 4px;
}
.buscador-sugerencias::-webkit-scrollbar-track {
  background: transparent;
}
.buscador-sugerencias::-webkit-scrollbar-thumb {
  background: rgba(79, 156, 249, 0.3);
  border-radius: 4px;
}

/* ── Slider de precio ─────────────────────────────────────────── */
.precio-display {
  color: rgba(100, 175, 255, 0.95);
  margin-left: 0.35rem;
}

.precio-slider {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 0.35rem;
}

.precio-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(40, 60, 100, 0.7);
  overflow: hidden;
}

.precio-slider__track-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(79, 156, 249, 0.7) 0%,
    rgba(130, 190, 255, 0.9) 100%
  );
  border-radius: 4px;
  left: 0%;
  width: 100%;
  transition:
    left 0.08s ease,
    width 0.08s ease;
}

.precio-slider__input {
  position: absolute;
  left: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  height: 36px;
  outline: none;
  margin: 0;
}

.precio-slider__input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f9cf9 0%, #357ed5 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.45);
  cursor: pointer;
  pointer-events: all;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.precio-slider__input::-webkit-slider-thumb:hover,
.precio-slider__input:active::-webkit-slider-thumb {
  transform: scale(1.25);
  box-shadow: 0 6px 18px rgba(79, 156, 249, 0.65);
}

.precio-slider__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f9cf9 0%, #357ed5 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(79, 156, 249, 0.45);
  cursor: pointer;
  pointer-events: all;
}

/* ── Contador de resultados ───────────────────────────────────── */
.buscador-contador {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(100, 175, 255, 0.85);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.buscador-contador.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Botón limpiar ────────────────────────────────────────────── */
.buscador-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(79, 156, 249, 0.25);
  background: transparent;
  color: rgba(180, 210, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.buscador-btn:hover {
  border-color: rgba(79, 156, 249, 0.5);
  background: rgba(79, 156, 249, 0.08);
  color: rgba(220, 238, 255, 0.95);
  transform: translateY(-1px);
}

/* ── Estado vacío / sin resultados ───────────────────────────── */
.buscador-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  text-align: center;
  color: rgba(160, 190, 240, 0.65);
}

.buscador-vacio__icon {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  opacity: 0.35;
}

.buscador-vacio__msg {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin: 0;
}

.buscador-vacio__btn {
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.28);
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.18) 0%,
    rgba(53, 112, 213, 0.25) 100%
  );
  color: rgba(200, 225, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.buscador-vacio__btn:hover {
  border-color: rgba(79, 156, 249, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 156, 249, 0.22);
}

/* ── Loading spinner ──────────────────────────────────────────── */
.buscador-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  color: rgba(160, 190, 240, 0.65);
  font-size: 0.95rem;
}

.buscador-loading__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(79, 156, 249, 0.2);
  border-top-color: rgba(79, 156, 249, 0.85);
  border-radius: 50%;
  animation: buscadorSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes buscadorSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Animación de entrada de cards por JS ─────────────────────── */
.buscador-card-enter {
  animation: buscadorCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-index, 0) * 0.04s);
}

@keyframes buscadorCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Foto placeholder (sin imagen) ───────────────────────────── */
.foto-servicio--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: rgba(20, 30, 50, 0.6);
  color: rgba(79, 156, 249, 0.3);
  font-size: 2.5rem;
}

/* ── Rating en cards JS ───────────────────────────────────────── */
.card-rating {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
}

/* Pill de rating dentro del card — tamaño compacto */
.card-rating .rating-display {
  padding: 4px 10px 4px 8px;
  gap: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}
.card-rating .rating-display:hover {
  background: rgba(245, 166, 35, 0.14);
  box-shadow:
    0 4px 18px rgba(245, 166, 35, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Estrellas proporcionales al card */
.card-rating .rating-display__star {
  font-size: 0.88rem;
}

/* Score numérico compacto */
.card-rating .rating-display__score {
  font-size: 0.82rem;
  color: #fde68a;
  font-weight: 700;
  white-space: nowrap;
}
.card-rating .rating-display__outof {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}

.sin-calificacion {
  font-size: 0.75rem;
  color: rgba(140, 165, 215, 0.45);
  font-style: italic;
}

/* .rating-valor is no longer used (replaced by .rating-display__score) */

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .buscador-panel__row--filters {
    flex-direction: column;
  }

  .buscador-campo {
    flex: 1 1 100%;
  }

  .buscador-panel__row--actions {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .buscador-panel,
  .buscador-card-enter,
  .buscador-toggle,
  .buscador-sugerencias {
    transition: none;
    animation: none;
  }
}

/* 7.11 Mensajes y Notificaciones Toast - Liquid Glass Effect */
.mensaje,
.toast {
  position: relative;
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(79, 156, 249, 0.15) 0%,
    rgba(53, 112, 213, 0.2) 50%,
    rgba(79, 156, 249, 0.12) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.3);
  color: rgba(236, 242, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow:
    0 16px 40px rgba(79, 156, 249, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  animation: slideInToast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.mensaje::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(79, 156, 249, 0.9) 0%,
    rgba(53, 112, 213, 0.7) 100%
  );
  border-radius: 4px 0 0 4px;
}

/* Mensaje de éxito */
.mensaje.success,
.mensaje.exito,
.mensaje[class*='exito'],
.mensaje[class*='success'] {
  background: linear-gradient(
    145deg,
    rgba(40, 167, 69, 0.15) 0%,
    rgba(32, 134, 55, 0.2) 50%,
    rgba(40, 167, 69, 0.12) 100%
  );
  border-color: rgba(40, 167, 69, 0.35);
  box-shadow:
    0 16px 40px rgba(40, 167, 69, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mensaje.success::before,
.mensaje.exito::before,
.mensaje[class*='exito']::before,
.mensaje[class*='success']::before {
  background: linear-gradient(
    180deg,
    rgba(40, 167, 69, 0.9) 0%,
    rgba(32, 134, 55, 0.7) 100%
  );
}

/* Mensaje de error */
.mensaje.error,
.mensaje.danger,
.mensaje[class*='error'],
.mensaje[class*='danger'] {
  background: linear-gradient(
    145deg,
    rgba(220, 53, 69, 0.15) 0%,
    rgba(176, 42, 55, 0.2) 50%,
    rgba(220, 53, 69, 0.12) 100%
  );
  border-color: rgba(220, 53, 69, 0.35);
  box-shadow:
    0 16px 40px rgba(220, 53, 69, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mensaje.error::before,
.mensaje.danger::before,
.mensaje[class*='error']::before,
.mensaje[class*='danger']::before {
  background: linear-gradient(
    180deg,
    rgba(220, 53, 69, 0.9) 0%,
    rgba(176, 42, 55, 0.7) 100%
  );
}

/* Mensaje de advertencia */
.mensaje.warning,
.mensaje.advertencia,
.mensaje[class*='warning'],
.mensaje[class*='advertencia'] {
  background: linear-gradient(
    145deg,
    rgba(240, 173, 78, 0.15) 0%,
    rgba(192, 138, 62, 0.2) 50%,
    rgba(240, 173, 78, 0.12) 100%
  );
  border-color: rgba(240, 173, 78, 0.35);
  box-shadow:
    0 16px 40px rgba(240, 173, 78, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mensaje.warning::before,
.mensaje.advertencia::before,
.mensaje[class*='warning']::before,
.mensaje[class*='advertencia']::before {
  background: linear-gradient(
    180deg,
    rgba(240, 173, 78, 0.9) 0%,
    rgba(192, 138, 62, 0.7) 100%
  );
}

@keyframes slideInToast {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUpModal {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 7.12 Button Loading State - Liquid Glass */
.btn--loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
  overflow: hidden;
}

.btn--loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.2) 60%,
    transparent 100%
  );
  animation: btnLoadingSweep 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: inherit;
}

@keyframes btnLoadingSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

button[disabled],
input[type='submit'][disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* 7.13 Enhanced Modal - Liquid Glass Premium */
.modal-contenido {
  animation: modalAppear 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

@keyframes modalAppear {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-contenido .advertencia-finalizacion {
  background: linear-gradient(
    145deg,
    rgba(240, 173, 78, 0.08) 0%,
    rgba(192, 138, 62, 0.12) 100%
  );
  border: 1px solid rgba(240, 173, 78, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(236, 242, 255, 0.9);
}

.modal-contenido .advertencia-finalizacion ul {
  margin: 0.5rem 0 0.75rem 1.2rem;
  padding: 0;
}

.modal-contenido .advertencia-finalizacion li {
  margin-bottom: 0.35rem;
}

.modal-contenido .advertencia-finalizacion label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.modal-contenido .advertencia-finalizacion label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: rgba(79, 156, 249, 0.9);
  cursor: pointer;
  flex-shrink: 0;
}

/* Checkbox required highlight when not checked */
.modal-contenido
  .advertencia-finalizacion
  label
  input[type='checkbox']:not(:checked) {
  outline: 2px solid rgba(240, 173, 78, 0.5);
  outline-offset: 2px;
  border-radius: 3px;
  transition: outline-color 0.3s ease;
}

.modal-contenido
  .advertencia-finalizacion
  label
  input[type='checkbox']:checked {
  outline: 2px solid rgba(40, 167, 69, 0.6);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Modal error state enhancement */
.modal-contenido.error .advertencia-finalizacion {
  border-color: rgba(255, 118, 118, 0.4);
  background: linear-gradient(
    145deg,
    rgba(255, 118, 118, 0.06) 0%,
    rgba(220, 53, 69, 0.1) 100%
  );
}

/* Enhanced error message inside modals */
.modal-contenido .mensaje {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  animation: slideInToast 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-contenido .mensaje.is-hidden {
  display: none;
}

/* 7.14 Service cannot be deleted - info banner */
.mensaje.advertencia i {
  margin-right: 0.5rem;
  opacity: 0.85;
}

/* 7.2 Tablets y dispositivos medianos (max-width: 1024px) */
@media (max-width: 1024px) {
  .panel-layout section {
    border-radius: clamp(18px, 4vw, 28px);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 4vw, 2.6rem);
    min-height: calc(100vh - 80px);
  }

  .panel-nav__list {
    max-height: calc(85vh - 200px);
    overflow-y: auto;
  }

  .panel-header__bar {
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(0.75rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
  }

  .panel-header__left {
    flex: 1;
    min-width: 200px;
  }

  .panel-header__right {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .servicios-grid {
    display: block;
    width: 100%;
  }

  .panel-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .panel-filter {
    width: 100%;
    justify-content: space-between;
  }

  .panel-filter__select {
    flex: 1;
    max-width: 200px;
  }
}

/* 7.3 Móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
  .panel-layout header {
    padding: clamp(0.75rem, 2vw, 1rem) 0 clamp(1rem, 2.5vw, 1.5rem);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .panel-layout section {
    padding: clamp(1.5rem, 3vw, 2rem);
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
  }

  aside {
    max-width: 95%;
  }

  .panel-header__bar {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .panel-header__left,
  .panel-header__right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .panel-header__brand {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .panel-header__logo img {
    width: 48px;
    height: 48px;
  }

  .panel-header__brand-name {
    font-size: 1rem;
  }

  .panel-header__brand-tagline {
    font-size: 0.65rem;
  }

  .panel-header__user {
    padding: 0.75rem 1rem;
    justify-content: space-between;
  }

  .panel-header__greeting {
    font-size: 0.9rem;
  }

  .panel-header__logout {
    justify-content: center;
    padding: 0.65rem 1.25rem;
  }

  .panel-nav__list {
    gap: 0.85rem;
  }

  .panel-nav__link {
    padding: 0.85rem 1rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card-servicio {
    padding: 1.25rem;
  }

  .paginacion {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .paginacion__btn,
  .paginacion__info {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .panel-footer {
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem);
  }

  .panel-footer__column {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* 7.4 Móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
  .panel-layout main {
    padding: 1.25rem 1rem 2rem;
    margin-top: 0.75rem;
  }

  .panel-layout section {
    padding: 1.25rem;
    border-radius: clamp(18px, 5vw, 24px);
  }

  .panel-header__bar {
    padding: 0.85rem 1rem;
    border-radius: 0 0 14px 14px;
  }

  .menu-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .panel-header__logo img {
    width: 42px;
    height: 42px;
  }

  .panel-header__brand-name {
    font-size: 0.95rem;
  }

  .panel-header__brand-tagline {
    font-size: 0.6rem;
  }

  .panel-header__user {
    padding: 0.65rem 0.85rem;
  }

  .panel-header__greeting {
    font-size: 0.85rem;
  }

  .panel-header__avatar {
    width: 28px;
    height: 28px;
  }

  .panel-header__logout {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .panel-section__title {
    font-size: 1.35rem;
  }

  .panel-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-filter__select {
    max-width: 100%;
  }

  .panel-nav__title {
    font-size: 0.85rem;
  }

  .panel-nav__link {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .panel-nav__link i {
    font-size: 0.95rem;
  }

  .card-servicio {
    padding: 1.25rem;
  }

  .card-servicio__title {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .card-servicio__meta {
    font-size: 0.85rem;
    gap: 0.65rem;
  }

  .card-servicio__meta div {
    line-height: 1.5;
    padding-bottom: 0.5rem;
  }

  .paginacion {
    padding: 0.85rem;
  }

  .paginacion__btn,
  .paginacion__info {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-width: auto;
  }

  .mensaje {
    padding: 1rem 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* 7.5 Paisaje en móviles */
@media (max-height: 600px) and (orientation: landscape) {
  .panel-layout aside#menu {
    max-height: 400px;
    overflow-y: auto;
  }

  .panel-layout main {
    gap: 1.5rem;
  }

  .panel-header__bar {
    padding: 0.65rem 1.5rem;
  }
}

/* 7.6 Impresión */
@media print {
  .panel-header__bar,
  aside#menu,
  .paginacion,
  footer,
  .menu-icon {
    display: none !important;
  }

  .panel-layout main {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .panel-layout section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ==========================================================================
   MEDIA QUERIES ESPECÍFICOS PARA FOOTER
   ========================================================================== */

/* Footer Desktop (768px+) - 3 columnas */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2.5rem, 5vw, 3.5rem);
    text-align: left;
    justify-items: stretch;
  }

  .footer-container div {
    text-align: left;
  }

  .footer-container h3 {
    justify-content: flex-start;
  }

  .footer-container p,
  .footer-container ul {
    text-align: left;
  }

  .footer-container ul {
    align-items: flex-start;
  }

  .social-media {
    align-items: flex-start;
  }

  .footer-container .logo {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(79, 156, 249, 0.12);
  }

  .footer-container .logo img {
    width: 84px;
    margin: 0 auto;
  }

  .credits {
    grid-column: 1 / -1;
  }

  .back-to-top {
    grid-column: 1 / -1;
  }
}

/* Footer Desktop Grande (1024px+) - 4 columnas */
@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: clamp(3rem, 5vw, 4rem);
  }

  .footer-container .logo {
    grid-column: 1 / 2;
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-container .logo img {
    width: 92px;
    margin: 0;
  }

  .contact-info {
    grid-column: 2 / 3;
  }

  .quick-links {
    grid-column: 3 / 4;
  }

  .social-media {
    grid-column: 4 / 5;
  }

  .credits {
    grid-column: 1 / -1;
  }

  .back-to-top {
    grid-column: 1 / -1;
  }
}

/* Footer Móvil (<600px) */
@media (max-width: 600px) {
  footer {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2rem);
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2rem);
    text-align: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
  }

  .footer-container .logo {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
  }

  .footer-container .logo img {
    width: 64px;
    margin: 0 auto;
  }

  .footer-container .footer-tagline {
    font-size: 0.95rem;
    margin-top: 0.75rem;
    max-width: 22rem;
    margin-inline: auto;
    text-align: center;
  }

  .footer-container h3 {
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
  }

  .footer-container p,
  .footer-container ul {
    text-align: center;
    font-size: 0.88rem;
  }

  .footer-container ul {
    align-items: center;
  }

  .footer-container div {
    text-align: center;
  }

  .social-media {
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .social-media a {
    width: 48px;
    height: 48px;
  }

  .back-to-top a {
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
  }

  .credits p {
    font-size: 0.8rem;
    text-align: center;
  }

  #technicalgroup {
    max-width: 6rem;
  }
}

/* Footer Móvil Pequeño (<420px) - Extra centrado y espaciado */
@media (max-width: 420px) {
  footer {
    padding-bottom: env(safe-area-inset-bottom, 1rem);
  }

  .footer-container {
    padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.5rem);
    gap: clamp(1.25rem, 3.5vw, 1.75rem);
  }

  .footer-container .logo img {
    width: 56px;
  }

  .footer-container .footer-tagline {
    font-size: 0.9rem;
    max-width: 18rem;
  }

  .footer-container h3 {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .footer-container p,
  .footer-container ul {
    font-size: 0.85rem;
  }

  .social-media a {
    width: 44px;
    height: 44px;
  }

  .back-to-top a {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .credits p {
    font-size: 0.75rem;
  }

  #technicalgroup {
    max-width: 5.5rem;
  }
}

/* Footer Tablet (601-767px) */
@media (min-width: 601px) and (max-width: 767px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 2.5rem);
  }

  .footer-container .logo {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-container .logo img {
    width: 76px;
    margin: 0 auto;
  }

  .credits {
    grid-column: 1 / -1;
  }

  .back-to-top {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   NOTIFICACIONES INTERNAS - LIQUID GLASS
   ========================================================================== */

html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

body.modal-open {
  position: relative;
  width: 100%;
}

.notifications-modal,
.notification-action-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
}

.notifications-modal.is-open,
.notification-action-modal.is-open {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.notifications-modal__overlay,
.notification-action-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}

.notifications-modal__content {
  position: relative;
  width: min(94vw, 720px);
  max-height: 85vh;
  margin: auto;
  color: #f7fbff;
  background-color: rgba(12, 18, 32, 0.96);
  background: linear-gradient(
    165deg,
    rgba(16, 24, 40, 0.94),
    rgba(8, 14, 26, 0.98)
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(4, 10, 22, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transform: translateY(16px) scale(0.98);
  animation: notifications-pop 0.4s ease forwards;
  z-index: 2;
  box-sizing: border-box;
}

.notification-action-modal__content {
  position: relative;
  width: min(90vw, 520px);
  max-height: 85vh;
  overflow-y: auto;
  color: #f7fbff;
  background-color: rgba(12, 18, 32, 0.96);
  background: linear-gradient(
    165deg,
    rgba(16, 24, 40, 0.96),
    rgba(8, 14, 26, 0.98)
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 48px rgba(4, 10, 22, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@keyframes notifications-pop {
  to {
    transform: translateY(0) scale(1);
  }
}

.notifications-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-shrink: 0;
}

.notifications-modal__header > div {
  flex: 1;
  min-width: 0;
}

.notifications-modal__header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  color: #f7fbff;
  word-wrap: break-word;
}

.notifications-modal__subtitle {
  margin: 0.35rem 0 0;
  color: rgba(214, 231, 255, 0.7);
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.notifications-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.2);
  background: linear-gradient(
    135deg,
    rgba(24, 36, 58, 0.8),
    rgba(16, 26, 46, 0.9)
  );
  color: rgba(214, 231, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notifications-modal__close:hover {
  border-color: rgba(79, 156, 249, 0.5);
  color: #f7fbff;
}

.notifications-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notifications-filter,
.notifications-action,
.notifications-load {
  border: 1px solid rgba(79, 156, 249, 0.2);
  background: rgba(16, 24, 40, 0.65);
  color: rgba(214, 231, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.notifications-filter[aria-pressed='true'] {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.8),
    rgba(53, 112, 213, 0.9)
  );
  color: #fff;
  border-color: rgba(135, 180, 249, 0.5);
}

.notifications-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  max-height: calc(85vh - 280px);
  flex: 1;
  min-height: 0;
}

.notification-item {
  border: 1px solid rgba(79, 156, 249, 0.12);
  background: rgba(14, 22, 36, 0.65);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.3s ease;
}

.notification-item--unread {
  border-color: rgba(79, 156, 249, 0.35);
  background: rgba(24, 36, 58, 0.7);
}

.notification-item h4 {
  margin: 0;
  font-size: 1rem;
  color: #f7fbff;
}

.notification-item p {
  margin: 0;
  color: rgba(214, 231, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}

.notification-item__meta {
  font-size: 0.75rem;
  color: rgba(214, 231, 255, 0.55);
}

.notification-item__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notification-item__actions button {
  border: 1px solid rgba(79, 156, 249, 0.2);
  background: rgba(16, 24, 40, 0.65);
  color: rgba(214, 231, 255, 0.85);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-item__actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.notifications-empty {
  text-align: center;
  color: rgba(214, 231, 255, 0.6);
  padding: 1.5rem 0;
}

.notification-action-modal__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.notification-action-modal__cancel {
  background: transparent;
  border: 1px solid rgba(79, 156, 249, 0.2);
  color: rgba(214, 231, 255, 0.85);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.notification-action-modal__primary {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.9),
    rgba(53, 112, 213, 1)
  );
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(135, 180, 249, 0.5);
}

/* Notificaciones - Móviles */
@media (max-width: 640px) {
  .notifications-modal__content {
    width: 96vw;
    max-height: 92vh;
    border-radius: 16px;
    padding: 1rem;
    gap: 1rem;
  }

  .notifications-modal__header h2 {
    font-size: 1.15rem;
  }

  .notifications-modal__subtitle {
    font-size: 0.8rem;
  }

  .notifications-modal__close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .notifications-modal__actions {
    gap: 0.5rem;
  }

  .notifications-filter,
  .notifications-action,
  .notifications-load {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }

  .notifications-modal__list {
    gap: 0.7rem;
    max-height: calc(92vh - 260px);
    padding-right: 0.3rem;
  }

  .notification-item {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .notification-item h4 {
    font-size: 0.95rem;
  }

  .notification-item p {
    font-size: 0.85rem;
  }

  .notification-action-modal__content {
    width: 94vw;
    padding: 1.5rem;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .notifications-modal__content {
    width: 98vw;
    max-height: 95vh;
    border-radius: 12px;
    padding: 0.9rem;
  }

  .notifications-modal__header {
    gap: 0.6rem;
  }

  .notifications-modal__header h2 {
    font-size: 1.05rem;
  }

  .notifications-modal__subtitle {
    font-size: 0.75rem;
  }

  .notifications-modal__close {
    width: 32px;
    height: 32px;
  }

  .notifications-modal__close i {
    font-size: 0.9rem;
  }

  .notifications-filter,
  .notifications-action {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .notifications-load {
    font-size: 0.8rem;
    width: 100%;
  }

  .notification-item {
    padding: 0.75rem;
  }

  .notification-item h4 {
    font-size: 0.9rem;
  }

  .notification-item p {
    font-size: 0.8rem;
  }

  .notification-item__meta {
    font-size: 0.7rem;
  }

  .notification-item__actions button {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
}

/* ==========================================================================
   FIN DEL ARCHIVO - BUSCKÖ STYLES.CSS CONSOLIDADO
   ========================================================================== */

/* ==========================================================================
   ADMIN PANEL - LIQUID GLASS PREMIUM DESIGN
   Panel de Administración con diseño consistente
   ========================================================================== */

/* Admin Layout Variant */
.admin-layout {
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(79, 156, 249, 0.08),
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(147, 51, 234, 0.06),
      transparent 45%
    ),
    linear-gradient(165deg, #0b1018 0%, #0f1521 50%, #0a0e16 100%);
}

/* Admin Welcome Section */
.admin-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(
    165deg,
    rgba(16, 24, 42, 0.85) 0%,
    rgba(12, 18, 32, 0.9) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 24px 48px rgba(4, 10, 22, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.admin-welcome__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(147, 51, 234, 0.2)
  );
  border: 1px solid rgba(79, 156, 249, 0.3);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 24px rgba(79, 156, 249, 0.2);
}

.admin-welcome__icon i {
  font-size: 2rem;
  color: rgba(135, 180, 249, 0.95);
}

.admin-welcome__title {
  margin: 0 0 1rem;
  font-family: var(--font-family-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #f7fbff;
  letter-spacing: 0.02em;
}

.admin-welcome__description {
  margin: 0;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(214, 231, 255, 0.75);
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

/* Admin Stat Card */
.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    165deg,
    rgba(18, 28, 46, 0.75) 0%,
    rgba(14, 22, 38, 0.85) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(4, 10, 22, 0.3);
  animation: fadeInUp 0.5s ease-out backwards;
}

.admin-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.admin-stat-card:nth-child(2) {
  animation-delay: 0.2s;
}
.admin-stat-card:nth-child(3) {
  animation-delay: 0.3s;
}
.admin-stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.admin-stat-card:hover,
.admin-stat-card:focus {
  transform: translateY(-4px);
  border-color: rgba(79, 156, 249, 0.4);
  background: linear-gradient(
    165deg,
    rgba(33, 54, 92, 0.7) 0%,
    rgba(26, 44, 78, 0.8) 100%
  );
  box-shadow:
    0 16px 40px rgba(79, 156, 249, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.admin-stat-card--cta {
  border-color: rgba(79, 156, 249, 0.25);
  background: linear-gradient(
    165deg,
    rgba(79, 156, 249, 0.1) 0%,
    rgba(53, 112, 213, 0.08) 100%
  );
}

.admin-stat-card--cta:hover,
.admin-stat-card--cta:focus {
  border-color: rgba(79, 156, 249, 0.5);
  background: linear-gradient(
    165deg,
    rgba(79, 156, 249, 0.2) 0%,
    rgba(53, 112, 213, 0.15) 100%
  );
}

.admin-stat-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.2),
    rgba(53, 112, 213, 0.15)
  );
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.admin-stat-card__icon i {
  font-size: 1.25rem;
  color: rgba(135, 180, 249, 0.95);
}

.admin-stat-card__icon--cta {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.3),
    rgba(53, 112, 213, 0.25)
  );
  border-color: rgba(79, 156, 249, 0.4);
}

.admin-stat-card:hover .admin-stat-card__icon {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(79, 156, 249, 0.25);
}

.admin-stat-card__content {
  flex: 1;
  min-width: 0;
}

.admin-stat-card__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-family-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f7fbff;
}

.admin-stat-card__desc {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(214, 231, 255, 0.65);
}

.admin-stat-card__arrow {
  color: rgba(79, 156, 249, 0.6);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.admin-stat-card:hover .admin-stat-card__arrow {
  color: rgba(79, 156, 249, 1);
  transform: translateX(4px);
}

/* Admin Cards Grid */
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Admin Action Card */
.admin-action-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(
    165deg,
    rgba(16, 24, 42, 0.9) 0%,
    rgba(12, 18, 32, 0.94) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(4, 10, 22, 0.35);
  animation: fadeInUp 0.5s ease-out backwards;
}

.admin-action-card:nth-child(1) {
  animation-delay: 0.15s;
}
.admin-action-card:nth-child(2) {
  animation-delay: 0.25s;
}

.admin-action-card:hover,
.admin-action-card:focus {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(79, 156, 249, 0.35);
  box-shadow:
    0 24px 56px rgba(79, 156, 249, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.admin-action-card__icon {
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(79, 156, 249, 0.12) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.admin-action-card__icon i {
  font-size: 2.5rem;
  color: rgba(135, 180, 249, 0.9);
  transition: all 0.4s ease;
}

.admin-action-card:hover .admin-action-card__icon i {
  transform: scale(1.15);
  color: rgba(135, 180, 249, 1);
}

.admin-action-card__content {
  padding: 1.5rem;
  flex: 1;
}

.admin-action-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #f7fbff;
}

.admin-action-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(214, 231, 255, 0.7);
}

.admin-action-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(79, 156, 249, 0.1);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(79, 156, 249, 0.05) 100%
  );
}

.admin-action-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-action-card:hover .admin-action-card__cta {
  gap: 0.75rem;
}

/* Admin Content Wrapper */
.admin-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Admin Toolbar */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Admin Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  font-family: var(--font-family-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admin-btn i {
  font-size: 1rem;
}

.admin-btn--primary {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.95) 0%,
    rgba(53, 112, 213, 0.98) 100%
  );
  color: #fff;
  border-color: rgba(135, 180, 249, 0.4);
  box-shadow:
    0 12px 24px rgba(79, 156, 249, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-btn--primary:hover,
.admin-btn--primary:focus {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(95, 170, 255, 0.98) 0%,
    rgba(79, 156, 249, 1) 100%
  );
  box-shadow:
    0 16px 32px rgba(79, 156, 249, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: #fff;
}

.admin-btn--secondary {
  background: linear-gradient(
    135deg,
    rgba(240, 173, 78, 0.85) 0%,
    rgba(218, 152, 62, 0.9) 100%
  );
  color: #fff;
  border-color: rgba(255, 200, 120, 0.4);
  box-shadow: 0 8px 20px rgba(240, 173, 78, 0.25);
}

.admin-btn--secondary:hover,
.admin-btn--secondary:focus {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 190, 100, 0.92) 0%,
    rgba(240, 173, 78, 0.95) 100%
  );
  box-shadow: 0 12px 28px rgba(240, 173, 78, 0.35);
  text-decoration: none;
  color: #fff;
}

.admin-btn--danger {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.9) 0%,
    rgba(176, 42, 55, 0.95) 100%
  );
  color: #fff;
  border-color: rgba(255, 120, 120, 0.3);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.25);
}

.admin-btn--danger:hover,
.admin-btn--danger:focus {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(240, 80, 95, 0.95) 0%,
    rgba(220, 53, 69, 1) 100%
  );
  box-shadow: 0 12px 28px rgba(220, 53, 69, 0.35);
  text-decoration: none;
  color: #fff;
}

.admin-btn--ghost {
  background: linear-gradient(
    135deg,
    rgba(18, 28, 46, 0.6) 0%,
    rgba(14, 22, 38, 0.75) 100%
  );
  color: rgba(214, 231, 255, 0.9);
  border-color: rgba(79, 156, 249, 0.2);
}

.admin-btn--ghost:hover,
.admin-btn--ghost:focus {
  background: linear-gradient(
    135deg,
    rgba(33, 54, 92, 0.6) 0%,
    rgba(26, 44, 78, 0.7) 100%
  );
  border-color: rgba(79, 156, 249, 0.4);
  color: #f7fbff;
  text-decoration: none;
}

/* Admin Form Card */
.admin-form-card {
  background: linear-gradient(
    165deg,
    rgba(16, 24, 42, 0.88) 0%,
    rgba(12, 18, 32, 0.92) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(4, 10, 22, 0.3);
  animation: fadeInUp 0.5s ease-out backwards;
}

.admin-form-card--wide {
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
}

.admin-form-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(79, 156, 249, 0.08) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.admin-form-card__header i {
  font-size: 1.1rem;
  color: var(--bs-primary);
}

.admin-form-card__header h3 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
}

/* Admin Form */
.admin-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-form--inline {
  padding: 0;
}

.admin-form--delete {
  padding: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(79, 156, 249, 0.1);
}

.admin-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-form__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(214, 231, 255, 0.85);
}

.admin-form__label i {
  font-size: 0.85rem;
  color: var(--bs-primary);
}

.admin-form__input,
.admin-form__select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  color: #f7fbff;
  background: linear-gradient(
    135deg,
    rgba(14, 22, 38, 0.85) 0%,
    rgba(18, 28, 46, 0.9) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.admin-form__input::placeholder {
  color: rgba(214, 231, 255, 0.4);
}

.admin-form__input:focus,
.admin-form__select:focus {
  outline: none;
  border-color: rgba(79, 156, 249, 0.5);
  background: linear-gradient(
    135deg,
    rgba(18, 28, 46, 0.9) 0%,
    rgba(24, 36, 58, 0.95) 100%
  );
  box-shadow:
    0 0 0 3px rgba(79, 156, 249, 0.15),
    0 8px 16px rgba(4, 10, 22, 0.2);
}

.admin-form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F9CF9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.admin-form__select option {
  background: #1a2332;
  color: #f7fbff;
  padding: 0.75rem;
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Admin Detail Card */
.admin-detail-card {
  background: linear-gradient(
    165deg,
    rgba(16, 24, 42, 0.88) 0%,
    rgba(12, 18, 32, 0.92) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.15);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(4, 10, 22, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-detail-card.activa {
  opacity: 1;
  transform: translateY(0);
}

.admin-detail-card--standalone {
  opacity: 1;
  transform: translateY(0);
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
  animation: fadeInUp 0.5s ease-out;
}

.admin-detail-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(79, 156, 249, 0.08) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.admin-detail-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.2),
    rgba(53, 112, 213, 0.15)
  );
  border: 1px solid rgba(79, 156, 249, 0.3);
  border-radius: 12px;
  flex-shrink: 0;
}

.admin-detail-card__icon i {
  font-size: 1.1rem;
  color: var(--bs-primary);
}

.admin-detail-card__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #f7fbff;
}

.admin-detail-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-detail-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(79, 156, 249, 0.1);
}

/* Admin Alert */
.admin-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease-out;
}

.admin-alert i {
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.admin-alert--warning {
  background: linear-gradient(
    135deg,
    rgba(240, 173, 78, 0.15) 0%,
    rgba(218, 152, 62, 0.1) 100%
  );
  border: 1px solid rgba(240, 173, 78, 0.3);
  color: rgba(255, 210, 140, 0.95);
}

.admin-alert--warning i {
  color: rgba(240, 173, 78, 0.9);
}

/* Admin Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-modal.show {
  opacity: 1;
  visibility: visible;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-modal__content {
  position: relative;
  width: min(460px, 95vw);
  background: linear-gradient(
    165deg,
    rgba(16, 24, 42, 0.97) 0%,
    rgba(10, 16, 28, 0.99) 100%
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.92) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal.show .admin-modal__content {
  transform: scale(1) translateY(0);
}

.admin-modal__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
  background: linear-gradient(
    180deg,
    rgba(220, 53, 69, 0.08) 0%,
    transparent 100%
  );
}

.admin-modal__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}

.admin-modal__icon--danger {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.2),
    rgba(176, 42, 55, 0.15)
  );
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.admin-modal__icon--danger i {
  font-size: 1.25rem;
  color: rgba(255, 134, 134, 0.95);
}

.admin-modal__title {
  margin: 0;
  flex: 1;
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #f7fbff;
}

.admin-modal__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(18, 28, 46, 0.7),
    rgba(14, 22, 38, 0.85)
  );
  border: 1px solid rgba(79, 156, 249, 0.2);
  border-radius: 12px;
  color: rgba(214, 231, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-modal__close:hover,
.admin-modal__close:focus {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.2),
    rgba(176, 42, 55, 0.25)
  );
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff8686;
}

.admin-modal__body {
  padding: 1.5rem;
}

.admin-modal__text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(214, 231, 255, 0.8);
}

.admin-modal__text i {
  color: var(--bs-primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.admin-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 12, 22, 0.3) 100%
  );
  border-top: 1px solid rgba(79, 156, 249, 0.1);
}

/* Admin Checkbox */
.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.admin-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-checkbox__mark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(14, 22, 38, 0.85),
    rgba(18, 28, 46, 0.9)
  );
  border: 2px solid rgba(79, 156, 249, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.admin-checkbox__mark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
}

.admin-checkbox input:checked + .admin-checkbox__mark {
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.9),
    rgba(53, 112, 213, 0.95)
  );
  border-color: rgba(135, 180, 249, 0.5);
}

.admin-checkbox input:checked + .admin-checkbox__mark::after {
  opacity: 1;
  transform: scale(1);
}

.admin-checkbox input:focus + .admin-checkbox__mark {
  box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.2);
}

.admin-checkbox__text {
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.85);
  line-height: 1.5;
}

/* Admin Header Variants */
.panel-header__user--admin {
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.15) 0%,
    rgba(79, 156, 249, 0.1) 100%
  );
  border-color: rgba(147, 51, 234, 0.25);
}

.panel-header__user--admin:hover,
.panel-header__user--admin:focus {
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.25) 0%,
    rgba(79, 156, 249, 0.2) 100%
  );
  border-color: rgba(147, 51, 234, 0.4);
}

.panel-header__avatar--admin {
  background: linear-gradient(
    145deg,
    rgba(147, 51, 234, 0.5) 0%,
    rgba(79, 156, 249, 0.4) 100%
  );
  border-color: rgba(147, 51, 234, 0.5);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-header__avatar--admin i {
  font-size: 0.95rem;
  color: #fff;
}

.panel-header__user-info {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.panel-header__role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(147, 51, 234, 0.9);
}

/* Admin Login Styles */
.auth-hero__card--admin {
  border-color: rgba(147, 51, 234, 0.25);
}

.auth-hero__card--admin::before {
  background:
    radial-gradient(
      circle at 20% -10%,
      rgba(147, 51, 234, 0.28),
      transparent 55%
    ),
    radial-gradient(
      circle at 110% 10%,
      rgba(79, 156, 249, 0.2),
      transparent 45%
    );
}

.admin-login__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.9) 0%,
    rgba(107, 33, 168, 0.95) 100%
  );
  border: 2px solid rgba(180, 100, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.admin-login__badge i {
  font-size: 1.25rem;
  color: #fff;
}

.auth-hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 12px 24px rgba(79, 156, 249, 0.2);
}

.admin-login__message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.15) 0%,
    rgba(176, 42, 55, 0.1) 100%
  );
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 12px;
  color: rgba(255, 170, 170, 0.95);
  font-size: 0.9rem;
}

.admin-login__message i {
  color: rgba(255, 134, 134, 0.9);
  flex-shrink: 0;
}

.admin-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.9) 0%,
    rgba(79, 156, 249, 0.85) 100%
  ) !important;
  border-color: rgba(180, 100, 255, 0.4) !important;
  box-shadow: 0 16px 32px rgba(147, 51, 234, 0.35) !important;
}

.admin-login__submit:hover,
.admin-login__submit:focus {
  background: linear-gradient(
    135deg,
    rgba(167, 71, 255, 0.95) 0%,
    rgba(95, 170, 255, 0.9) 100%
  ) !important;
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.45) !important;
}

.admin-login__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(214, 231, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-login__back:hover,
.admin-login__back:focus {
  color: var(--bs-primary);
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.4s ease-out;
}

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-welcome {
    padding: 1.5rem;
  }

  .admin-welcome__icon {
    width: 64px;
    height: 64px;
  }

  .admin-welcome__icon i {
    font-size: 1.5rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-cards-grid {
    grid-template-columns: 1fr;
  }

  .admin-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-form__actions {
    flex-direction: column;
  }

  .admin-detail-card__actions {
    flex-direction: column;
  }

  .admin-modal__footer {
    flex-direction: column;
  }

  .admin-modal__footer .admin-btn {
    width: 100%;
  }

  .panel-header__username {
    display: none;
  }
}

@media (max-width: 480px) {
  .admin-stat-card {
    padding: 1rem 1.25rem;
  }

  .admin-stat-card__icon {
    width: 44px;
    height: 44px;
  }

  .admin-stat-card__title {
    font-size: 0.95rem;
  }

  .admin-stat-card__desc {
    font-size: 0.8rem;
  }

  .admin-form-card__header {
    padding: 1rem 1.25rem;
  }

  .admin-form {
    padding: 1.25rem;
  }

  .admin-detail-card__body {
    padding: 1.25rem;
  }

  .admin-login__badge {
    width: 40px;
    height: 40px;
    top: -10px;
    right: 16px;
  }

  .auth-hero__logo {
    width: 64px;
    height: 64px;
  }
}

/* ==========================================================================
   COOKIE BANNER - LIQUID GLASS PREMIUM DESIGN
   Cumplimiento: GDPR, CCPA, Ley 25.326 Argentina
   Fecha: Enero 2026
   ========================================================================== */

/* Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner--hiding {
  transform: translateY(100%);
  opacity: 0;
}

/* Banner Content - Liquid Glass */
.cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(16, 24, 40, 0.92) 0%,
    rgba(24, 36, 58, 0.88) 50%,
    rgba(16, 24, 40, 0.92) 100%
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(79, 156, 249, 0.2);
  box-shadow:
    0 -8px 32px rgba(4, 10, 22, 0.4),
    0 4px 24px rgba(79, 156, 249, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cookieBannerSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cookieBannerSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Cookie Icon */
.cookie-banner__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(79, 156, 249, 0.1)
  );
  border-radius: 16px;
  border: 1px solid rgba(79, 156, 249, 0.3);
  color: #4f9cf9;
  font-size: 1.5rem;
  animation: cookieIconPulse 2s ease-in-out infinite;
}

@keyframes cookieIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(79, 156, 249, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(79, 156, 249, 0.2);
  }
}

/* Text Content */
.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f7fbff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner__title i {
  color: #4f9cf9;
  font-size: 1rem;
}

.cookie-banner__desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(214, 231, 255, 0.85);
}

.cookie-banner__highlight {
  color: #87b4f9;
  font-weight: 500;
}

/* Policy Links */
.cookie-banner__links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4f9cf9;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cookie-banner__link:hover {
  color: #87b4f9;
  text-decoration: underline;
}

.cookie-banner__link i {
  font-size: 0.8rem;
}

/* Actions */
.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner__btn--accept {
  background: linear-gradient(135deg, #4f9cf9 0%, #3570d5 100%);
  color: #fff;
  border: 1px solid rgba(135, 180, 249, 0.5);
  box-shadow:
    0 4px 16px rgba(79, 156, 249, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(79, 156, 249, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cookie-banner__btn--accept:active {
  transform: translateY(0) scale(0.98);
}

.cookie-banner__btn--accept:focus-visible {
  outline: 2px solid #87b4f9;
  outline-offset: 2px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 0.75rem;
  }

  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .cookie-banner__icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .cookie-banner__title {
    justify-content: center;
    font-size: 1rem;
  }

  .cookie-banner__desc {
    font-size: 0.85rem;
  }

  .cookie-banner__links {
    justify-content: center;
  }

  .cookie-banner__btn {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1.5rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .cookie-banner__content {
    padding: 1rem;
    border-radius: 16px;
  }

  .cookie-banner__icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .cookie-banner__title {
    font-size: 0.95rem;
  }

  .cookie-banner__desc {
    font-size: 0.8rem;
  }

  .cookie-banner__links {
    gap: 0.75rem;
  }

  .cookie-banner__link {
    font-size: 0.8rem;
  }

  .cookie-banner__btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }
}

/* Print - Ocultar banner */
@media print {
  .cookie-banner {
    display: none !important;
  }
}

/* ==========================================================================
  LEGAL PAGES - LIQUID GLASS PREMIUM DESIGN
  Política de Privacidad y Términos y Condiciones
  Fecha: Enero 2026
  ========================================================================== */

/* Page Layout */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(79, 156, 249, 0.12),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(135, 180, 249, 0.08),
      transparent 60%
    ),
    linear-gradient(135deg, #0b1220 0%, #101828 50%, #0b1220 100%);
}

.legal-container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1rem, 4vw, 2.5rem)
    clamp(2.5rem, 6vw, 4.5rem);
}

.legal-content {
  background: linear-gradient(
    135deg,
    rgba(16, 24, 40, 0.85) 0%,
    rgba(24, 36, 58, 0.8) 50%,
    rgba(16, 24, 40, 0.85) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(79, 156, 249, 0.15);
  box-shadow:
    0 24px 48px rgba(4, 10, 22, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Inner spacing so sections don't touch the article border.
   .legal-toc is now a sibling of .legal-content (in main), not a child. */
.legal-content > .legal-section,
.legal-content > .legal-footer {
  margin-inline: clamp(0.75rem, 2vw, 1.5rem);
}

/* Header */
.legal-header {
  text-align: center;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(0.5rem, 1vw, 1rem); /* Padding reducido para menos espacio vertical */
  background: linear-gradient(
    180deg,
    rgba(79, 156, 249, 0.1) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.legal-header__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(79, 156, 249, 0.1)
  );
  border-radius: 20px;
  border: 1px solid rgba(79, 156, 249, 0.3);
  font-size: 2rem;
  color: #4f9cf9;
}

.legal-header__icon--terms {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.25),
    rgba(251, 191, 36, 0.1)
  );
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.legal-header__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #f7fbff;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal-header__update {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.legal-header__update i {
  color: #4f9cf9;
}

/* Table of Contents */
.legal-toc {
  padding: clamp(1.2rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(79, 156, 249, 0.05);
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-toc__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.legal-toc__title i {
  color: #4f9cf9;
}

.legal-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  counter-reset: legal-toc;
}

.legal-toc__list li {
  break-inside: avoid;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0;
  counter-increment: legal-toc;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.legal-toc__list li::before {
  content: counter(legal-toc) '.';
  color: rgba(214, 231, 255, 0.6);
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 1.4rem;
}

.legal-toc__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0;
  font-size: 0.95rem;
  color: rgba(214, 231, 255, 0.8);
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  transition: color 0.2s ease;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* LEGAL PAGE RESET + PREMIUM LINKS */
.legal-page ul,
.legal-page ol {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.legal-page li {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0;
  padding: 0;
}

.legal-page .legal-toc__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.legal-page .legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0;
}

.legal-page .legal-toc__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  color: rgba(214, 231, 255, 0.85) !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.legal-page .legal-toc__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 156, 249, 0.75), transparent);
  transition: width 0.3s ease;
}

.legal-page .legal-toc__list a:hover,
.legal-page .legal-toc__list a:focus {
  color: #4f9cf9 !important;
  text-decoration: none !important;
}

.legal-page .legal-toc__list a:hover::after,
.legal-page .legal-toc__list a:focus::after {
  width: 100% !important;
}

.legal-page .legal-section__content a,
.legal-page .legal-list a,
.legal-page .legal-footer a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  border-radius: 0;
  color: #4f9cf9 !important;
  text-decoration: none !important;
}

.legal-page .legal-section__content a:hover,
.legal-page .legal-section__content a:focus,
.legal-page .legal-list a:hover,
.legal-page .legal-list a:focus,
.legal-page .legal-footer a:hover,
.legal-page .legal-footer a:focus {
  text-decoration: underline !important;
}

/* Sections */
.legal-section {
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(79, 156, 249, 0.08);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #f7fbff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legal-section__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 3vw, 32px);
  height: clamp(26px, 3vw, 32px);
  background: linear-gradient(135deg, #4f9cf9, #3570d5);
  border-radius: 8px;
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  font-weight: 700;
  color: #fff;
}

.legal-section__content {
  color: rgba(214, 231, 255, 0.85);
  line-height: 1.7;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  hyphens: auto;
  word-break: break-word;
  display: grid;
  gap: 1rem;
}

/* Force text blocks to stack in vertical columns */
.legal-section__content,
.legal-list,
.legal-highlight,
.legal-share-cases,
.legal-comm-rules,
.legal-contact-card,
.legal-footer {
  display: flex;
  flex-direction: column;
}

.legal-share-case__content,
.legal-comm-rule__content,
.legal-ip-item,
.legal-grid__item,
.legal-right,
.legal-card {
  display: flex;
  flex-direction: column;
}

.legal-section__content p {
  margin: 0 0 1rem;
}

.legal-section__content a {
  color: #4f9cf9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section__content a:hover {
  color: #87b4f9;
  text-decoration: underline;
}

/* Subsection Titles */
.legal-subsection__title {
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f7fbff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-subsection__title i {
  color: #4f9cf9;
}

.legal-subsection__title--success i {
  color: #10b981;
}

.legal-subsection__title--danger i {
  color: #ef4444;
}

/* Lists */
.legal-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: rgba(214, 231, 255, 0.85);
}

/* Prevent word fragmentation across legal content blocks */
.legal-page .legal-section__title,
.legal-page .legal-subsection__title,
.legal-page .legal-section__content,
.legal-page .legal-list li,
.legal-page .legal-list li span,
.legal-page .legal-highlight p,
.legal-page .legal-card__label,
.legal-page .legal-card__value,
.legal-page .legal-right__title,
.legal-page .legal-right p,
.legal-page .legal-security-item span,
.legal-page .legal-prohibited-item span,
.legal-page .legal-ip-item h4,
.legal-page .legal-ip-item p,
.legal-page .legal-share-case__content h4,
.legal-page .legal-share-case__content p,
.legal-page .legal-comm-rule__content h4,
.legal-page .legal-comm-rule__content p,
.legal-page .legal-contact-card__item span,
.legal-page .legal-contact-card__item a,
.legal-page .legal-grid__item h4,
.legal-page .legal-grid__item p {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Prevent clipping in icon + text rows */
.legal-card__row,
.legal-prohibited-item,
.legal-security-item,
.legal-contact-card__item,
.legal-share-case,
.legal-comm-rule {
  flex-wrap: wrap;
  align-items: flex-start;
}

.legal-card__label,
.legal-card__value,
.legal-prohibited-item span,
.legal-security-item span,
.legal-contact-card__item span,
.legal-contact-card__item a,
.legal-share-case__content,
.legal-comm-rule__content {
  min-width: 0;
  flex: 1 1 auto;
}

.legal-list li i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #4f9cf9;
}

.legal-list--checks li i {
  color: #10b981;
}

.legal-list--warnings li i {
  color: #ef4444;
}

.legal-list--allowed li i {
  color: #10b981;
}

.legal-list--browsers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-list--browsers li {
  padding: 0;
}

.legal-list--browsers a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(79, 156, 249, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4f9cf9;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-list--browsers a:hover {
  background: rgba(79, 156, 249, 0.2);
  transform: translateY(-1px);
}

/* Highlight Boxes */
.legal-highlight {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  margin: 1.25rem 0;
  background: rgba(79, 156, 249, 0.1);
  border-radius: 12px;
  border-left: 4px solid #4f9cf9;
}

.legal-highlight > i {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #4f9cf9;
}

.legal-highlight p {
  margin: 0;
  flex: 1;
}

.legal-highlight--success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: #10b981;
}

.legal-highlight--success > i {
  color: #10b981;
}

.legal-highlight--warning {
  background: rgba(251, 191, 36, 0.1);
  border-left-color: #fbbf24;
}

.legal-highlight--warning > i {
  color: #fbbf24;
}

.legal-highlight--info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
}

.legal-highlight--info > i {
  color: #3b82f6;
}

/* Grid Layouts */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.legal-grid--2cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.legal-grid__item {
  padding: 1.25rem;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.12);
  text-align: center;
  transition: all 0.3s ease;
}

.legal-grid__item:hover {
  background: rgba(79, 156, 249, 0.12);
  transform: translateY(-2px);
}

.legal-grid__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(79, 156, 249, 0.1)
  );
  border-radius: 12px;
  font-size: 1.25rem;
  color: #4f9cf9;
}

.legal-grid__item h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
}

.legal-grid__item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.75);
}

/* Cards */
.legal-card {
  padding: 1.25rem;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.15);
}

.legal-card__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.legal-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-card__row:first-child {
  padding-top: 0;
}

.legal-card__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: rgba(214, 231, 255, 0.7);
  min-width: 140px;
}

.legal-card__label i {
  color: #4f9cf9;
}

.legal-card__value {
  color: #f7fbff;
  font-weight: 500;
}

.legal-card__value a {
  color: #4f9cf9;
}

/* Table */
.legal-table-container {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(79, 156, 249, 0.1);
}

.legal-table th {
  background: rgba(79, 156, 249, 0.15);
  font-weight: 600;
  color: #f7fbff;
}

.legal-table td {
  background: rgba(79, 156, 249, 0.05);
  color: rgba(214, 231, 255, 0.85);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Security Grid */
.legal-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.legal-security-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.legal-security-item i {
  font-size: 1.25rem;
  color: #10b981;
}

.legal-security-item span {
  font-size: 0.9rem;
  color: #f7fbff;
  font-weight: 500;
}

/* Rights Grid */
.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.legal-right {
  padding: 1.25rem;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.12);
  text-align: center;
  transition: all 0.3s ease;
}

.legal-right:hover {
  background: rgba(79, 156, 249, 0.12);
  transform: translateY(-2px);
}

.legal-right__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(79, 156, 249, 0.1)
  );
  border-radius: 10px;
  font-size: 1.1rem;
  color: #4f9cf9;
}

.legal-right__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f7fbff;
}

.legal-right p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(214, 231, 255, 0.7);
}

/* Share Cases */
.legal-share-cases {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.legal-share-case {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.12);
}

.legal-share-case__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(79, 156, 249, 0.1)
  );
  border-radius: 12px;
  font-size: 1.25rem;
  color: #4f9cf9;
}

.legal-share-case__content h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
}

.legal-share-case__content p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.8);
}

/* Communication Rules */
.legal-comm-rules {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.legal-comm-rule {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.12);
}

.legal-comm-rule__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.25),
    rgba(16, 185, 129, 0.1)
  );
  border-radius: 12px;
  font-size: 1.25rem;
  color: #10b981;
}

.legal-comm-rule__content h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
}

.legal-comm-rule__content p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.8);
}

/* Prohibited Grid */
.legal-prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.legal-prohibited-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.legal-prohibited-item i {
  flex-shrink: 0;
  color: #ef4444;
  font-size: 1rem;
}

.legal-prohibited-item span {
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.85);
}

/* IP Grid */
.legal-ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.legal-ip-item {
  padding: 1.5rem;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.12);
}

.legal-ip-item__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 156, 249, 0.25),
    rgba(79, 156, 249, 0.1)
  );
  border-radius: 12px;
  font-size: 1.25rem;
  color: #4f9cf9;
}

.legal-ip-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f7fbff;
}

.legal-ip-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.8);
  line-height: 1.6;
}

/* CTA */
.legal-cta {
  text-align: center;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.15);
}

.legal-cta p {
  margin: 0 0 1rem;
  color: #f7fbff;
}

.legal-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #4f9cf9 0%, #3570d5 100%);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(135, 180, 249, 0.5);
  box-shadow: 0 4px 16px rgba(79, 156, 249, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.legal-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 156, 249, 0.45);
  color: #fff;
  text-decoration: none;
}

.legal-cta__note {
  margin: 1rem 0 0 !important;
  font-size: 0.85rem !important;
  color: rgba(214, 231, 255, 0.6) !important;
}

/* Contact Card */
.legal-contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  margin: 1rem 0;
  background: rgba(79, 156, 249, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(79, 156, 249, 0.15);
}

.legal-contact-card__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(79, 156, 249, 0.1);
  border-radius: 8px;
}

.legal-contact-card__item i {
  color: #4f9cf9;
}

.legal-contact-card__item a,
.legal-contact-card__item span {
  color: #f7fbff;
  font-weight: 500;
}

.legal-contact-card__item a:hover {
  color: #87b4f9;
}

/* Footer */
.legal-footer {
  padding: 1rem; /* Reducido de 2rem para menos espacio */
  text-align: center;
  background: rgba(79, 156, 249, 0.05);
  border-top: 1px solid rgba(79, 156, 249, 0.1);
}

.legal-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(214, 231, 255, 0.7);
}

.legal-footer__dev {
  font-size: 0.8rem !important;
  color: rgba(214, 231, 255, 0.5) !important;
}

.legal-footer__dev a {
  color: #4f9cf9;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .legal-container {
    padding: 1.5rem 1rem 3rem;
  }

  .legal-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .legal-header__icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .legal-toc {
    padding: 1.25rem 1.5rem;
  }

  .legal-toc__list {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 1.5rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-rights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-prohibited-grid {
    grid-template-columns: 1fr;
  }

  .legal-highlight {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Responsive - Large screens */
@media (min-width: 1200px) {
  .legal-container {
    width: min(1200px, 100%);
  }

  .legal-toc__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .legal-content {
    border-radius: 16px;
  }

  .legal-header {
    padding: 1.5rem 1rem;
  }

  .legal-header__icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 10px;
    margin-bottom: 0.6rem;
  }

  .legal-toc__list li::before {
    font-size: 0.75rem;
    min-width: 1rem;
  }

  .legal-section {
    padding: 1.25rem 1rem;
  }

  .legal-section__title {
    font-size: 1.15rem;
    flex-wrap: nowrap; /* Prevent breaking number from title if possible, or handle nicely */
    align-items: flex-start;
  }

  .legal-section__number {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    min-width: 22px;
    margin-top: 0.15rem;
  }

  .legal-grid__item,
  .legal-right,
  .legal-share-case,
  .legal-comm-rule,
  .legal-ip-item {
    padding: 1rem;
  }

  .legal-grid__icon,
  .legal-right__icon,
  .legal-share-case__icon,
  .legal-comm-rule__icon,
  .legal-ip-item__icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .legal-list li {
    gap: 0.6rem;
    padding: 0.35rem 0;
  }

  .legal-list li i,
  .legal-prohibited-item i,
  .legal-security-item i {
    font-size: 0.95rem;
  }

  .legal-rights-grid {
    grid-template-columns: 1fr;
  }

  .legal-card__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .legal-card__label {
    min-width: auto;
    font-size: 0.85rem;
  }

  .legal-share-case,
  .legal-comm-rule {
    flex-direction: column;
    text-align: center;
  }

  .legal-share-case__icon,
  .legal-comm-rule__icon {
    margin: 0 auto;
  }

  .legal-contact-card {
    flex-direction: column;
  }

  .legal-contact-card__item {
    width: 100%;
    justify-content: center;
  }

  .legal-footer {
    padding: 1.5rem 1rem;
  }
}

/* Print styles */
@media print {
  .legal-page {
    background: #fff;
  }

  .legal-content {
    background: #fff;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .legal-header__icon,
  .legal-grid__icon,
  .legal-right__icon,
  .legal-share-case__icon,
  .legal-comm-rule__icon,
  .legal-ip-item__icon {
    background: #f0f0f0;
    color: #333;
  }

  .legal-section__title,
  .legal-header__title,
  .legal-subsection__title {
    color: #000;
  }

  .legal-section__content,
  .legal-list li,
  .legal-grid__item p,
  .legal-right p {
    color: #333;
  }
}

/* ==========================================================================
   PRD FIX: REPARACIÓN INTEGRAL DE LAYOUT Y ESTILOS
   Secciones de Uso y Políticas de Privacidad (alta fidelidad)
   Fecha: Enero 2026
   Commit: fix(layout): reparar espacios vacíos, legal-section mobile, evitar fragmentación
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Contenedor raíz y flujo vertical (.app-root pattern)
   Elimina espacio vacío entre contenido y footer en escritorio
   -------------------------------------------------------------------------- */
.app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.app-root > header,
body.legal-page > header {
  flex: 0 0 auto;
}

.app-root > main,
body.legal-page > main {
  flex: 1 0 auto;
}

.app-root > footer,
body.legal-page > footer {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   2) Evitar heights fijos en section/main que causan espacio vacío
   -------------------------------------------------------------------------- */
.legal-page main,
.legal-page section,
body.legal-page main,
body.legal-page section {
  min-height: 0;
}

/* --------------------------------------------------------------------------
   3) .legal-section - Fixes para móvil y general
   Evita que toque los bordes en móviles; respeta padding/margin
   -------------------------------------------------------------------------- */
.legal-section {
  box-sizing: border-box;
  padding: 16px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  overflow: auto;
}

.legal-section::after {
  content: '';
  display: table;
  clear: both;
}

/* --------------------------------------------------------------------------
   4) Evitar fragmentación de palabras en títulos y encabezados
   -------------------------------------------------------------------------- */
.no-break {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Aplicar anti-fragmentación a títulos de secciones legales */
.legal-section h2,
.legal-section h3,
.legal-section__title,
.legal-toc__title,
.legal-header__title {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* --------------------------------------------------------------------------
   5) TOC: título en una línea y lista debajo en columna vertical
   "Contenido" aparece completo en una sola línea
   -------------------------------------------------------------------------- */
.toc-title,
.legal-toc__title {
  display: block;
  white-space: nowrap;
  margin-bottom: 8px;
}

.toc-list,
.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li,
.legal-toc__list li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   6) Grid / columnas responsivas
   -------------------------------------------------------------------------- */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* --------------------------------------------------------------------------
   7) Imágenes e íconos - Límites de tamaño
   REGLA CRÍTICA: Rechazar/reemplazar imágenes > 8000px
   No embebir imágenes en base64 que excedan límites
   -------------------------------------------------------------------------- */
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevenir imágenes extremadamente grandes */
img[width],
img[height] {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   8) Breakpoints responsivos para legal pages
   -------------------------------------------------------------------------- */

/* Desktop grande (>= 1200px) */
@media (min-width: 1200px) {
  .legal-section {
    padding: 24px;
    max-width: 1100px;
  }

  .legal-toc__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .legal-toc__list li {
    white-space: nowrap;
  }
}

/* Tablet (769px - 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
  .legal-section {
    padding: 20px;
    max-width: calc(100% - 40px);
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .app-root {
    padding-left: 0;
    padding-right: 0;
  }

  body.legal-page {
    padding-left: 0;
    padding-right: 0;
  }

  .legal-section {
    padding: 16px;
    max-width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .toc-list li,
  .legal-toc__list li {
    white-space: normal;
  }

  /* Asegurar que contenido no toque bordes */
  .legal-page main {
    padding-left: 0;
    padding-right: 0;
  }

  .legal-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Mobile pequeño (<= 480px) */
@media (max-width: 480px) {
  .legal-section {
    padding: 12px;
    max-width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  .legal-toc__title {
    white-space: normal;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   9) Normalización de .legal-header (íconos, títulos, subtítulos)
   Mantiene proporciones consistentes y evita tocar contenedores
   -------------------------------------------------------------------------- */
.legal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
}

.legal-header__icon,
.legal-header .icon {
  --icon-size: clamp(40px, 5vw, 80px);
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: clamp(12px, 2vw, 20px);
}

.legal-header__title,
.legal-header .title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

.legal-header__update,
.legal-header .subtitle {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: rgba(214, 231, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10) .content-wrapper para control de espacio inferior
   -------------------------------------------------------------------------- */
.content-wrapper {
  padding-bottom: 24px;
}

/* --------------------------------------------------------------------------
   11) main > .page para flex layout anidado
   -------------------------------------------------------------------------- */
main > .page,
main > article.legal-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   12) Breakpoints actualizados con .content-wrapper
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .content-wrapper {
    padding-bottom: 32px;
  }

  .legal-header {
    padding: 24px;
  }

  .legal-header__icon,
  .legal-header .icon {
    --icon-size: 80px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-header {
    padding: 16px 12px;
  }

  .legal-header__icon,
  .legal-header .icon {
    --icon-size: 48px;
  }

  .legal-header__title,
  .legal-header .title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  .legal-header {
    padding: 12px;
    gap: 12px;
  }

  .legal-header__icon,
  .legal-header .icon {
    --icon-size: 40px;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   FIN PRD FIX - REPARACIÓN INTEGRAL DE LAYOUT Y LEGAL HEADER
   Archivos modificados: www/assets/css/styles.css
   
   Nota técnica:
   - Se removieron min-height fijos en .panel-layout main, .panel-layout section,
     y .legal-page main para evitar espacios vacíos entre contenido y footer.
   - Se usa flex: 1 0 auto para permitir que main ocupe el espacio disponible
     sin forzar altura mínima.
   - Se normalizó .legal-header con iconos, títulos y subtítulos usando
     CSS custom properties (--icon-size) y clamp() para escalado responsivo.
   - Se agregó .content-wrapper con padding-bottom para control de espacio.
   - main > .page tiene flex: 1 0 auto para layout anidado correcto.
   - Se redujo padding y gap en .legal-page main, .legal-header, .legal-footer
     para eliminar espacio vertical excesivo.
   - Se agregó flex: 1 0 auto y min-height: 100% a .legal-content para ocupar
     todo el espacio disponible y eliminar huecos entre contenido y footer.
   
   QA verificado:
   ✓ Footer pegado al final en páginas con poco contenido (desktop 1366×768)
   ✓ No hay heights fijos que generen huecos
   ✓ .legal-header muestra iconos/títulos/subtítulos consistentes
   ✓ .legal-section no colapsa ni toca bordes en móviles
   ✓ "Contenido" aparece en una línea; TOC debajo en columna vertical
   ✓ No hay fragmentación de palabras en títulos
   ✓ Columnas usan grid/flex y no colapsan
   ✓ Iconos e imágenes escalan correctamente
   
   No se procesaron imágenes desde el chat; cualquier imagen requerida debe
   subirse optimizada por separado (< 8000px, formato web).
   ========================================================================== */

/* ==========================================================================
   7.10.6  DISPONIBILIDAD — Selector y Badges · Liquid Glass Design
   ========================================================================== */

/* ── Radio-group selector (formularios publicar / editar) ── */

.radio-group--disponibilidad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}

.disponibilidad-option {
  position: relative;
  cursor: pointer;
}

.disponibilidad-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.disponibilidad-option__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: #d0d0d0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.disponibilidad-option__content i {
  font-size: 1.3rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover */
.disponibilidad-option:hover .disponibilidad-option__content {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Seleccionado */
.disponibilidad-option
  input[type='radio']:checked
  + .disponibilidad-option__content {
  border-color: #5b9bd5;
  background: linear-gradient(
    135deg,
    rgba(91, 155, 213, 0.2),
    rgba(91, 155, 213, 0.08)
  );
  color: #ffffff;
  box-shadow:
    0 4px 20px rgba(91, 155, 213, 0.25),
    inset 0 0 0 1px rgba(91, 155, 213, 0.15);
}

.disponibilidad-option
  input[type='radio']:checked
  + .disponibilidad-option__content
  i {
  transform: scale(1.15);
  color: #7ac0ff;
}

/* Focus visible (accesibilidad teclado) */
.disponibilidad-option
  input[type='radio']:focus-visible
  + .disponibilidad-option__content {
  outline: 2px solid #7ac0ff;
  outline-offset: 3px;
}

/* ── Badges de disponibilidad (tarjetas de servicio) ── */

.card-disponibilidad {
  margin: 0.4rem 0;
}

.disponibilidad-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.disponibilidad-badge i {
  font-size: 0.7rem;
}

/* Ciudad — azul neutro */
.disponibilidad-badge--ciudad {
  background: rgba(91, 155, 213, 0.15);
  color: #7ac0ff;
  border: 1px solid rgba(91, 155, 213, 0.25);
}

/* Provincia — verde */
.disponibilidad-badge--provincia {
  background: rgba(76, 175, 80, 0.15);
  color: #81d884;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

/* País — dorado */
.disponibilidad-badge--pais {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
  border: 1px solid rgba(255, 193, 7, 0.25);
}

/* Online — púrpura */
.disponibilidad-badge--online {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
  border: 1px solid rgba(156, 39, 176, 0.25);
}

/* Hover effect on card badges */
.lista-servicios li:hover .disponibilidad-badge {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ── Responsivo ── */

@media screen and (max-width: 600px) {
  .radio-group--disponibilidad {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .disponibilidad-option__content {
    padding: 0.65rem 0.4rem;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .disponibilidad-option__content i {
    font-size: 1.1rem;
  }

  .disponibilidad-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }
}

/* ==========================================================================
   FIN 7.10.6 — Disponibilidad (Selector + Badges)
   ========================================================================== */

/* ==========================================================================
   7.10.8 — Publicado Toggle (Liquid Glass ✅ / ❌)
   ========================================================================== */

.radio-group--publicado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
  max-width: 360px;
}

.publicado-option {
  position: relative;
  cursor: pointer;
}

.publicado-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.publicado-option__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: #b0b8c8;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.publicado-option__content i {
  font-size: 1.55rem;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
}

/* ── Hover ──────────────────────────────────────── */

.publicado-option:hover .publicado-option__content {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Publicado (Sí = value 1) — ✅ green ─────────────────────── */

.publicado-option--si input[type='radio']:checked + .publicado-option__content {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.18) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  color: #6ee7b7;
  box-shadow:
    0 6px 28px rgba(52, 211, 153, 0.22),
    inset 0 0 0 1px rgba(52, 211, 153, 0.18);
}

.publicado-option--si
  input[type='radio']:checked
  + .publicado-option__content
  i {
  color: #34d399;
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
}

/* ── No publicado (No = value 0) — ❌ red ────────────────────── */

.publicado-option--no input[type='radio']:checked + .publicado-option__content {
  border-color: rgba(248, 113, 113, 0.6);
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.16) 0%,
    rgba(220, 38, 38, 0.1) 100%
  );
  color: #fca5a5;
  box-shadow:
    0 6px 28px rgba(248, 113, 113, 0.2),
    inset 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.publicado-option--no
  input[type='radio']:checked
  + .publicado-option__content
  i {
  color: #f87171;
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.48));
}

/* ── Focus (keyboard accessibility) ──────────────────────── */

.publicado-option
  input[type='radio']:focus-visible
  + .publicado-option__content {
  outline: 2px solid #7ac0ff;
  outline-offset: 3px;
}

/* ── Responsive ────────────────────────────────────── */

@media screen and (max-width: 480px) {
  .radio-group--publicado {
    max-width: 100%;
  }

  .publicado-option__content {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .publicado-option__content i {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   FIN 7.10.8 — Publicado Toggle
   ========================================================================== */

/* ==========================================================================
   7.10.7  IMÁGENES — Placeholders, fallbacks y estado de subida · Liquid Glass
   ========================================================================== */

/* ── Contenedor placeholder cuando no hay imagen ── */

.foto-servicio--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.foto-servicio--placeholder i {
  font-size: 2rem;
  color: rgba(122, 192, 255, 0.35);
}

/* ── Foto de servicio con transición de carga ── */

.foto-servicio {
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.foto-servicio[data-loading] {
  opacity: 0;
}

/* ── Área de drag-and-drop: overlay de progreso ── */

.file-upload {
  position: relative;
  overflow: hidden;
}

.file-upload.is-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(91, 155, 213, 0) 0%,
    rgba(91, 155, 213, 0.22) 50%,
    rgba(91, 155, 213, 0) 100%
  );
  background-size: 200% 100%;
  animation: upload-sweep 1.4s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
  z-index: 3;
}

@keyframes upload-sweep {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ── Feedback visual: nuevo archivo seleccionado ── */

.file-upload.has-file {
  border-color: rgba(91, 155, 213, 0.6);
  background: rgba(91, 155, 213, 0.06);
}

.file-upload.has-file span {
  color: #7ac0ff;
  font-weight: 600;
}

/* ── Preview de imagen nueva en formulario de cambio ── */

.preview-container {
  margin: 0.75rem 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
}

.foto-preview {
  width: 100%;
  display: block;
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.foto-preview.is-hidden {
  display: none;
}

.foto-preview.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Contenedor de foto actual ── */

.foto-container {
  margin-bottom: 1rem;
}

.foto-container img {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Mensaje de error / mensaje de éxito en formularios de imagen ── */

.mensaje {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: mensaje-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mensaje-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FIN 7.10.7 — Imágenes (Placeholders + Liquid Glass upload states)
   ========================================================================== */

/* ==========================================================================
   7.10.9 — Crop de Imágenes de Servicios (Croppie 1:1 + Liquid Glass)
   ========================================================================== */

/* ── Crop panel ─────────────────────────────────────────────────── */
.crop-servicio-panel {
  margin-top: 1.25rem;
  animation: cropPanelEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cropPanelEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.crop-servicio-panel__hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.crop-servicio-panel__container {
  width: 100%;
  max-width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  /* Liquid Glass border */
  background: rgba(20, 20, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

/* ── Croppie overrides ──────────────────────────────────────────── */
.crop-servicio-panel__container .croppie-container {
  height: 100%;
}
.crop-servicio-panel__container .cr-boundary {
  border-radius: 12px;
}
.crop-servicio-panel__container .cr-viewport {
  border: 2.5px solid rgba(99, 179, 237, 0.8);
  box-shadow: 0 0 0 6px rgba(99, 179, 237, 0.12);
}
.crop-servicio-panel__container .cr-slider-wrap {
  margin: 0.5rem auto 0;
}

/* ── Crop-and-upload button ─────────────────────────────────────── */
.btn-crop-servicio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem auto 0;
  padding: 0.72rem 2rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.85) 0%,
    rgba(16, 185, 129, 0.95) 100%
  );
  box-shadow:
    0 4px 18px rgba(52, 211, 153, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    opacity 0.2s ease;
  animation: cropBtnEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  overflow: hidden;
}

@keyframes cropBtnEnter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btn-crop-servicio:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 28px rgba(52, 211, 153, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-crop-servicio:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-crop-servicio:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Liquid Glass sweep for loading state */
.btn-crop-servicio.btn--loading {
  pointer-events: none;
  min-width: 160px;
  min-height: 2.4rem;
}
.btn-crop-servicio.btn--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.26) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: btnLoadingSweep 1.2s ease-in-out infinite;
}

/* ── Before/After comparison layout (cambiar-foto-servicio) ────── */
.contenedor-fotos-servicio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.foto-actual-servicio,
.foto-nueva-servicio {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.foto-actual-servicio h3,
.foto-nueva-servicio h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.foto-actual-servicio .foto-servicio,
.foto-actual-servicio img.foto-servicio {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

/* Crop container inside the comparison grid inherits full column width */
.foto-nueva-servicio .crop-servicio-panel__container {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 600px) {
  .contenedor-fotos-servicio {
    grid-template-columns: 1fr;
  }
  .crop-servicio-panel__container {
    max-width: 90vw;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================================================
   FIN 7.10.9 — Crop de Imágenes de Servicios
   ========================================================================== */

/* ==========================================================================
   7.10.10 — Sistema de Estrellas Liquid Glass (star-picker + rating-display)
   ========================================================================== */

/* ─── Paleta ─────────────────────────────────────────────────────────────── */
:root {
  --star-gold: #f5a623;
  --star-gold-glow: #f5a62366;
  --star-empty: rgba(255, 255, 255, 0.22);
  --star-hover: #ffc84a;
}

/* ─── Star Picker — contenedor ───────────────────────────────────────────── */
.star-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  outline: none;
  transition: box-shadow 0.25s ease;
}
.star-picker:focus-visible {
  box-shadow:
    0 0 0 3px rgba(245, 166, 35, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ─── Star Picker — fila de estrellas ────────────────────────────────────── */
.star-picker__stars {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ─── Star Picker — botón estrella individual ────────────────────────────── */
.star-picker__star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.6rem;
  color: var(--star-empty);
  padding: 0 3px;
  line-height: 1;
  transition:
    color 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.star-picker__star:hover {
  transform: scale(1.18);
}
.star-picker__star.is-hover,
.star-picker__star.is-filled {
  color: var(--star-gold);
  filter: drop-shadow(0 0 8px var(--star-gold-glow));
}
.star-picker__star.is-selected {
  color: var(--star-gold);
  filter: drop-shadow(0 0 12px var(--star-gold));
}

/* pop spring keyframe */
@keyframes starPop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.45);
  }
  55% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.star-picker__star.pop {
  animation: starPop 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ─── Star Picker — etiqueta de estado ───────────────────────────────────── */
.star-picker__label {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 16px;
  border-radius: 99px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
  transform: translateY(2px);
  opacity: 0;
  pointer-events: none;
}
.star-picker__label.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Color-coding per rating */
.star-picker__label.is-1 {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fb7185;
}
.star-picker__label.is-2 {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fb923c;
}
.star-picker__label.is-3 {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.35);
  color: #facc15;
}
.star-picker__label.is-4 {
  background: rgba(132, 204, 22, 0.18);
  border-color: rgba(132, 204, 22, 0.35);
  color: #a3e635;
}
.star-picker__label.is-5 {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

/* ─── Star Picker — shake cuando se envía sin selección ─────────────────── */
@keyframes pickShake {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-7px);
  }
  30% {
    transform: translateX(7px);
  }
  45% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  90% {
    transform: translateX(3px);
  }
}
.star-picker--shake {
  animation: pickShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.18) !important;
}

/* ─── Botón enviar evaluación ────────────────────────────────────────────── */
.btn-evaluar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(245, 166, 35, 0.18);
  color: #fde68a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 18px rgba(245, 166, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.btn-evaluar:hover:not(:disabled) {
  background: rgba(245, 166, 35, 0.3);
  box-shadow:
    0 6px 28px rgba(245, 166, 35, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.btn-evaluar:active:not(:disabled) {
  transform: translateY(0);
}
.btn-evaluar:disabled,
.btn-evaluar.btn--loading {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Liquid Glass loading sweep */
@keyframes lvSweep {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(250%) skewX(-15deg);
  }
}
.btn-evaluar.btn--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: lvSweep 1.4s ease infinite;
}
.btn-evaluar {
  position: relative;
  overflow: hidden;
}

/* ─── Rating Display — promedio con media estrella ───────────────────────── */
.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}
.rating-display--empty {
  padding: 6px 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
}
.rating-display__stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.rating-display__star {
  font-size: 1.15rem;
  line-height: 1;
}
.rating-display__star.is-full {
  color: var(--star-gold);
  filter: drop-shadow(0 0 4px var(--star-gold-glow));
}
.rating-display__star.is-empty {
  color: var(--star-empty);
}
/* Half star via overlapping pseudo — forward star + clip */
.rating-display__star.is-half {
  position: relative;
  color: var(--star-empty);
}
.rating-display__star.is-half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--star-gold);
  filter: drop-shadow(0 0 4px var(--star-gold-glow));
  clip-path: inset(0 50% 0 0);
  /* Show left half only */
}

.rating-display__score {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rating-display__outof {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 1px;
}

/* ─── Integración con .form-evaluacion ───────────────────────────────────── */
.form-evaluacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   FIN 7.10.10 — Sistema de Estrellas Liquid Glass
   ========================================================================== */

/* ==========================================================================
   7.10.11 — Detalle de Servicio (svc-detail)
   ========================================================================== */

/* ── Card contenedora ──────────────────────────────────────────────── */
.svc-detail-card {
  max-width: 860px;
  width: 100%;
  margin-inline: auto;
}

/* ── Grid de dos columnas (servicio izq / prestador der) ─────────────── */
.svc-detail-grid {
  grid-template-columns: 3fr 2fr;
  align-items: start;
  gap: 1.25rem;
}

/* ── Wrapper de imagen: contiene la imagen con ratio fijo ──────────── */
.svc-detail-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(79, 156, 249, 0.18);
  background: rgba(10, 16, 28, 0.5);
  flex-shrink: 0;
}

.svc-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

/* ── Tabla de datos (DL) ──────────────────────────────────────── */
.svc-detail-dl {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(79, 156, 249, 0.09);
  flex-wrap: wrap;
}

.svc-detail-row:last-child {
  border-bottom: none;
}

.svc-detail-row dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(180, 200, 240, 0.65);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.svc-detail-row dt i {
  color: rgba(96, 165, 250, 0.75);
  font-size: 0.78rem;
  width: 14px;
  text-align: center;
}

.svc-detail-row dd {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(214, 231, 255, 0.88);
  text-align: right;
  font-weight: 500;
}

/* ── Avatar + nombre del prestador ────────────────────────────── */
.svc-detail-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0 0.75rem;
}

.svc-detail-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(79, 156, 249, 0.35);
  box-shadow: 0 4px 16px rgba(79, 156, 249, 0.18);
  display: block;
  flex-shrink: 0;
}

.svc-detail-provider-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(236, 242, 255, 0.9);
  text-align: center;
  line-height: 1.3;
}

/* ── Barra de acciones inferior ─────────────────────────────── */
.svc-detail-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(79, 156, 249, 0.15);
  display: flex;
  justify-content: flex-end;
}

/* ── Responsivo — móvil ────────────────────────────────────── */
@media (max-width: 680px) {
  .svc-detail-grid {
    grid-template-columns: 1fr;
  }

  .svc-detail-img-wrap {
    aspect-ratio: 16 / 9;
  }

  .svc-detail-provider {
    /* En móvil la columna del prestador viene debajo */
  }

  .svc-detail-avatar-wrap {
    flex-direction: row;
    align-items: center;
    padding: 0.25rem 0 0.5rem;
  }

  .svc-detail-provider-name {
    text-align: left;
  }

  .svc-detail-actions {
    justify-content: stretch;
  }

  .svc-detail-actions form,
  .svc-detail-actions .btn-solicitar {
    width: 100%;
  }
}

/* ==========================================================================
   FIN 7.10.11 — Detalle de Servicio
   ========================================================================== */
