/* ======================================================= */
/*                      ROOT VARIABLES                     */
/* ======================================================= */
:root {
  /* Color variables - PALETA OFICIAL DEL LOGO */
  --primary: #19507F;
  --primary-dark: #195C9A;
  --primary-light: #1C68A9;
  --primary-accent: #649FBE;
  --black: #111011;
  
  /* Colores del sistema */
  --secondary: #757575;
  --light: #f5f5f5;
  --dark: #111011;
  --white: #ffffff;
  --gray-100: #f6f7f8;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --danger: #dc3545;
  --success: #28a745;
  --warning: #ffc107;

  /* RGB values para sombras */
  --primary-rgb: 25, 80, 127;
  --primary-dark-rgb: 25, 92, 154;
  --primary-accent-rgb: 100, 159, 190;

  /* Dark mode colors */
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-primary: #649FBE;
  --dark-secondary: #9e9e9e;
  --dark-text: #e0e0e0;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-xxl: 1.5rem;
  --title-sm: 1.75rem;
  --title-md: 2rem;
  --title-lg: 2.5rem;
  --title-xl: 3rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}


/* ======================================================= */
/*              PAGE LOADER — ANIMACIÓN DE CARGA           */
/* ======================================================= */

/* ======================================================= */
/*                      BASE STYLES                        */
/* ======================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden !important;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.dark-mode {
  color: var(--dark-text);
  background-color: var(--dark-bg);
}

/* ======================================================= */
/*                     TYPOGRAPHY                          */
/* ======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--title-lg); }
h2 { font-size: var(--title-md); }
h3 { font-size: var(--title-sm); }

p { margin-bottom: var(--spacing-md); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

.dark-mode a { color: var(--dark-primary); }
.dark-mode a:hover { color: var(--primary-accent); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================================================= */
/*                    LAYOUT CONTAINERS                    */
/* ======================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  transition: background-color var(--transition-normal);
}

.dark-mode .section-title::after {
  background-color: var(--dark-primary);
}

.section-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--secondary);
}

.dark-mode .section-description {
  color: var(--dark-secondary);
}

/* ======================================================= */
/*                      ANIMATIONS                         */
/* ======================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSmooth {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulseSound {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================= */
/*                      BUTTONS                            */
/* ======================================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--text-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.dark-mode .btn-primary {
  background-color: var(--dark-primary);
}

.dark-mode .btn-primary:hover {
  background-color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.dark-mode .btn-outline {
  color: var(--dark-primary);
  border-color: var(--dark-primary);
}

.dark-mode .btn-outline:hover {
  background-color: var(--dark-primary);
  color: var(--dark-bg);
}

.btn-success {
  background-color: #00a700;
  border-color: #00a700;
  color: var(--white);
}

.btn-success:hover {
  background-color: #06da34;
  border-color: #06da34;
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

.btn-eventos {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
  border: none;
  cursor: pointer;
}

.dark-mode .btn-eventos {
  background: linear-gradient(90deg, var(--dark-primary), var(--primary));
  box-shadow: 0 4px 12px rgba(var(--primary-accent-rgb), 0.4);
  color: white;
}

.btn-eventos:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.5);
  color: white;
}

.dark-mode .btn-eventos:hover {
  box-shadow: 0 6px 18px rgba(var(--primary-accent-rgb), 0.5);
  color: white;
}

.btn-juego {
  background: #195c9a;
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.btn-juego:hover {
  background: #1c68a9;
}

/* ======================================================= */
/*              HEADER & NAVIGATION SECTION                */
/* ======================================================= */

/* HEADER CONTAINER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: top 0.4s ease, background-color var(--transition-normal), 
             box-shadow var(--transition-normal), height 0.3s ease;
  height: 60px;
  display: flex;
  align-items: center;
}

.header.hide {
  top: -100px;
}

.dark-mode .header {
  background-color: var(--dark-surface);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* NAV CONTAINER */
.nav-container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-left: 0;
  padding-left: 0;
}

.dark-mode .logo {
  color: var(--dark-primary);
}

.logo img {
  height: 38px;
  margin-right: var(--spacing-sm);
  margin-left: 20px;
}

/* NAV MENU */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin-left: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  padding: 0.3rem 0.75rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.87rem;
  position: relative;
  transition: color var(--transition-fast);
}

.dark-mode .nav-link {
  color: var(--dark-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.dark-mode .nav-link::after {
  background-color: var(--dark-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--dark);
  transition: all var(--transition-fast);
}

.dark-mode .hamburger span {
  background-color: var(--dark-text);
}



/* ======================================================= */
/*              EDITOR DE FOTO DE PERFIL                   */
/* ======================================================= */

/* Overlay de cámara sobre el avatar — aparece en hover */
.pmodal-avatar-ring {
  cursor: pointer;
  position: relative;
}

.pmodal-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--white);
  font-size: 1.4rem;
  pointer-events: none;
}

.pmodal-avatar-ring:hover .pmodal-avatar-edit-overlay {
  opacity: 1;
}

/* Panel editor */
.pmodal-photo-editor {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

/* Tabs archivo / URL */
.photo-tabs {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
}

.dark-mode .photo-tabs {
  background: var(--gray-800);
}

.photo-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.dark-mode .photo-tab {
  color: var(--gray-400);
}

.photo-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.dark-mode .photo-tab.active {
  background: var(--gray-700);
  color: var(--dark-primary);
}

/* Label de archivo */
.photo-file-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.6rem var(--spacing-md);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--gray-600);
  transition: border-color var(--transition-fast), color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.photo-file-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dark-mode .photo-file-label {
  border-color: var(--gray-600);
  color: var(--gray-400);
}

.dark-mode .photo-file-label:hover {
  border-color: var(--dark-primary);
  color: var(--dark-primary);
}

/* Input URL */
.photo-tab-content[id="contentUrl"] {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.photo-url-input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 0;
}

.photo-url-input:focus {
  border-color: var(--primary);
}

.dark-mode .photo-url-input {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--dark-text);
}

.photo-url-preview-btn {
  padding: 0.55rem 0.85rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

.photo-url-preview-btn:hover {
  background: var(--primary-dark);
}

/* Vista previa */
.photo-preview-wrap {
  display: flex;
  justify-content: center;
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

.photo-preview-wrap img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-accent);
  box-shadow: var(--shadow-md);
}

/* Botones del editor */
.photo-editor-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

/* Mensaje de estado */
.photo-status {
  text-align: center;
  font-size: var(--text-xs);
  font-family: 'Montserrat', sans-serif;
  margin-top: var(--spacing-sm);
  min-height: 1.2em;
  transition: color var(--transition-fast);
}

.photo-status.ok  { color: var(--success); }
.photo-status.err { color: var(--danger); }

/* ======================================================= */
/*                 MODAL DE PERFIL                         */
/* ======================================================= */

/* Overlay */
.pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.pmodal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Card del modal */
.pmodal-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.32s cubic-bezier(.22, 1, .36, 1);
}

.dark-mode .pmodal-card {
  background: var(--dark-surface);
}

.pmodal-overlay.active .pmodal-card {
  transform: translateY(0) scale(1);
}

/* Botón cerrar */
.pmodal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.pmodal-close:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* Banda superior */
.pmodal-banner {
  height: 100px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

/* Logo decorativo en la banda */
.pmodal-banner-logo {
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
  filter: brightness(0) invert(1);
}

/* Avatar del modal */
.pmodal-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.pmodal-avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(145deg, var(--primary-accent), var(--primary-dark));
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pmodal-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
}

.pmodal-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--gray-500);
}

/* Cuerpo del modal */
.pmodal-body {
  padding: var(--spacing-lg) 1.75rem var(--spacing-xl);
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Loader spinner */
.pmodal-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
}

.pmodal-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(var(--primary-rgb), 0.15);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: pmSpin 0.75s linear infinite;
}

@keyframes pmSpin {
  to { transform: rotate(360deg); }
}

/* Nombre del usuario */
.pmodal-name {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xxl);
  font-weight: 700;
  color: var(--dark);
  margin-top: var(--spacing-sm);
  line-height: 1.2;
}

.dark-mode .pmodal-name {
  color: var(--dark-text);
}

/* Divisor decorativo */
.pmodal-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0.9rem auto var(--spacing-md);
  width: 180px;
}

.pmodal-divider::before,
.pmodal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.dark-mode .pmodal-divider::before,
.dark-mode .pmodal-divider::after {
  background: var(--gray-700);
}

.pmodal-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--primary-accent);
  flex-shrink: 0;
}

/* Badge número de empleado */
.pmodal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: 0.45rem var(--spacing-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
}

.dark-mode .pmodal-badge {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--gray-400);
}

.pmodal-badge i {
  color: var(--primary);
  font-size: var(--text-xs);
}

.pmodal-prefix {
  color: var(--primary-light);
  font-weight: 700;
}

/* Pill de rol */
.pmodal-role-pill {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.pmodal-role-pill.admin {
  background: rgba(var(--primary-dark-rgb), 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(var(--primary-dark-rgb), 0.3);
}

.pmodal-role-pill.empleado {
  background: rgba(var(--primary-accent-rgb), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
}

/* Botones de acción */
.pmodal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.pmodal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pmodal-btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.pmodal-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.dark-mode .pmodal-btn-primary {
  background: var(--dark-primary);
  border-color: var(--dark-primary);
  color: var(--dark-bg);
}

.pmodal-btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--gray-300);
}

.pmodal-btn-outline:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.dark-mode .pmodal-btn-outline {
  color: var(--dark-text);
  border-color: var(--gray-600);
}

.dark-mode .pmodal-btn-outline:hover {
  background: var(--gray-800);
}

/* Error */
.pmodal-error {
  color: var(--gray-600);
  font-family: 'Montserrat', sans-serif;
}

.dark-mode .pmodal-error {
  color: var(--dark-secondary);
}

.pmodal-error i {
  font-size: 2.5rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

/* Data wrapper */
.pmodal-data {
  width: 100%;
}


/* ======================================================= */
/*                   PROFILE — NAV & MODAL                 */
/* ======================================================= */

/* "Mi perfil": OCULTO en desktop, visible solo en menú hamburger (≤1270px) */
@media (min-width: 1271px) {
  .nav-profile-mobile,
  li.nav-profile-mobile {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Foto flotante — SOLO visible en desktop (>1270px) */
.profile-float-wrapper {
  position: fixed;
  top: 15px;
  right: 250px; /* JS lo ajusta dinámicamente */
  z-index: 9999;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-animation: fadeIn 0.6s ease-out forwards;
  animation: fadeIn 0.6s ease-out forwards;
}

/* Ocultar foto flotante en breakpoint del hamburger y mostrar ítem en nav */
@media (max-width: 1270px) {
  .profile-float-wrapper {
    display: none !important;
  }
  .nav-profile-mobile {
    display: block;
  }
}

/* Botón que envuelve el avatar */
.profile-float-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-appearance: none;
  appearance: none;
}

/* Avatar circular */
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(var(--primary-accent-rgb), 0.7);
  -webkit-transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--gray-200);
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
}

.profile-float-btn:hover .nav-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.nav-avatar-fallback {
  width: 100%;
  height: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-500);
  background: var(--gray-200);
}

