@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-title: 'Outfit', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Paleta Clara Premium */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --border-light: #e2e8f0;
  --border-focus: #6366f1;
  
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 40px -8px rgba(79, 70, 229, 0.16), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

.font-title {
  font-family: var(--font-title);
  letter-spacing: -0.03em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ============================================================
   SWIPER 3D COVERFLOW (3 TARJETAS COMPLETAS, SIN CORTAR)
   ============================================================ */
.swiper-coverflow-container {
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.swiper-slide {
  height: auto;
  box-sizing: border-box;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

/* En móvil/tablet se ajusta por Swiper; las tarjetas laterales se ven completas */
.card-3d-wrapper {
  background: #ffffff;
  border-radius: 1.75rem;
  border: 2px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
}

.card-3d-wrapper:hover {
  border-color: #818cf8;
}

.card-3d-wrapper:hover i[data-lucide="arrow-right"] {
  transform: translateX(4px);
}

@media (min-width: 1024px) {
  .card-3d-wrapper {
    max-width: 100%;
  }
}

/* Tarjeta activa del centro: sutil elevación y borde destacado */
.swiper-slide-active .card-3d-wrapper {
  border-color: #6366f1;
  box-shadow: 0 20px 40px -8px rgba(79, 70, 229, 0.22), 0 6px 18px -3px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px) scale(1.02);
  z-index: 10;
}

/* Tarjetas laterales: 100% legibles, completas y nítidas */
.swiper-slide-prev .card-3d-wrapper,
.swiper-slide-next .card-3d-wrapper {
  opacity: 0.95;
  border-color: #e2e8f0;
  transform: scale(0.98);
}

/* Glare superior */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.card-glare-ai {
  background: linear-gradient(90deg, #4f46e5, #8b5cf6, #06b6d4);
}

.card-glare-logistics {
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8);
}

.card-glare-construction {
  background: linear-gradient(90deg, #d97706, #f59e0b, #ef4444);
}

.card-glare-admin {
  background: linear-gradient(90deg, #334155, #64748b, #3b82f6);
}

.card-glare-publicist {
  background: linear-gradient(90deg, #ec4899, #f43f5e, #fb923c);
}

.card-glare-public {
  background: linear-gradient(90deg, #059669, #10b981, #0284c7);
}

/* ============================================================
   FLECHAS DE NAVEGACIÓN ESTABLES (100% FIJAS BAJO EL CURSOR)
   ============================================================ */
.carousel-nav-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 30;
  user-select: none;
  -webkit-user-select: none;
  /* Transición suave de color y sombra SIN NINGÚN translate que desplace el botón */
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  transform: none !important; /* Nunca cambia de posición física */
}

/* Hover: El botón se ilumina con halo suave pero permanece inmóvil */
.carousel-nav-btn:hover {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 10px 24px -2px rgba(79, 70, 229, 0.45) !important;
  transform: none !important; /* Totalmente estático: nunca se escapa del cursor */
}

/* Animación sutil del icono interno: el botón exterior se queda fijo */
.carousel-nav-btn i,
.carousel-nav-btn svg {
  transition: transform 0.2s ease;
  display: block;
}

.carousel-btn-prev:hover i,
.carousel-btn-prev:hover svg {
  transform: translateX(-3px);
}

.carousel-btn-next:hover i,
.carousel-btn-next:hover svg {
  transform: translateX(3px);
}

.carousel-nav-btn:active {
  background-color: #3730a3 !important;
  border-color: #3730a3 !important;
  box-shadow: 0 2px 8px rgba(55, 48, 163, 0.4) !important;
  transform: scale(0.96) !important;
}

/* Dots del carrusel */
.carousel-dot {
  height: 9px;
  width: 9px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.carousel-dot.active {
  width: 30px;
  background-color: #4f46e5;
}

/* ============================================================
   HOJA ATS A4 (CV DESCARGABLE)
   ============================================================ */
.ats-sheet-container {
  background: #e2e8f0;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.ats-sheet {
  width: 210mm;
  min-height: 297mm;
  padding: 18mm 18mm;
  margin: 0 auto;
  background: #ffffff;
  color: #111827;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 9.8pt;
  line-height: 1.45;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  box-sizing: border-box;
}

/* Configuración de Impresión A4 sin URL ni Numeración de Navegador */
@page {
  size: A4 portrait;
  margin: 0mm;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden;
  }

  #ats-pdf-printable,
  #ats-pdf-printable * {
    visibility: visible;
  }

  #ats-pdf-printable {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10mm 13mm !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }
}

/* Teleprompter en Modo Creador */
.teleprompter-box {
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: 1rem;
  box-shadow: 0 8px 30px -4px rgba(79, 70, 229, 0.08);
}

.teleprompter-box.running {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 12px 32px -4px rgba(79, 70, 229, 0.12);
}

/* Lightbox de evidencias */
.lightbox-backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animación de error al fallar contraseña */
@keyframes shake-auth {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake-animation {
  animation: shake-auth 0.35s ease-in-out;
}
