/* ==========================================================================
   SISTEMA DE DISEÑO OFICIAL: CENTRO INTEGRAL TALENTIA
   Colores institucionales:
   - Primario: #00a8cc (Turquesa vibrante)
   - Secundario: #1d3557 (Azul marino profundo corporativo)
   - Acento Pastel: #8fe1c8 (Turquesa pastel Talentia)
   - Fondo: #f4f9f9 (Limpio, luminoso y profesional)
   - Tipografía: 'Outfit' (Encabezados) y 'Open Sans' (Cuerpo)
   ========================================================================== */

:root {
  /* Paleta Corporativa Talentia */
  --primary-color: #00a8cc;
  --primary-light: #00dbe9;
  --primary-dark: #008ba3;
  --secondary-color: #1d3557;
  --secondary-dark: #112239;
  --secondary-light: #2c4a75;
  --accent-color: #b2ebf2;
  --pastel-turquoise: #8fe1c8;

  /* Estados y Alertas */
  --color-success: #10b981;        /* Verde Esmeralda (Disponible) */
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-danger: #e63946;         /* Rojo Talentia (Ocupado) */
  --color-danger-bg: rgba(230, 57, 70, 0.08);
  --color-warning: #f59e0b;        /* Ámbar */
  --color-purple: #7c3aed;

  /* Fondos y Superficies */
  --bg-color: #f4f9f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --border-subtle: #e2e8f0;
  --border-focus: rgba(0, 168, 204, 0.45);

  /* Texto */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sombras y Elevación */
  --shadow-sm: 0 2px 8px rgba(29, 53, 87, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 53, 87, 0.08);
  --shadow-lg: 0 16px 40px rgba(29, 53, 87, 0.12);
  --shadow-glow-primary: 0 0 24px rgba(0, 168, 204, 0.25);

  /* Radios y Transiciones */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESETS Y ESTILOS BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.talentia-theme {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(0, 168, 204, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(29, 53, 87, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   BARRA DE MARCA SUPERIOR OFICIAL TALENTIA
   ========================================================================== */
.talentia-brand-bar {
  background: var(--secondary-color);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.brand-bar-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.brand-bar-inner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #e2e8f0;
  text-align: center;
}

.brand-bar-inner span i {
  color: var(--primary-light);
}

.talentia-site-link {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.talentia-site-link:hover {
  background: var(--primary-color);
  color: #fff;
}

.app-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex: 1;
}

/* ==========================================================================
   CABECERA PRINCIPAL / NAVBAR TALENTIA
   ========================================================================== */
.app-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0.75rem;
  z-index: 100;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Logo Talentia */
.talentia-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.talentia-logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
  flex-shrink: 0;
}

.talentia-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.talentia-logo-text .logo-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

.talentia-logo-text .logo-subtitle {
  font-size: 0.82rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.talentia-logo-text .logo-subtitle strong {
  color: var(--primary-dark);
}

/* Reloj Digital */
.header-center {
  display: flex;
  justify-content: center;
}

.live-clock-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.clock-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.clock-details {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.03em;
}

.clock-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.status-indicator {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: var(--text-muted);
}

.status-indicator.in-class {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

.status-indicator.outside-class {
  background: rgba(0, 168, 204, 0.12);
  color: var(--primary-dark);
}

/* Acciones de Cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-external-talentia {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-external-talentia:hover {
  background: #e2e8f0;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-admin-access {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  background: var(--secondary-color);
  border: 1px solid var(--secondary-dark);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.15);
}

.btn-admin-access:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}

/* ==========================================================================
   HERO / BANNER ESTILO TALENTIA
   ========================================================================== */
.talentia-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #174066 60%, #0d5f75 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.talentia-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 219, 233, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text-block {
  flex: 1;
  max-width: 750px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-text-block h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--pastel-turquoise);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.hero-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.hero-cta-box {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.legend-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legend-card h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.4rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-dot.green {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.legend-dot.red {
  background: var(--color-danger);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
}

.legend-dot.gray {
  background: #94a3b8;
}

/* ==========================================================================
   SIMULADOR DE HORAS FLOTANTE
   ========================================================================== */
.time-simulator-panel {
  background: #ffffff;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 95;
  animation: slideInDown 0.25s ease-out;
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.simulator-header h4 {
  font-size: 0.95rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.simulator-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.simulator-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.form-group-mini label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.form-control-mini {
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
}

.simulator-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   BOTONES Y ELEMENTOS DE FORMULARIO
   ========================================================================== */
button {
  font-family: inherit;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 168, 204, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #00778c);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 168, 204, 0.4);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--secondary-color);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-danger:hover {
  background: #c5222f;
}

.btn-danger-outline {
  background: transparent;
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.35);
}

.btn-danger-outline:hover {
  background: rgba(230, 57, 70, 0.08);
  border-color: #e63946;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.4rem;
}

.form-group label .req {
  color: var(--color-danger);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.18);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }

/* ==========================================================================
   MODALES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 34, 57, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-sm {
  max-width: 440px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

.bg-talentia { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.bg-talentia-navy { background: linear-gradient(135deg, var(--secondary-color), #2c4a75); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-blue { background: linear-gradient(135deg, #0284c7, #0369a1); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.modal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--secondary-color);
  margin-bottom: 0.1rem;
}

.modal-title-wrap p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.btn-modal-close:hover {
  color: var(--secondary-color);
}

.modal-form, .modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.25rem;
}

.modal-footer.justify-between {
  justify-content: space-between;
}

.footer-right-buttons {
  display: flex;
  gap: 0.85rem;
}

.slot-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
}

.slot-summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #166534;
  font-weight: 500;
}

.slot-summary-item.badge-duration {
  font-weight: 700;
  color: #15803d;
}

.privacy-note {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.75rem;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-show-pwd {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.form-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.form-hint code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--primary-dark);
  font-weight: 600;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
}

.alert-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Modal de Éxito */
.success-illustration {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  border: 2px solid var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-success);
}

.text-center {
  text-align: center;
}

.success-details-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0 0.5rem;
  text-align: left;
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

/* ==========================================================================
   PIE DE PÁGINA CORPORATIVO TALENTIA
   ========================================================================== */
.talentia-footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 3.5rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--primary-color);
}

.talentia-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1380px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.talentia-footer .footer-section h4 {
  color: #fff;
  margin-bottom: 1.15rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.35rem;
}

.talentia-footer .footer-section p {
  color: #cbd5e1;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.talentia-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.talentia-footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.talentia-footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

.talentia-footer .copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
  max-width: 1380px;
  margin: 0 auto;
}

.talentia-footer .copyright span {
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP OFICIAL TALENTIA
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-whatsapp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==========================================================================
   TOAST NOTIFICACIONES
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #fff;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  background: #065f46;
  border: 1px solid #10b981;
}

.toast.error {
  background: #991b1b;
  border: 1px solid #f87171;
}

.toast.info {
  background: var(--secondary-color);
  border: 1px solid var(--primary-color);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .header-main-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
  .app-header {
    padding: 0.5rem 0.75rem;
  }
  .header-center {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -0.25rem;
  }
  .live-clock-card {
    padding: 0.35rem 0.75rem;
    min-width: unset;
  }
  .talentia-logo-wrap {
    gap: 0.5rem;
  }
  .talentia-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .logo-name {
    font-size: 1.25rem;
  }
  .logo-subtitle {
    font-size: 0.75rem;
  }
  .btn-external-talentia {
    padding: 0.5rem 0.65rem;
  }
  .btn-external-talentia span {
    display: none; /* Ocultar texto, mantener solo el icono de la casa en móvil */
  }
  .talentia-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 0.75rem;
  }
  .brand-bar-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .modal-footer.justify-between {
    flex-direction: column-reverse;
  }
}