/* ======================================================= */
/*              FLOATING CONTROLS SECTION                  */
/* ======================================================= */

/* FLOATING CONTROLS CONTAINER */
.floating-controls {
  position: fixed;
  top: 15px;
  right: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  animation: fadeIn 0.6s ease-out forwards;
}

.floating-controls > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 6px 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.35s ease;
  cursor: pointer;
}

.floating-controls > div:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

body.dark-mode .floating-controls > div {
  background: rgba(40, 40, 40, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* THEME SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 15px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(180, 180, 180, 0.6);
  border-radius: 25px;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #1C68A9, #649FBE);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.theme-switch i {
  color: #111011;
  font-size: 1rem;
  margin-left: 4px;
  transition: color 0.3s ease;
}

body.dark-mode .theme-switch i {
  color: #fff;
}

.switch-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #111011;
  font-size: 0.65rem;
  user-select: none;
  transition: color 0.3s ease;
}

body.dark-mode .switch-label {
  color: #fff;
}

/* ======================================================= */
/*               NOTIFICATIONS SECTION                     */
/* ======================================================= */

/* NOTIFICATION BELL */
.notification-bell {
  position: fixed;
  top: 15px;
  right: 220px;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  color: var(--primary);
  transition: transform var(--transition-fast);
  user-select: none;
}

/* En móvil, la campana se convierte en botón flotante izquierdo */
@media (max-width: 768px) {
  .notification-bell:not(.no-admin) {
    top: auto !important;
    right: auto !important;
    bottom: 145px !important;
    left: 20px !important;
    width: 55px !important;
    height: 55px !important;
  }
  .notification-bell.no-admin {
    top: auto !important;
    right: auto !important;
    bottom: 85px !important;
    left: 20px !important;
    width: 55px !important;
    height: 55px !important;
  }
}

