/* TFI Elisa Eventos - VMS Presentation Web
   Tema: Claro, Sobrio, Editorial y Profesional (Estándar Académico UTN)
   Diseñado bajo las reglas de calidad y anti-patrones de Impeccable
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* SOBER & PROFESSIONAL PALETTE */
  --bg-page: #f8fafc;        /* slate-50 */
  --bg-surface: #ffffff;     /* pure white */
  --bg-muted: #f1f5f9;       /* slate-100 */
  --bg-highlight: #eff6ff;   /* blue-50 */
  
  --text-primary: #0f172a;   /* slate-900 - High contrast WCAG AAA */
  --text-secondary: #334155; /* slate-700 */
  --text-muted: #64748b;     /* slate-500 */
  
  --border-subtle: #e2e8f0;  /* slate-200 */
  --border-strong: #cbd5e1;  /* slate-300 */
  
  --accent-navy: #1e3a8a;    /* blue-900 */
  --accent-brand: #0f766e;   /* teal-700 - sober, trustworthy */
  --accent-amber: #b45309;   /* amber-700 - academic gold */

  /* Concentric Radius: outer = inner + padding */
  --radius-card: 16px;
  --radius-inner: 10px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-page);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

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

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

/* Headings with clear typographic hierarchy */
h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text-primary);
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}

h4 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-secondary);
}

p, li {
  text-wrap: pretty;
  color: var(--text-secondary);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* SOBER SURFACE CARDS - No dark glows, no nested card clutter */
.pro-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 640px) {
  .pro-card {
    padding: 2.25rem;
  }
}

.pro-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px 0 rgba(15, 23, 42, 0.06);
}

/* Professional Top Navigation */
.pro-nav {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Image outline rule from design guidelines */
img.diagram-img {
  outline: 1px solid rgba(15, 23, 42, 0.12);
  outline-offset: -1px;
  border-radius: 8px;
  background-color: #ffffff;
}

/* Mermaid theme customization for light editorial mode */
.mermaid {
  display: flex;
  justify-content: center;
  background-color: #ffffff;
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  overflow-x: auto;
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mermaid:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.mermaid svg {
  max-width: 100% !important;
  height: auto !important;
}

/* Lightbox interactive stage */
#lightbox-svg-container svg {
  max-width: none !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Tactile buttons without excessive animations */
.pro-btn {
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.pro-btn:hover {
  transform: translateY(-1px);
}
.pro-btn:active {
  transform: scale(0.98);
}

/* Print styles for university presentation */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .pro-card, .mermaid {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
  }
}

/* Mobile Mockup Device Frame (Desktop Presentation Mode) */
.mobile-device-frame {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 40px;
  border: 12px solid #0f172a;
  background-color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}
.mobile-device-frame.fluid-mode {
  max-width: 100% !important;
  border-radius: 16px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}
.mobile-device-notch {
  width: 140px;
  height: 22px;
  background-color: #0f172a;
  margin: 0 auto;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.mobile-device-frame.fluid-mode .mobile-device-notch {
  display: none !important;
}
@media (max-width: 640px) {
  .mobile-device-frame {
    max-width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .mobile-device-notch {
    display: none !important;
  }
}