@media (max-width: 480px) {
  .notification-bell:not(.no-admin) {
    top: auto !important;
    right: auto !important;
    bottom: 130px !important;
    left: 10px !important;
    width: 50px !important;
    height: 50px !important;
  }
  .notification-bell.no-admin {
    top: auto !important;
    right: auto !important;
    bottom: 70px !important;
    left: 10px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

.notification-bell:hover {
  transform: scale(1.1);
}

/* Campana flotante para empleados (no-admin): misma altura que Facebook */
.notification-bell.no-admin {
  position: fixed;
  top: auto;
  right: 100px;
  bottom: 100px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--primary, #19507F);
  background-color: white;
  color: var(--primary, #19507F);
  box-shadow: 0 0 0 3px rgba(25, 80, 127, 0.1), 0 0 10px rgba(0, 0, 0, 0.15);
  font-size: 22px;
  animation: floatPulse 3s ease-in-out infinite;
  z-index: 100;
  transition: all 0.3s ease;
}

.notification-bell.no-admin .notif-label {
  display: none;
}

.notification-bell.no-admin:hover {
  background-color: var(--primary, #19507F) !important;
  color: white !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow:
    0 0 20px rgba(25, 80, 127, 0.5),
    0 0 30px rgba(25, 80, 127, 0.3),
    0 0 40px rgba(25, 80, 127, 0.1) !important;
}

.dark-mode .notification-bell.no-admin {
  background-color: var(--dark-surface);
  color: var(--dark-primary);
  border-color: var(--dark-primary);
}

.notif-count {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: var(--danger);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 2px 6px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* NOTIFICATION PANEL */
.notif-panel {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  width: 320px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.dark-mode .notif-panel {
  background-color: var(--dark-surface);
}

.notif-item {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--gray-300);
  transition: background-color var(--transition-fast);
}

.dark-mode .notif-item {
  border-bottom-color: var(--gray-700);
}

.notif-item:hover {
  background-color: var(--gray-100);
}

.dark-mode .notif-item:hover {
  background-color: var(--gray-800);
}

.notif-item strong {
  color: var(--primary);
}

.dark-mode .notif-item strong {
  color: var(--dark-primary);
}

.notif-item p {
  margin: var(--spacing-xs) 0;
  font-size: var(--text-sm);
}

.notif-item small {
  color: var(--gray-600);
  font-size: var(--text-xs);
}

.dark-mode .notif-item small {
  color: var(--gray-400);
}

/* ======================================================= */
/*          SOCIAL FLOATING BUTTONS SECTION                */
/* ======================================================= */

/* RESET COMPLETO PARA BOTONES FLOTANTES SOCIALES */
.facebook-float,
.whatsapp-float,
.contactos-float,
.sala-float {
  position: fixed;
  width: 60px;
  height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
  animation: floatPulse 3s ease-in-out infinite;
  overflow: hidden;
  box-sizing: border-box;
}

/* BOTÓN DE WHATSAPP (derecha abajo) */
.whatsapp-float {
  bottom: 25px;
  right: 25px;
  border: 3px solid #01a93e;
  background-color: white;
  color: #01a93e;
  box-shadow: 0 0 0 3px rgba(1, 169, 62, 0.1), 0 0 10px rgba(0, 0, 0, 0.15);
}

/* HOVER DE WHATSAPP CON ILUMINACIÓN */
.whatsapp-float:hover {
  background-color: #01a93e !important;
  color: white !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 
    0 0 20px rgba(1, 169, 62, 0.5),
    0 0 30px rgba(1, 169, 62, 0.3),
    0 0 40px rgba(1, 169, 62, 0.1) !important;
}

/* BOTÓN DE FACEBOOK (derecha, arriba de WhatsApp) */
.facebook-float {
  bottom: 100px;
  right: 25px;
  border: 3px solid #1877f2;
  background-color: white;
  color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1), 0 0 10px rgba(0, 0, 0, 0.15);
}

/* HOVER DE FACEBOOK CON ILUMINACIÓN */
.facebook-float:hover {
  background-color: #1877f2 !important;
  color: white !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 
    0 0 20px rgba(24, 119, 242, 0.5),
    0 0 30px rgba(24, 119, 242, 0.3),
    0 0 40px rgba(24, 119, 242, 0.1) !important;
}

/* BOTÓN DE CONTACTOS (izquierda, altura de WhatsApp) - COLOR DE LOGO */
.contactos-float {
  bottom: 25px; /* Misma altura que WhatsApp */
  left: 20px;   /* Lado izquierdo */
  border: 3px solid #649FBE; /* Color principal del logo */
  background-color: white;
  color: #649FBE;
  box-shadow: 0 0 0 3px rgba(100, 159, 190, 0.1), 0 0 10px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  position: fixed;
  overflow: visible !important;
}

/* Icono del sobre en botón contactos */
.contactos-float i {
  font-size: 20px;
  margin-top: 2px;
}

/* Badge de notificaciones para contactos */
.contactos-float .badge {
  position: absolute;
  top: -10px;        /* 🔥 MÁS ARRIBA */
  right: -10px;      /* 🔥 MÁS A LA DERECHA */
  min-width: 22px;   /* 🔥 MÁS GRANDE */
  height: 22px;
  padding: 0 6px;

  background: #ff3b30;
  color: #ffffff;

  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 3px solid white;
  box-shadow:
    0 0 0 2px rgba(255, 59, 48, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.35);

  z-index: 999;      /* 🔥 SIEMPRE ARRIBA */
  pointer-events: none;

  animation: pulse 1.4s infinite;
}

/* BOTÓN DE SALAS - ESTILOS BASE (izquierda) */
.sala-float {
  left: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #649FBE 0%, #195C9A 100%); /* Colores del logo */
  box-shadow: 
    0 8px 25px rgba(100, 159, 190, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* SALAS PARA ADMIN (izquierda, altura de Facebook) */
.sala-float.admin {
  bottom: 100px !important;
}

/* SALAS PARA EMPLEADO (izquierda, altura de WhatsApp) */
.sala-float.empleado {
  bottom: 25px !important;
}

/* EL ENLACE DENTRO DEL BOTÓN DEBE OCUPAR TODO EL ESPACIO */
.sala-float > a {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* IMAGEN DENTRO DEL BOTÓN */
.sala-float img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/* TEXTO OCULTO POR DEFECTO (tanto para salas como contactos) */
.sala-float span,
.contactos-float span:not(.badge) {
  display: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-left: 10px;
  opacity: 0;
}

/* HOVER PARA EXPANSIÓN (SOLO PARA SALAS Y CONTACTOS) */
.sala-float:hover,
.contactos-float:hover {
  width: 200px !important;
  border-radius: 35px !important;
  padding-left: 15px !important;
  padding-right: 20px !important;
  justify-content: flex-start !important;
  transform: translateY(-3px) scale(1.08) !important;
  z-index: 102 !important;
}

/* Hover específico para Salas */
.sala-float:hover {
  background: linear-gradient(135deg, #195C9A 0%, #19507F 100%) !important;
  box-shadow: 
    0 15px 35px rgba(25, 92, 154, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Hover específico para Contactos (con color del logo) */
.contactos-float:hover {
  background: linear-gradient(135deg, #649FBE 0%, #195C9A 100%) !important;
  color: white !important;
  box-shadow: 
    0 15px 35px rgba(100, 159, 190, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.2) !important;
  flex-direction: row !important;
  gap: 8px;
  border-color: #19507F !important;
}

.sala-float:hover img {
  transform: scale(1.1);
  border-color: white !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.25),
    inset 0 2px 6px rgba(255, 255, 255, 0.6) !important;
}

.sala-float:hover span,
.contactos-float:hover span:not(.badge) {
  display: inline-block !important;
  animation: fadeInText 0.4s ease 0.2s forwards !important;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ANIMACIÓN FLOTANTE MEJORADA */
@keyframes floatPulse {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-8px); 
  }
}

/* ANIMACIÓN DE ILUMINACIÓN PARA HOVER */
@keyframes glowEffect {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(1, 169, 62, 0.5),
      0 0 30px rgba(1, 169, 62, 0.3),
      0 0 40px rgba(1, 169, 62, 0.1); 
  }
  50% { 
    box-shadow: 
      0 0 25px rgba(1, 169, 62, 0.6),
      0 0 35px rgba(1, 169, 62, 0.4),
      0 0 45px rgba(1, 169, 62, 0.2); 
  }
}

/* Aplicar animación de iluminación a WhatsApp al hover */
.whatsapp-float:hover {
  animation: floatPulse 3s ease-in-out infinite, glowEffect 2s ease-in-out infinite !important;
}

/* Animación de iluminación para Facebook */
@keyframes glowEffectFB {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(24, 119, 242, 0.5),
      0 0 30px rgba(24, 119, 242, 0.3),
      0 0 40px rgba(24, 119, 242, 0.1); 
  }
  50% { 
    box-shadow: 
      0 0 25px rgba(24, 119, 242, 0.6),
      0 0 35px rgba(24, 119, 242, 0.4),
      0 0 45px rgba(24, 119, 242, 0.2); 
  }
}

/* Aplicar animación de iluminación a Facebook al hover */
.facebook-float:hover {
  animation: floatPulse 3s ease-in-out infinite, glowEffectFB 2s ease-in-out infinite !important;
}

/* PULSO PARA BADGE */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 59, 48, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .facebook-float,
  .whatsapp-float,
  .contactos-float,
  .sala-float,
  .notification-bell {
    width: 55px !important;
    height: 55px !important;
  }
  
  .facebook-float {
    bottom: 80px;
    right: 20px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .contactos-float {
    bottom: 20px;
    left: 20px;
  }
  
  /* SALAS EN RESPONSIVE */
  .sala-float {
    left: 20px;
  }
  
  .sala-float.admin {
    bottom: 80px !important;
  }
  
  .sala-float.empleado {
    bottom: 20px !important;
  }

  /* CAMPANA — pegada encima de sala.admin */
  .notification-bell {
    bottom: 145px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    width: 55px !important;
    height: 55px !important;
  }
  
  /* Campana no-admin: pegada encima de sala.empleado */
  .notification-bell.no-admin {
    bottom: 85px !important;
    right: unset !important;
    left: 20px !important;
  }
  
  .sala-float img {
    width: 44px !important;
    height: 44px !important;
  }
  
  .contactos-float i {
    font-size: 18px;
  }
  
  .contactos-float .badge {
    padding: 0 4px;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    top: -8px;
    right: -8px;
  }
  
  /* DESACTIVAR EXPANSIÓN EN MÓVIL */
  .sala-float:hover,
  .contactos-float:hover,
  .notification-bell:hover {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    transform: scale(1.08) !important;
    flex-direction: column !important;
  }
  
  .sala-float:hover {
    background: linear-gradient(135deg, #649FBE 0%, #195C9A 100%) !important;
    box-shadow: 
      0 8px 25px rgba(100, 159, 190, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  }
  
  .contactos-float:hover {
    background: white !important;
    color: #649FBE !important;
    box-shadow: 0 0 0 3px rgba(100, 159, 190, 0.1), 0 0 10px rgba(0, 0, 0, 0.15) !important;
  }
  
  .sala-float:hover img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8) !important;
  }
  
  .sala-float:hover span,
  .contactos-float:hover span:not(.badge),
  .notification-bell:hover .notif-label {
    display: none !important;
  }
  
  .contactos-float:hover i {
    margin-top: 2px;
  }
  
  /* Desactivar animaciones complejas en móvil para mejor rendimiento */
  .whatsapp-float:hover,
  .facebook-float:hover {
    animation: floatPulse 3s ease-in-out infinite !important;
  }
}

@media (max-width: 480px) {
  .facebook-float,
  .whatsapp-float,
  .contactos-float,
  .sala-float,
  .notification-bell {
    width: 50px !important;
    height: 50px !important;
  }
  
  .facebook-float {
    bottom: 70px;
    right: 10px;
  }
  
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
  }
  
  .contactos-float {
    bottom: 10px;
    left: 10px;
  }
  
  .sala-float {
    left: 10px;
  }
  
  .sala-float.admin {
    bottom: 70px !important;
  }
  
  .sala-float.empleado {
    bottom: 10px !important;
  }

  /* CAMPANA — pegada encima de sala.admin en 480px */
  .notification-bell {
    bottom: 130px !important;
    left: 10px !important;
    right: auto !important;
    top: auto !important;
    width: 50px !important;
    height: 50px !important;
  }

  /* Campana no-admin: pegada encima de sala.empleado en 480px */
  .notification-bell.no-admin {
    bottom: 70px !important;
    right: unset !important;
    left: 10px !important;
  }
  
  .sala-float img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .contactos-float i {
    font-size: 16px;
  }
  
  .contactos-float .badge {
    padding: 0 3px;
    font-size: 8px;
    min-width: 14px;
    height: 12px;
    top: -2px;
    right: -2px;
  }
}

/* ======================================================= */
/*      CONTACTOS - ESTADO CON MENSAJES NO LEÍDOS          */
/* ======================================================= */

/* Botón contactos cuando hay no leídos */
.contactos-float.has-unread {
  animation: floatPulse 3s ease-in-out infinite, unreadGlow 1.8s ease-in-out infinite;
  border-color: #ff3b30 !important;
  box-shadow:
    0 0 0 3px rgba(255, 59, 48, 0.25),
    0 0 15px rgba(255, 59, 48, 0.45),
    0 0 25px rgba(255, 59, 48, 0.25) !important;
}

/* Hover cuando hay no leídos */
.contactos-float.has-unread:hover {
  background: linear-gradient(135deg, #ff3b30 0%, #c62828 100%) !important;
  color: white !important;
  border-color: #c62828 !important;
  box-shadow:
    0 0 20px rgba(255, 59, 48, 0.7),
    0 0 35px rgba(255, 59, 48, 0.4),
    0 0 50px rgba(255, 59, 48, 0.25) !important;
}

/* Badge reforzado cuando hay no leídos */
.contactos-float.has-unread .badge {
  background: #ff3b30;
  animation: pulse 1.2s infinite;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 59, 48, 0.8),
    0 0 18px rgba(255, 59, 48, 0.6);
}

/* Icono del sobre cuando hay no leídos */
.contactos-float.has-unread i {
  color: #ff3b30;
}

/* Hover: icono blanco */
.contactos-float.has-unread:hover i {
  color: white !important;
}

/* Animación de brillo para no leídos */
@keyframes unreadGlow {
  0% {
    box-shadow:
      0 0 0 3px rgba(255, 59, 48, 0.25),
      0 0 15px rgba(255, 59, 48, 0.45),
      0 0 25px rgba(255, 59, 48, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 59, 48, 0.4),
      0 0 22px rgba(255, 59, 48, 0.7),
      0 0 40px rgba(255, 59, 48, 0.45);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(255, 59, 48, 0.25),
      0 0 15px rgba(255, 59, 48, 0.45),
      0 0 25px rgba(255, 59, 48, 0.25);
  }
}


/* ======================================================= */
/*                 HERO SECTION                            */
/* ======================================================= */

/* HERO CONTAINER */
.hero {
  height: 100vh;
  min-height: unset;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background-color: black;
}

/* HERO SLIDER CONTAINER */
.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* HERO CONTENT CONTAINER */
.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 600px;
  padding: 30px 40px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: var(--title-xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.2s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.4s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.6s;
}

.hero-slide.active .hero-title,
.hero-slide.active .hero-description,
.hero-slide.active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* HERO INDICATORS */
.hero-indicators {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-indicator.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* HERO VIDEO */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: black;
  z-index: 0;
}

/* ===================================== */
/* HERO POSTER (imagen base siempre visible) */
/* ===================================== */

.hero-poster {
  position: absolute;
  inset: 0;
  /* background-color como base (siempre visible aunque falle la imagen) */
  background-color: #19507F;
  background-image: url('../assets/images/walt1.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  /* z-index: 1 para estar sobre el video (z-index: 0) pero bajo el overlay ::before (z-index: 1 en stacking del slide) */
  z-index: 1;
  transition: opacity 0.8s ease;
}

/* El poster se desvanece cuando el video está listo */
.hero-poster.hero-poster-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===================================== */
/* HERO VIDEO LOADER (spinner de carga)  */
/* ===================================== */

.hero-video-loader {
  display: none; /* JS lo muestra solo en móvil */
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: heroSpinnerRotate 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes heroSpinnerRotate {
  to { transform: rotate(360deg); }
}

.hero-loader-text {
  opacity: 0.85;
}

/* Clase para ocultar el loader con fade */
.hero-video-loader.hero-loader-hidden {
  opacity: 0;
}

/* ===================================== */
/* HERO: AJUSTES RESPONSIVOS             */
/* ===================================== */

@media (max-width: 767.98px) {

  .hero {
    height: auto;
    min-height: 100svh; /* más preciso en móviles con barra de navegación */
    min-height: 100vh;  /* fallback */
  }

  .hero-content {
    max-width: 90%;
    padding: 20px;
  }

}

/* Pantallas muy pequeñas */
@media (max-width: 375px) {
  .hero-content {
    max-width: 95%;
    padding: 16px;
  }
}


/* HERO SOUND TOGGLE */
.sound-toggle {
  position: absolute;
  top: 85px;
  right: 35px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.2);
  z-index: 15;
}

.sound-toggle:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.3);
}

.sound-toggle.active {
  animation: pulseSound 1.4s ease-in-out infinite;
}

/* ======================================================= */
/*                 ABOUT SECTION                           */
/* ======================================================= */

/* ABOUT SECTION CONTAINER */
.about {
  background-color: var(--white); /* Fondo blanco */
  transition: background-color var(--transition-normal);
}

.dark-mode .about {
  background-color: var(--dark-bg); /* Fondo negro */
}

/* ABOUT CONTENT CONTAINER */
.about-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-xl);
  align-items: start;
}

/* ABOUT IMAGE CONTAINER */
.about-image {
  grid-column: span 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white); /* Fondo blanco para el espacio sobrante */
}

.dark-mode .about-image {
  background-color: var(--gray-900); /* Fondo oscuro en tema oscuro */
}

.about-image img {
  width: auto; /* Ancho automático para mantener proporciones */
  height: auto; /* Alto automático para mantener proporciones */
  max-width: 100%; /* No más ancho que el contenedor */
  max-height: 100%; /* No más alto que el contenedor */
  object-fit: contain; /* Cambiado a contain para ver imagen completa */
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03); /* Escala más sutil */
}

/* ABOUT TEXT CONTAINER */
.about-text {
  grid-column: span 7;
  height: 500px;
  display: flex;
  flex-direction: column;
}

/* ABOUT TABS CONTAINER */
.about-tabs {
  margin-top: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-buttons {
  display: flex;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-300);
}

.dark-mode .tab-buttons {
  border-bottom-color: var(--gray-700);
}

.tab-button {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: none;
  border: none;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dark-mode .tab-button {
  color: var(--gray-500);
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.dark-mode .tab-button::after {
  background-color: var(--dark-primary);
}

.tab-button.active {
  color: var(--primary);
}

.dark-mode .tab-button.active {
  color: var(--dark-primary);
}

.tab-button.active::after {
  width: 100%;
}

/* TAB CONTENT CONTAINER */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
  flex: 1;
  overflow-y: auto;
  max-height: calc(500px - 80px);
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* MISSION & VISION CARDS */
.mission-card,
.vision-card {
  background: var(--gray-100);
  padding: 25px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.5s ease;
  flex: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#values .vision-card {
  min-height: 420px;
}

.dark-mode .mission-card,
.dark-mode .vision-card {
  background: var(--gray-800);
}

.icon-mvv {
  font-size: 45px;
  color: var(--primary);
  margin-bottom: 15px;
  flex-shrink: 0;
}

.dark-mode .icon-mvv {
  color: var(--dark-primary);
}

.mvv-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.mvv-list::-webkit-scrollbar {
  width: 6px;
}

.mvv-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.mvv-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.dark-mode .mvv-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .mvv-list::-webkit-scrollbar-thumb {
  background: var(--dark-primary);
}

.mvv-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mvv-list li:last-child {
  border-bottom: none;
}

.mvv-list li i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.dark-mode .mvv-list li {
  color: var(--dark-text);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .mvv-list li i {
  color: var(--dark-primary);
}

.mvv-list li span {
  line-height: 1.5;
  flex: 1;
}

#values .tab-content.active {
  display: flex;
}

.vision-card > p {
  margin-bottom: 20px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ======================================================= */
/*               PRODUCTS SECTION                          */
/* ======================================================= */

/* PRODUCTS SECTION CONTAINER */
.products {
  background-color: var(--gray-200); /* Fondo gris claro */
  transition: background-color var(--transition-normal);
}

.dark-mode .products {
  background-color: var(--dark-surface); /* Fondo gris oscuro */
}

/* PRODUCTS FILTER */
.products-filter {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dark-mode .filter-btn {
  border-color: var(--gray-700);
  color: var(--dark-text);
}

.filter-btn:hover {
  background-color: var(--gray-200);
}

.dark-mode .filter-btn:hover {
  background-color: var(--gray-800);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.dark-mode .filter-btn.active {
  background-color: var(--dark-primary);
  border-color: var(--dark-primary);
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

/* PRODUCT CARD */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.dark-mode .product-card {
  background-color: var(--gray-800);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-body {
  padding: var(--spacing-lg);
}

.product-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.dark-mode .product-tag {
  background-color: var(--gray-700);
}

.product-title {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
}

.product-description {
  color: var(--gray-600);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-md);
}

.dark-mode .product-description {
  color: var(--gray-400);
}

/* ======================================================= */
/*                    MODALS SECTION                       */
/* ======================================================= */

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MODAL CONTENT */
.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: all var(--transition-normal);
  position: relative;
}

.dark-mode .modal-content {
  background-color: var(--dark-surface);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* MODAL HEADER */
.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark-mode .modal-header {
  border-bottom-color: var(--gray-700);
}

.modal-title {
  font-size: var(--title-sm);
  margin-bottom: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--dark);
}

.dark-mode .modal-close:hover {
  color: var(--white);
}

/* MODAL BODY */
.modal-body {
  padding: var(--spacing-lg);
}

.modal-image {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-lg);
}

/* MODAL DE AGREGAR MARCA */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: linear-gradient(180deg, #e3f2fd, #f3e5f5);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 30px 40px;
  width: 90%;
  max-width: 480px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  animation: fadeInModal 0.35s ease;
}

.modal-titulo {
  text-align: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #486498;
  margin-bottom: 25px;
}

.modal-box label {
  display: block;
  font-weight: 500;
  margin-top: 12px;
  color: #333;
}

.modal-box input[type="text"],
.modal-box input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  margin-top: 6px;
  transition: all 0.3s;
}

.modal-box input[type="text"]:focus,
.modal-box input[type="file"]:focus {
  border-color: #6388ce;
  box-shadow: 0 0 5px rgba(99, 136, 206, 0.4);
  outline: none;
}

.o-texto {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.btn-guardar {
  background: linear-gradient(90deg, #486498, #6388ce);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-guardar:hover {
  background: linear-gradient(90deg, #6388ce, #486498);
  transform: scale(1.05);
}

.btn-cancelar {
  background: #ff5555;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancelar:hover {
  background: #e04040;
  transform: scale(1.05);
}

.btn-add-brand {
  background: linear-gradient(90deg, #486498, #6388ce);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add-brand:hover {
  background: linear-gradient(90deg, #6388ce, #486498);
  transform: scale(1.05);
}

/* ======================================================= */
/*                  BRANDS SECTION                         */
/* ======================================================= */

/* BRANDS SECTION CONTAINER */
.brands {
  background-color: var(--gray-100); /* Fondo blanco */
  transition: background-color var(--transition-normal);
}

.dark-mode .brands {
  background-color: var(--dark-surface); /* Fondo negro */
}

/* BRANDS CAROUSEL */
.brands-carousel {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-lg) 0;
}

.brands-container {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

/* BRAND ITEM */
.brand-item {
  flex: 0 0 calc(100% / 5);
  padding: var(--spacing-md);
  display: flex;
  justify-content: center;
  align-items: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-normal);
  position: relative;
}

.brand-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.brand-image {
  max-height: 80px;
  max-width: 150px;
}

.dark-mode .brand-image {
  filter: invert(1);
}

/* DELETE BRAND FORM */
.delete-brand-form {
  position: absolute;
  top: 5px;
  right: 5px;
}

.delete-brand-btn {
  background: rgba(239, 68, 68, 0.85);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.delete-brand-btn:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.15);
}

/* ======================================================= */
/*              CERTIFICATIONS SECTION                     */
/* ======================================================= */

/* CERTIFICATIONS SECTION CONTAINER */
.certifications {
  background-color: var(--white); /* Fondo gris claro */
  transition: background-color var(--transition-normal);
}

.dark-mode .certifications {
  background-color: var(--dark-bg); /* Fondo gris oscuro */
}

/* CERTIFICATIONS GRID CONTAINER */
.cert-grid {
  display: flex;
  overflow-x: auto;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-xl);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--gray-200);
  -webkit-overflow-scrolling: touch;
  justify-content: center; /* Centra las tarjetas horizontalmente */
  align-items: center; /* Centra verticalmente */
  min-height: 350px; /* Altura mínima para mantener centrado */
}

/* Cuando hay pocas tarjetas, ocupan el espacio disponible */
.cert-grid:not(:has(.cert-item:nth-child(2))) {
  justify-content: center;
}

/* Personalizar scrollbar */
.cert-grid::-webkit-scrollbar {
  height: 8px;
}

.cert-grid::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 10px;
}

.cert-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.dark-mode .cert-grid {
  scrollbar-color: var(--dark-primary) var(--gray-800);
}

.dark-mode .cert-grid::-webkit-scrollbar-track {
  background: var(--gray-800);
}

.dark-mode .cert-grid::-webkit-scrollbar-thumb {
  background: var(--dark-primary);
}

/* CERTIFICATIONS ITEM */
.cert-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  min-width: 650px; /* Ancho mínimo para cada tarjeta */
  max-width: 650px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: var(--spacing-lg);
  gap: var(--spacing-lg);
  margin: 0 auto; /* Centra individualmente cada tarjeta */
}

.dark-mode .cert-item {
  background-color: var(--gray-800);
}

.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* CERTIFICATIONS LEFT SIDE */
.cert-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
  flex-shrink: 0;
}

.cert-icon {
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.dark-mode .cert-title {
  color: var(--dark-text);
}

/* CERTIFICATIONS DESCRIPTION */
.cert-description {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  padding-left: var(--spacing-md);
  border-left: 2px solid var(--gray-300);
}

.dark-mode .cert-description {
  color: var(--gray-400);
  border-left-color: var(--gray-700);
}

/* ======================================================= */
/*                    JOBS SECTION                         */
/* ======================================================= */

/* ===========================================
   JOBS SECTION - ESTILOS ORGANIZADOS
   =========================================== */

/* 1. JOBS SECTION CONTAINER */
.jobs {
  background-color: var(--gray-100); /* Fondo blanco */
  transition: background-color var(--transition-normal);
}

.dark-mode .jobs {
  background-color: var(--dark-surface); /* Fondo negro */
}

/* 2. ENCABEZADOS DE SECCIÓN */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.dark-mode .section-title {
  color: var(--dark-text);
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.dark-mode .section-description {
  color: var(--gray-400);
}

/* 3. FORMULARIOS ADMIN */
.admin-form-container {
  margin-bottom: 3rem;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-header h3 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dark-mode .form-header h3 {
  color: var(--dark-text);
}

.form-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
}

.dark-mode .form-subtitle {
  color: var(--gray-400);
}

/* 4. TARJETAS DE FORMULARIO */
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
}

.dark-mode .form-card {
  background: var(--dark-surface);
  border-color: var(--gray-700);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 5. ELEMENTOS DE FORMULARIO */
#applicationForm {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.3rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.dark-mode .form-label {
  color: var(--dark-text);
}

.form-label.required::after {
  content: " *";
  color: #f44336;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  background-color: var(--white);
  transition: all var(--transition-fast);
  color: var(--dark);
}

.dark-mode .form-control {
  background-color: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--dark-text);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.dark-mode .form-control:focus {
  border-color: var(--dark-primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-accent-rgb), 0.15);
}

.form-control::placeholder {
  color: var(--gray-500);
}

.dark-mode .form-control::placeholder {
  color: var(--gray-500);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* 6. SUBIDA DE IMÁGENES */
.images-upload-container {
  margin-top: 0.5rem;
}

.upload-info {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 2px dashed var(--gray-300);
}

.dark-mode .upload-info {
  background: var(--gray-800);
  border-color: var(--gray-600);
}

.upload-info i {
  font-size: 2rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.upload-info p {
  margin-bottom: 0.25rem;
  color: var(--gray-700);
}

.dark-mode .upload-info p {
  color: var(--gray-300);
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.image-upload-item {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.dark-mode .image-upload-item {
  border-color: var(--gray-600);
}

.image-upload-item:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.upload-preview i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.image-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.image-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.btn-remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-remove-image:hover {
  background: #f44336;
}

/* 7. CHECKBOX GROUP */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.dark-mode .checkbox-group {
  background: var(--gray-800);
  border-color: var(--gray-600);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 8. BOTONES MEJORADOS */
.btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-outline-secondary {
  background: transparent;
  border: 2px solid var(--gray-400);
  color: var(--gray-700);
}

.dark-mode .btn-outline-secondary {
  border-color: var(--gray-600);
  color: var(--gray-300);
}

.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-500);
}

.dark-mode .btn-outline-secondary:hover {
  background: var(--gray-700);
  border-color: var(--gray-500);
}

/* 9. CONTENEDOR PRINCIPAL DE TRABAJOS */
.jobs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* 10. SECCIÓN DE VACANTES */
.vacancies-section {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 1200px;
  max-height: 1200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dark-mode .vacancies-section {
  background: var(--dark-surface);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.vacancies-section .section-header-inline {
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

/* 11. SECCIÓN DE APLICACIÓN */
.application-section {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.dark-mode .application-section {
  background: var(--dark-surface);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 12. ENCABEZADOS EN LÍNEA */
.section-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header-inline h3 {
  font-size: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dark-mode .section-header-inline h3 {
  color: var(--dark-text);
}

/* 13. LISTA DE TRABAJOS */
.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.job-list::-webkit-scrollbar {
  width: 6px;
}

.job-list::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.dark-mode .job-list::-webkit-scrollbar-track {
  background: var(--gray-800);
}

.job-list::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 10px;
}

.dark-mode .job-list::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

.job-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.dark-mode .job-list::-webkit-scrollbar-thumb:hover {
  background: var(--dark-primary);
}

/* 14. ELEMENTOS DE TRABAJO */
.job-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
  position: relative;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.job-item::-webkit-scrollbar {
  width: 5px;
}

.job-item::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.dark-mode .job-item::-webkit-scrollbar-track {
  background: var(--gray-800);
}

.job-item::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 10px;
}

.dark-mode .job-item::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

.job-item::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.dark-mode .job-item::-webkit-scrollbar-thumb:hover {
  background: var(--dark-primary);
}

.dark-mode .job-item {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.job-item[data-active="0"] {
  opacity: 0.7;
  background: var(--gray-100);
}

.dark-mode .job-item[data-active="0"] {
  background: var(--gray-900);
}

.job-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .job-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 15. ESTADO DE VACANTE */
.vacancy-status {
  position: absolute;
  top: 1rem;
  right: 5rem;
  z-index: 1;
}

/* 16. BADGES DE ESTADO */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.paused {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-badge.new {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-badge.reviewed {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* 17. ESTRUCTURA DE TRABAJO */
.job-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
}

.job-title-section {
  flex: 1;
  min-width: 250px;
}

.job-title {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dark-mode .job-title {
  color: var(--dark-text);
}

.job-details-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.dark-mode .detail-item {
  background: rgba(var(--dark-primary-rgb), 0.2);
  color: var(--dark-primary);
}

.detail-item i {
  font-size: 0.8rem;
}

.detail-item.availability {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

.dark-mode .detail-item.availability {
  background: rgba(33, 150, 243, 0.2);
}

/* 18. METADATOS DEL TRABAJO */
.job-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.dark-mode .meta-item {
  color: var(--gray-400);
}

.meta-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* 19. DESCRIPCIÓN DEL TRABAJO */
.job-description {
  color: var(--gray-700);
  line-height: 1.6;
}

.dark-mode .job-description {
  color: var(--gray-300);
}

.job-description p {
  margin-bottom: 0;
}

/* 20. ACCIONES DE TRABAJO */
.job-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.dark-mode .job-actions {
  background: rgba(55, 65, 81, 0.9);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.dark-mode .icon-btn {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-300);
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-btn.btn-danger:hover {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

.icon-btn.btn-warning:hover {
  background: #FF9800;
  color: white;
  border-color: #FF9800;
}

.icon-btn.btn-success:hover {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

/* 21. SUBIDA DE ARCHIVOS */
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dark-mode .file-upload-area {
  border-color: var(--gray-600);
}

.file-upload-area:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.file-upload-area i {
  font-size: 2.5rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.file-upload-area p {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.dark-mode .file-upload-area p {
  color: var(--gray-300);
}

.form-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-area.dragover {
  border-color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.1) !important;
  transform: scale(1.02);
}

/* 22. PIE DE FORMULARIO */
.form-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.dark-mode .form-footer {
  border-top-color: var(--gray-700);
}

/* 23. ESTADOS VACÍOS */
.empty-state, .empty-content {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
}

.dark-mode .empty-state,
.dark-mode .empty-content {
  color: var(--gray-400);
}

.empty-state i, .empty-content i {
  margin-bottom: 1rem;
  color: var(--gray-400);
}

.empty-state h3, .empty-content h3 {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.dark-mode .empty-state h3,
.dark-mode .empty-content h3 {
  color: var(--gray-300);
}

/* ===========================================
   TABLA DE SOLICITUDES - ESTILOS MEJORADOS Y FORMALES
   =========================================== */

/* 24. SECCIÓN DE SOLICITUDES */
.applications-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.dark-mode .applications-section {
  border-top-color: var(--gray-700);
}

/* 25. CONTENEDOR DE TABLA MEJORADO */
.applications-table-container {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.dark-mode .applications-table-container {
  background: var(--gray-800);
  border-color: var(--gray-700);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.applications-table-container:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.dark-mode .applications-table-container:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* 26. CABECERA DE ESTADÍSTICAS MEJORADA */
.applications-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-mode .applications-count {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  border-bottom-color: var(--gray-700);
}

.applications-count > div {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.applications-total {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.dark-mode .applications-total {
  color: var(--gray-200);
}

.applications-total::before {
  content: "📊";
  font-size: 1.2rem;
}

.applications-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.applications-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.applications-new::before {
  content: "🆕";
  font-size: 0.9rem;
}

.applications-reviewed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.applications-reviewed::before {
  content: "✅";
  font-size: 0.9rem;
}

/* 27. HINT DE SCROLL MEJORADO */
.applications-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.dark-mode .applications-scroll-hint {
  color: var(--gray-300);
  background: rgba(255, 255, 255, 0.05);
}

.applications-scroll-hint:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.applications-scroll-hint i {
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 28. WRAPPER DE TABLA CON SCROLL MEJORADO */
.applications-table-wrapper {
  max-height: 500px;
  overflow-y: auto;
  margin: 0;
  border-radius: 0;
  border: none;
  background: var(--white);
}

.dark-mode .applications-table-wrapper {
  background: var(--gray-800);
}

.applications-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.applications-table-wrapper::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.dark-mode .applications-table-wrapper::-webkit-scrollbar-track {
  background: var(--gray-900);
}

.applications-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  transition: all 0.3s;
}

.dark-mode .applications-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--dark-primary);
}

.applications-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
  width: 10px;
}

.dark-mode .applications-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-accent);
}

/* 29. TABLA DE DATOS FORMAL Y ELEGANTE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.data-table thead {
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-mode .data-table thead {
  background: var(--gray-800);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.data-table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
}

.dark-mode .data-table th {
  color: var(--gray-200);
  border-bottom-color: var(--dark-primary);
}

.data-table th::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.data-table th:hover::after {
  width: 100%;
}

.data-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.dark-mode .data-table td {
  border-bottom-color: var(--gray-800);
  color: var(--gray-300);
}

/* 30. FILAS DE TABLA ELEGANTES */
.data-table tbody tr {
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.03), rgba(var(--primary-rgb), 0.08));
  transform: translateX(5px);
  border-left: 3px solid var(--primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.dark-mode .data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(var(--dark-primary-rgb), 0.05), rgba(var(--dark-primary-rgb), 0.1));
  border-left-color: var(--dark-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 31. SOLICITUDES NUEVAS (estilo sutil) */
.data-table tr.solicitud-nueva {
  background: rgba(33, 150, 243, 0.03);
  border-left: 3px solid rgba(33, 150, 243, 0.3);
}

.dark-mode .data-table tr.solicitud-nueva {
  background: rgba(33, 150, 243, 0.05);
  border-left-color: rgba(33, 150, 243, 0.4);
}

/* 32. SOLICITUDES REVISADAS (estilo sutil) */
.data-table tr.solicitud-revisada {
  background: rgba(76, 175, 80, 0.03);
  border-left: 3px solid rgba(76, 175, 80, 0.3);
  opacity: 0.95;
}

.dark-mode .data-table tr.solicitud-revisada {
  background: rgba(76, 175, 80, 0.05);
  border-left-color: rgba(76, 175, 80, 0.4);
}

/* 33. SEPARADOR ENTRE NUEVAS Y REVISADAS */
.separador-solicitudes {
  background: var(--gray-100) !important;
  height: 1px;
}

.dark-mode .separador-solicitudes {
  background: var(--gray-700) !important;
}

.separador-solicitudes td {
  padding: 0;
  height: 1px;
}

.separador-solicitudes .separator-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.dark-mode .separador-solicitudes .separator-content {
  color: var(--gray-400);
  background: var(--gray-800);
  border-top-color: var(--gray-700);
  border-bottom-color: var(--gray-700);
}

.separador-solicitudes .separator-content i {
  margin: 0 0.75rem;
  color: var(--primary);
}

/* 34. TEXTO TRUNCADO MEJORADO */
.truncate-text {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
  position: relative;
  padding-right: 15px;
}

.truncate-text::after {
  content: "...";
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--primary);
  font-weight: bold;
}

/* 35. BOTÓN DESCARGAR CV ELEGANTE */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid rgba(33, 150, 243, 0.2);
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.btn-download:hover {
  background: rgba(33, 150, 243, 0.2);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.3);
}

/* 36. ACCIONES DE TABLA ELEGANTES */
.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-mode .btn-action {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-300);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-mark {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border-color: rgba(76, 175, 80, 0.2);
}

.btn-mark:hover {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-delete {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.2);
}

.btn-delete:hover {
  background: #f44336;
  color: white;
  border-color: #f44336;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 37. BADGES DE ESTADO ELEGANTES */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge.new {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.25));
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-badge.reviewed {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.25));
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* 38. BADGE PARA VACANTE */
.data-table td .badge-light {
  background: rgba(0, 0, 0, 0.05);
  color: var(--gray-700);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .data-table td .badge-light {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-300);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 39. ENLACES DE CORREO ELEGANTES */
.data-table td a[href^="mailto:"] {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.data-table td a[href^="mailto:"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.data-table td a[href^="mailto:"]:hover {
  color: var(--primary-dark);
}

.data-table td a[href^="mailto:"]:hover::after {
  width: 100%;
}

.dark-mode .data-table td a[href^="mailto:"] {
  color: var(--dark-primary);
}

.dark-mode .data-table td a[href^="mailto:"]::after {
  background: var(--dark-primary);
}

.dark-mode .data-table td a[href^="mailto:"]:hover {
  color: var(--primary-accent);
}

/* 40. EFECTO DE ENTRADA PARA FILAS */
@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.data-table tbody tr {
  animation: fadeInRow 0.4s ease-out forwards;
}

.data-table tbody tr:nth-child(odd) {
  animation-delay: calc(var(--row-index, 0) * 0.05s);
}

/* ===========================================
   VISTA PREVIA DE CV
   =========================================== */

.cv-preview-container {
  margin-top: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.dark-mode .cv-preview-container {
  background: var(--gray-800);
  border-color: var(--gray-600);
}

.cv-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.dark-mode .cv-preview-header {
  background: var(--gray-900);
  border-bottom-color: var(--gray-700);
}

.cv-preview-header h4 {
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
}

.dark-mode .cv-preview-header h4 {
  color: var(--gray-300);
}

.btn-remove-cv {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}

.btn-remove-cv:hover {
  background: rgba(244, 67, 54, 0.2);
}

.cv-preview-content {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}

.cv-preview-icon {
  flex-shrink: 0;
}

.cv-preview-icon i {
  color: var(--primary);
}

.dark-mode .cv-preview-icon i {
  color: var(--dark-primary);
}

.cv-preview-details {
  flex: 1;
  min-width: 0;
}

.cv-preview-details h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark-mode .cv-preview-details h5 {
  color: var(--dark-text);
}

.cv-preview-details p {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
  font-size: 0.85rem;
}

.dark-mode .cv-preview-details p {
  color: var(--gray-400);
}

.cv-preview-progress {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.dark-mode .cv-preview-progress {
  background: var(--gray-700);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  width: 0%;
  transition: width 0.3s ease;
}

.dark-mode .progress-bar {
  background: linear-gradient(90deg, var(--dark-primary), var(--primary-accent));
}

.cv-status {
  font-size: 0.8rem !important;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   MODAL DE JOBS
   =========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dark-mode .modal-content {
  background: var(--dark-surface);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.dark-mode .modal-header {
  border-bottom-color: var(--gray-700);
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.dark-mode .modal-close:hover {
  background: var(--gray-700);
  color: var(--dark-text);
}

.modal-body {
  padding: 1.5rem;
}

/* ======================================================= */
/*                 BLOG/EVENTOS SECTION                    */
/* ======================================================= */

/* EVENTOS SECTION CONTAINER */
.eventos-section {
  padding: 100px 20px;
  background: var(--gray-100); /* Fondo gris claro */
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal);
}

.dark-mode .eventos-section {
  background: var(--dark-surface); /* Fondo gris oscuro */
}

.dark-mode .eventos-section::before {
  background: linear-gradient(45deg, rgba(var(--dark-primary), 0.08) 0%, transparent 70%);
}

/* EVENTOS CONTAINER */
.eventos-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* EVENTOS HEADER */
.eventos-header {
  text-align: center;
  margin-bottom: 60px;
}

.eventos-title {
  font-size: var(--title-lg);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.dark-mode .eventos-title {
  color: var(--dark-primary);
}

.eventos-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-accent) 100%);
  border-radius: 2px;
}

.dark-mode .eventos-title::after {
  background: linear-gradient(90deg, var(--dark-primary) 0%, var(--primary-accent) 100%);
}

.eventos-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-700);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.dark-mode .eventos-subtitle {
  color: var(--dark-secondary);
}

/* EVENTOS CONTENT CONTAINER */
.eventos-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.dark-mode .eventos-content {
  background: var(--dark-surface);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.eventos-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-accent));
}

.dark-mode .eventos-content::before {
  background: linear-gradient(to bottom, var(--dark-primary), var(--primary-accent));
}

/* EVENTOS IMAGE CONTAINER */
.eventos-img-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.eventos-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}

.eventos-img-container:hover .eventos-img {
  transform: scale(1.05);
}

.eventos-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.eventos-img-container:hover .eventos-img-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* EVENTOS INFO CONTAINER */
.eventos-info {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 20px;
}

.eventos-info h3 {
  font-size: var(--title-sm);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.eventos-info h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.dark-mode .eventos-info h3 {
  color: var(--dark-primary);
}

.dark-mode .eventos-info h3::before {
  background: var(--dark-primary);
}

.eventos-info p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: var(--text-md);
}

.dark-mode .eventos-info p {
  color: var(--dark-secondary);
}

/* EVENTOS FEATURES */
.eventos-features {
  margin-bottom: 35px;
}

.eventos-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--gray-700);
}

.dark-mode .eventos-feature {
  color: var(--dark-text);
}

.eventos-feature i {
  color: var(--primary);
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.dark-mode .eventos-feature i {
  color: var(--dark-primary);
}

.btn-eventos {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--text-md);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.dark-mode .btn-eventos {
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--primary) 100%);
  box-shadow: 0 8px 25px rgba(var(--primary-accent-rgb), 0.4);
}

.btn-eventos::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s ease;
}

.btn-eventos:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.4);
}

.dark-mode .btn-eventos:hover {
  box-shadow: 0 15px 35px rgba(var(--primary-accent-rgb), 0.5);
}

.btn-eventos:hover::before {
  left: 100%;
}

.btn-eventos i {
  font-size: 18px;
  transition: transform var(--transition-normal);
}

.btn-eventos:hover i {
  transform: translateX(5px);
}

/* Elementos decorativos flotantes */
.eventos-decorative {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
  border-radius: 50%;
  z-index: 1;
  animation: floatPulse 8s infinite ease-in-out;
}

.eventos-decorative-1 {
  top: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
}

.eventos-decorative-2 {
  bottom: 15%;
  right: 7%;
  width: 80px;
  height: 80px;
  animation-delay: 2s;
}

.dark-mode .eventos-decorative {
  background: linear-gradient(135deg, rgba(var(--dark-primary), 0.15) 0%, transparent 100%);
}

/* ======================================================= */
/*                CONTACT SECTION                          */
/* ======================================================= */

/* ======================================================= */
/*           MODALES PROFESIONALES SECTION                 */
/* ======================================================= */

/* MODAL OVERLAY */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Contenedor principal del modal */
.modal-content {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  max-width: 900px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .modal-content {
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Encabezado del modal - Elegante y profesional */
.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.dark-mode .modal-header {
  border-bottom-color: var(--gray-700);
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--primary) 100%);
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.3) 100%);
  z-index: 1;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title::before {
  content: '📬';
  font-size: 20px;
}

/* Botón de cerrar - Sofisticado */
.modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Cuerpo del modal */
.modal-body {
  padding: 0;
  flex: 1;
  overflow-y: auto;
  background: var(--gray-50);
}

.dark-mode .modal-body {
  background: var(--gray-900);
}

/* Estilos para la lista de contactos */
.contacts-list {
  padding: 0;
  margin: 0;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  border: none;
  position: relative;
  overflow: hidden;
}

.dark-mode .contact-row {
  background: var(--dark-surface);
  border-bottom-color: var(--gray-800);
}

.contact-row:hover {
  background: var(--gray-50);
  transform: translateX(4px);
}

.dark-mode .contact-row:hover {
  background: var(--gray-800);
}

.contact-row::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark-mode .contact-row::after {
  background: linear-gradient(to bottom, var(--dark-primary), var(--primary-accent));
}

.contact-row:hover::after {
  opacity: 1;
}

.contact-row__left {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.contact-row__correo {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark-mode .contact-row__correo {
  color: var(--dark-primary);
}

.contact-row__asunto {
  color: var(--gray-600);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark-mode .contact-row__asunto {
  color: var(--gray-400);
}

.contact-row__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.contact-row__right small {
  color: var(--gray-500);
  font-size: 13px;
  min-width: 120px;
  text-align: right;
}

.dark-mode .contact-row__right small {
  color: var(--gray-500);
}

.contact-row__right i {
  color: var(--gray-400);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.contact-row:hover .contact-row__right i {
  transform: translateX(4px);
  color: var(--primary);
}

.dark-mode .contact-row:hover .contact-row__right i {
  color: var(--dark-primary);
}

/* Estilo para cuando no hay contactos */
.modal-body > p {
  text-align: center;
  padding: 60px 32px;
  color: var(--gray-500);
  font-size: 16px;
  font-style: italic;
  margin: 0;
}

.dark-mode .modal-body > p {
  color: var(--gray-500);
}

/* ======================================================= */
/*         MODAL DE DETALLE PROFESIONAL SECTION            */
/* ======================================================= */
#contactDetailModal .modal-content {
  max-width: 700px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 32px;
}

.detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-grid label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dark-mode .detail-grid label {
  color: var(--gray-400);
}

.detail-grid label::before {
  content: '•';
  color: var(--primary);
  font-size: 16px;
}

.dark-mode .detail-grid label::before {
  color: var(--dark-primary);
}

.detail-grid input,
.detail-grid textarea {
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

.dark-mode .detail-grid input,
.dark-mode .detail-grid textarea {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--dark-text);
}

.detail-grid input:focus,
.detail-grid textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.dark-mode .detail-grid input:focus,
.dark-mode .detail-grid textarea:focus {
  border-color: var(--dark-primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-accent-rgb), 0.1);
}

.detail-grid textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.detail-grid > div[style*="grid-column"] {
  grid-column: 1 / -1;
}

/* Badge para el contador */
.contacts-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff3b30, #d32f2f);
  color: white;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  border: 2px solid var(--white);
  animation: pulse 2s infinite;
}

.dark-mode .contacts-count {
  border-color: var(--dark-surface);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  }
}

/* Scrollbar personalizado para modales */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.dark-mode .modal-body::-webkit-scrollbar-track {
  background: var(--gray-800);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

.dark-mode .modal-body::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.dark-mode .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--dark-primary);
}

/* ======================================================= */
/*             CONTACT SECTION MAIN                        */
/* ======================================================= */

/* CONTACT SECTION CONTAINER */
.contact {
  background-color: var(--white); /* Fondo blanco */
  padding: 80px 0;
}

.dark-mode .contact {
  background-color: var(--dark-bg); /* Fondo negro */
}

/* CONTACT CONTAINER */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Sección de información de contacto */
.contact-info {
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dark-mode .contact-info {
  background: var(--gray-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info-section {
  margin-bottom: 40px;
}

.contact-info-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gray-900);
  position: relative;
  padding-bottom: 15px;
}

.contact-info-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.dark-mode .contact-info-section h2 {
  color: white;
}

.contact-info-section p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 16px;
}

.dark-mode .contact-info-section p {
  color: var(--gray-400);
}

/* Detalles de contacto */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark-mode .contact-detail-icon {
  background: var(--dark-primary);
}

.contact-detail-icon i {
  color: white;
  font-size: 20px;
}

.contact-detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.dark-mode .contact-detail-content h3 {
  color: white;
}

.contact-detail-content p {
  color: var(--gray-600);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.dark-mode .contact-detail-content p {
  color: var(--gray-400);
}

/* Horarios */
.contact-hours {
  margin-top: 10px;
}

.contact-hours p {
  margin-bottom: 5px !important;
}

/* Mapa */
.contact-map-section {
  margin-top: 40px;
}

.contact-map-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.dark-mode .contact-map-section h3 {
  color: white;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Formulario de contacto */
.contact-form-container {
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dark-mode .contact-form-container {
  background: var(--gray-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-container h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--gray-900);
  position: relative;
  padding-bottom: 15px;
}

.contact-form-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.dark-mode .contact-form-container h2 {
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-mode .form-label {
  color: var(--gray-300);
}

.form-control {
  padding: 15px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--gray-50);
}

.dark-mode .form-control {
  background: var(--gray-700);
  border-color: var(--gray-600);
  color: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dark-mode .form-control:focus {
  border-color: var(--dark-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
  color: var(--gray-500);
}

.dark-mode .form-control::placeholder {
  color: var(--gray-500);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Botón del formulario */
.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.dark-mode .submit-btn {
  background: var(--dark-primary);
}

.dark-mode .submit-btn:hover {
  background: var(--dark-primary-dark);
}

/* Modales - mantener estilo existente mejorado */
.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  animation: modalAppear 0.3s ease-out;
}

.dark-mode .modal-content {
  background: var(--gray-800);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================================================= */
/*        CONTACTS FLOATING BUTTON SECTION                 */
/* ======================================================= */
.btn-floating-contacts {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatPulse 3s ease-in-out infinite;
  text-decoration: none;
}

/* Hover estilo WhatsApp/Facebook */
.btn-floating-contacts:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

/* Contador tipo Facebook */
.contacts-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ff3b30;
  color: #fff;
  border-radius: 50%;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Dark mode */
body.dark-mode .btn-floating-contacts {
  background: linear-gradient(135deg, #2bdc70, #22c55e);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.6);
}

body.dark-mode .btn-floating-contacts:hover {
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.85);
}

/* ======================================================= */
/*                SERVICIOS SECTION                        */
/* ======================================================= */

/* SERVICIOS SECTION CONTAINER */
.servicios-visual {
  background: var(--gray-100); /* Fondo gris claro */
  padding: 100px 20px;
  text-align: center;
}

body.dark-mode .servicios-visual {
  background: var(--dark-surface); /* Fondo negro */
}

.servicios-visual .section-title {
  font-size: 2.2rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 55px;
  letter-spacing: 1px;
}

/* Añade esta regla para el tema oscuro */
body.dark-mode .servicios-visual .section-title {
  color: var(--dark-text);
}

.servicios-visual .section-title::after {
  content: '';
  width: 90px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 12px auto 0;
  border-radius: 12px;
}

/* También añade para el tema oscuro el pseudo-elemento ::after */
body.dark-mode .servicios-visual .section-title::after {
  background: var(--dark-primary);
}

/* SERVICIOS GRID */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  justify-items: center;
  max-width: 1300px;
  margin: auto;
}

/* SERVICIO CARD */
.servicio-card {
  background: var(--white); /* Fondo blanco */
  border-radius: 28px;
  padding: 40px 30px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.3s ease;
  border: 2px solid transparent;
  opacity: 0;
  animation: fadeSmooth 0.7s ease forwards;
}

.servicio-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  border: 2px solid var(--primary);
}

.servicio-info i {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.servicio-info h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.servicio-info p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 30px;
}

.servicio-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.servicio-img img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.servicio-card:hover .servicio-img img {
  transform: scale(1.08);
}

body.dark-mode .servicio-card {
  background: var(--dark-surface); /* Fondo gris oscuro */
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.05);
}

/* Añade también el borde en hover para tema oscuro */
body.dark-mode .servicio-card:hover {
  border: 2px solid var(--dark-primary);
}

body.dark-mode .servicio-info h3 {
  color: var(--dark-text);
}

body.dark-mode .servicio-info p {
  color: var(--dark-secondary);
}

body.dark-mode .servicio-info i {
  color: var(--dark-primary);
}

body.dark-mode .servicio-img img {
  border-color: var(--dark-primary);
}

/* ======================================================= */
/*                 EVENTOS SECTION                         */
/* ======================================================= */

/* EVENTOS SECTION CONTAINER */
.eventos-section {
  padding: 80px 20px;
  background-color: var(--white); /* Fondo blanco */
  text-align: center;
  transition: background-color var(--transition-normal);
}

.dark-mode .eventos-section {
  background-color: var(--dark-bg); /* Fondo negro */
}

.eventos-container {
  max-width: 1100px;
  margin: 0 auto;
}

.eventos-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 40px;
}

.eventos-img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.eventos-img:hover {
  transform: scale(1.03);
}

.eventos-info {
  max-width: 500px;
  text-align: left;
}

.eventos-info h3 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 15px;
  transition: color var(--transition-normal);
}

.dark-mode .eventos-info h3 {
  color: var(--dark-primary);
}

.eventos-info p {
  color: var(--gray-600);
  margin-bottom: 25px;
  line-height: 1.6;
  transition: color var(--transition-normal);
}

.dark-mode .eventos-info p {
  color: var(--dark-secondary);
}

/* ======================================================= */
/*             POSTULACIONES SECTION                       */
/* ======================================================= */
.postulaciones-list {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--gray-100); /* Fondo gris claro */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.postulaciones-list h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.postulaciones-list ul {
  list-style: none;
  padding: 0;
}

.postulaciones-list li {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-300);
}

.postulaciones-list li:last-child {
  border-bottom: none;
}

.cv-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.cv-preview-header p {
  margin: 0;
  font-size: 14px;
}

.cv-preview-header .remove-cv {
  background: var(--danger);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.cv-preview-header .remove-cv:hover {
  background: #a71d2a;
}

/* Table Solicitudes */
.table-solicitudes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-solicitudes th,
.table-solicitudes td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
  font-size: var(--text-sm);
}

.table-solicitudes th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-solicitudes tr:hover {
  background-color: var(--gray-100);
  transition: background-color var(--transition-fast);
}

.dark-mode .table-solicitudes {
  background: var(--dark-surface);
  color: var(--dark-text);
}

.dark-mode .table-solicitudes th {
  background: var(--dark-primary);
  color: var(--white);
}

.dark-mode .table-solicitudes tr:hover {
  background-color: var(--gray-800);
}

.solicitudes-section {
  margin: 3rem auto;
  width: 100%;
  max-width: 1100px;
  padding: 2rem;
  border-radius: 16px;
  background: var(--white); /* Fondo blanco */
  box-shadow: var(--shadow-lg);
  transition: background var(--transition-normal), color var(--transition-normal);
  overflow-x: auto;
}

.solicitudes-section .container {
  max-width: 100% !important;
  padding: 0 20px;
}

.solicitudes-section .table-responsive {
  width: 100% !important;
}

.solicitudes-section table {
  width: 100% !important;
  table-layout: auto;
  border-collapse: collapse;
}

.solicitudes-section th,
.solicitudes-section td {
  padding: 12px 15px;
  word-wrap: break-word;
  white-space: normal;
}

.dark-mode .solicitudes-section {
  background: var(--dark-surface); /* Fondo gris oscuro */
}

/* ======================================================= */
/*                RESPONSIVE STYLES                        */
/* ======================================================= */
@media (max-width: 1200px) {
  :root {
    --title-xl: 2.5rem;
    --title-lg: 2.25rem;
    --title-md: 1.75rem;
  }
}

@media (max-width: 1270px) {
  :root {
    --title-xl: 2.25rem;
    --title-lg: 2rem;
    --title-md: 1.5rem;
    --title-sm: 1.25rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    z-index: 1000;
  }

  .logo {
    margin-left: 7%;
    font-size: var(--text-md);
  }

  .dark-mode .nav-menu {
    background-color: var(--dark-surface);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: var(--spacing-sm) 0;
    width: 100%;
  }

  .nav-link {
    padding: var(--spacing-sm) 0;
    display: block;
    width: 100%;
  }

  .hamburger {
    display: flex;
    margin-left: 1%;
  }

  .about-image {
    grid-column: span 12;
    margin-bottom: var(--spacing-lg);
  }

  .about-text {
    grid-column: span 12;
  }

  .jobs-container {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .brand-item {
    flex: 0 0 calc(100% / 3);
  }

  .floating-controls {
    right: 5px;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .contacts-float {
    width: 95%;
    padding: var(--spacing-lg);
  }
  
  .contact-float {
    padding: var(--spacing-sm);
    padding-right: 50px;
  }
  
  .delete-contact-form {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }
  
  .contacts-float-close {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
  }

  .servicio-img img {
    width: 180px;
    height: 180px;
  }

  .eventos-content {
    flex-direction: column;
  }
  
  .eventos-info {
    text-align: center;
  }

  .facebook-float,
  .whatsapp-float,
  #btnShowContacts,
  .sala-float {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 15px;
    right: 15px;
  }
  
  .facebook-float,
  .sala-float {
    bottom: 80px;
  }

  /* Jobs section responsive */
  .jobs-container {
    gap: var(--spacing-lg);
  }
  
  .job-item {
    padding: var(--spacing-md);
  }
  
  .job-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-start;
  }
  
  .job-actions {
    position: static;
    margin-top: var(--spacing-sm);
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  :root {
    --title-xl: 2rem;
    --title-lg: 1.75rem;
    --title-md: 1.5rem;
    --title-sm: 1.25rem;
    --spacing-xxl: 2rem;
    --spacing-xl: 1.5rem;
  }
  
  .hero-content {
    padding: var(--spacing-lg);
  }

  .hero-title {
    font-size: var(--title-lg);
  }

  .hero-description {
    font-size: var(--text-md);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .section-header {
    margin-bottom: var(--spacing-xl);
  }

  .products-filter {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .contacts-float {
    padding: var(--spacing-md);
  }
  
  .contact-float {
    padding-right: 45px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .brand-item {
    flex: 0 0 calc(100% / 2);
  }

  .job-form {
    padding: var(--spacing-lg);
  }
  
  .form-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }
}

/* ======================================================= */
/*                FOOTER SECTION                           */
/* ======================================================= */
/* === FOOTER COMPACTO, CENTRADO Y ELEGANTE === */
footer.footer {
  margin-top: -5px;
}

/* Fondo gris elegante para mejor contraste */
.footer {
  background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
  color: #ECF0F1;
  padding: 8px 0 3px;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 -2px 15px rgba(44, 62, 80, 0.4);
  position: relative;
  transition: all 0.4s ease;
  min-height: 150px;
}

.footer.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-top: none;
}

/* FOOTER CONTAINER */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5px 15px;
}

/* FOOTER LOGO SECTION */
.footer-logo {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 0;
}

.footer-logo img {
  width: auto;
  height: 40px;
  max-width: 90px;
  margin-bottom: 5px;
  object-fit: contain;
  filter: brightness(1.2);
}

.footer-description {
  font-size: 11px;
  color: #BDC3C7;
  line-height: 1.3;
  max-width: 240px;
  margin: 0 auto 3px;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  padding-top: 0;
}

.social-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3498DB, #2980B9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .social-link {
  color: white
}

.social-link:hover {
  background: linear-gradient(145deg, #FFFFFF, #ECF0F1);
  color: #3498DB;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.6);
  border-color: #3498DB;
}

/* FOOTER LINKS SECTIONS */
.footer-links {
  flex: 1 1 140px;
  text-align: center;
  padding-top: 0;
}

.footer-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 5px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3498DB, #2980B9);
  margin: 3px auto 0;
  border-radius: 2px;
}

/* FOOTER MENU */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 2px 0;
}

.footer-menu a {
  color: #BDC3C7;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.3s ease;
  display: block;
  padding: 1px 0;
}

.footer-menu a:hover {
  color: #3498DB;
  transform: translateX(2px);
  text-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
}

.footer-menu .fas.fa-chevron-right {
  color: #3498DB;
  margin-right: 4px;
  font-size: 8px;
  transition: all 0.3s ease;
}

.footer-menu a:hover .fas.fa-chevron-right {
  color: #2980B9;
  transform: translateX(1px);
}

/* FOOTER BOTTOM SECTION */
.footer-bottom {
  border-top: 1px solid rgba(52, 152, 219, 0.3);
  margin-top: 15px;
  padding-top: 8px;
  padding-bottom: 5px;
  text-align: center;
  font-size: 10px;
  color: #95A5A6;
  background: rgba(44, 62, 80, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-bottom .footer-nav {
  margin-top: 3px;
  display: flex;
  flex-direction: column; /* 🔹 Cambiado a columna */
  gap: 2px; /* 🔹 Espacio entre enlaces verticales */
  align-items: center;
}

.footer-bottom .footer-nav a {
  color: #7F8C8D;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 10px;
  display: block; /* 🔹 Para que ocupen toda la línea */
  padding: 1px 0;
}

.footer-bottom .footer-nav a:hover {
  color: #3498DB;
}

/* === BOTÓN TOGGLE IZQUIERDO FIJO Y CON APARICIÓN CONTROLADA === */
.footer-toggle {
  position: fixed;
  left: 25px;
  bottom: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(145deg, #3498DB, #2980B9);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
}

.footer-toggle.visible {
  opacity: 1;
  visibility: visible;
}

.footer:not(.hidden) ~ .footer-toggle.visible {
  bottom: calc(var(--footer-height, 160px) + 10px);
}

.footer.hidden ~ .footer-toggle.visible {
  bottom: 20px;
}

.footer.hidden ~ .footer-toggle i {
  transform: rotate(0deg);
}

.footer:not(.hidden) ~ .footer-toggle i {
  transform: rotate(180deg);
}

.footer-toggle:hover {
  background: linear-gradient(145deg, #2C3E50, #34495E);
  color: #3498DB;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

/* Animación del footer */
.footer {
  transition: max-height 0.6s ease, opacity 0.5s ease, padding 0.5s ease;
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
}
.footer.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-top: none;
}

/* ======================================================= */
/*   HERO — CARRUSEL MÓVIL / VIDEO SOLO EN DESKTOP        */
/* ======================================================= */
@media (max-width: 1024px) {

  /* El hero se adapta al alto natural de la imagen */
  .hero {
    height: auto !important;
    min-height: unset !important;
  }

  .hero-slider {
    height: auto !important;
    position: relative !important;
  }

  /* Todos los slides apilados, invisibles por defecto */
  .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 1s ease !important;
    z-index: 1 !important;
  }

  /* El slide activo visible y encima */
  .hero-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
    position: relative !important; /* solo el activo define el alto del contenedor */
  }

  /* La imagen define el alto del contenedor */
  .hero-poster {
    position: relative !important;
    inset: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .hero-poster-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
  }

  /* Overlay suave */
  .hero-slide::before {
    background: rgba(0, 0, 0, 0.20) !important;
    z-index: 3 !important;
  }

  /* Poster siempre visible */
  .hero-poster,
  .hero-poster.hero-poster-hidden {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Indicadores sobre la imagen */
  .hero-indicators {
    position: absolute !important;
    z-index: 10 !important;
    bottom: 14px !important;
  }

  /* Ocultar video y botón de sonido */
  .hero-video,
  .sound-toggle {
    display: none !important;
    visibility: hidden !important;
  }
}

  /* ============================================================ 
  BOTÓN CAMPANA DE NOTIFICACIONES 
  ============================================================ */

.notification-bell {
  position: fixed !important;
  bottom: 175px; /* Desktop: encima de .sala-float.admin */
  top: auto !important;
  left: 20px !important;
  z-index: 100;

  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  overflow: visible;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: floatPulse 3s ease-in-out infinite;

  /* Mismo estilo que .contactos-float */
  border: 3px solid #649FBE;
  background-color: white;
  color: #649FBE;
  box-shadow: 0 0 0 3px rgba(100, 159, 190, 0.1), 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Empleado (no-admin): misma altura que Facebook */
.notification-bell.no-admin {
  bottom: 100px !important;
}

.notification-bell i {
  font-size: 20px;
}

/* Hover — igual que .sala-float:hover */
.notification-bell:hover {
  width: 200px !important;
  border-radius: 35px !important;
  padding-left: 15px !important;
  padding-right: 20px !important;
  justify-content: flex-start !important;
  transform: translateY(-3px) scale(1.08) !important;
  z-index: 102 !important;
  background: linear-gradient(135deg, #649FBE 0%, #195C9A 100%) !important;
  color: white !important;
  box-shadow:
    0 15px 35px rgba(100, 159, 190, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.2) !important;
  border-color: #19507F !important;
  gap: 8px;
}

.notification-bell .notif-label {
  display: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-left: 6px;
  opacity: 0;
}

.notification-bell:hover .notif-label {
  display: inline-block !important;
  animation: fadeInText 0.4s ease 0.2s forwards !important;
}

/* Badge rojo de contador */
.notif-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 999;
  pointer-events: none;
  animation: pulse 1.4s infinite;
}

.notif-badge.fade-out {
  animation: fadeOut .5s forwards;
}
@keyframes fadeOut {
  to { opacity: 0; transform: scale(0); }
}

/* Sacudida cuando hay notificaciones nuevas */
.notification-bell.has-new i {
  animation: bellShake 1.2s ease infinite;
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0);      }
  15%       { transform: rotate(18deg);  }
  30%       { transform: rotate(-14deg); }
  45%       { transform: rotate(11deg);  }
  60%       { transform: rotate(-8deg);  }
  75%       { transform: rotate(5deg);   }
}

/* --- Panel desplegable --- */
.notif-panel {
  position: fixed !important;
  bottom: 175px !important;
  top: auto !important;
  left: 82px !important;
  z-index: 9998;

  width: 300px;
  max-height: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideRight .25s ease;
  transform-origin: left bottom;
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-15px) scale(.97); }
  to   { opacity: 1; transform: translateX(0)      scale(1);  }
}

.notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #649FBE 0%, #195C9A 100%);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  flex-shrink: 0;
}

.notif-panel__header i { margin-right: 6px; }

.notif-panel__close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: opacity .2s;
}
.notif-panel__close:hover { opacity: .7; }

.notif-panel__body {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}

.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f0f7ff; }

.notif-item strong {
  display: block;
  font-size: .83rem;
  color: #1a2e4a;
  margin-bottom: 3px;
}
.notif-item p {
  margin: 0;
  font-size: .76rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .notif-panel {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    bottom: 240px !important;
  }
}
/* ===================================================== */
/* CAMPANA Y PANEL — empleado (no-admin)                 */
/* Misma altura que .facebook-float (bottom: 100px)      */
/* ===================================================== */
.notification-bell.no-admin {
  bottom: 100px !important;
}

@media (max-width: 768px) {
  .notification-bell.no-admin {
    bottom: 80px !important;
  }
}

@media (max-width: 480px) {
  .notification-bell.no-admin {
    bottom: 70px !important;
  }
}