@import url('./dataTables_ces.css');

/* Root variables for easy theming */
:root {
  --color-bg: #f5f7fb;
  --color-bg-light: #ffffff;
  --color-bg-dark: #061428;
  --color-primary: #2674ff;
  --color-primary-soft: #d7e4ff;
  --color-accent: #00c48c;
  --color-negative: #ff4d4f;
  --color-text: #1f2933;
  --color-text-soft: #6b7280;
  --color-border-soft: #e2e8f0;
  --color-standard-light: #0f7f4f;
  --color-standard: #0c4c1c;
  --color-gray-bootstrap: #6c757d;
  --color-green-a: #49ac17;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-card: 16px;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5 !important;
}

h1 {
  margin-block-start: 0em;
  margin-block-end: 0.2em;
  line-height: 1.5;
  font-size: 1.6rem;
}

h2 {
  font-size: 1.4rem;;
}

h3 {
  font-size: 1.1rem;
}

a {
  color: var(--color-green-a);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  text-align: justify;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

.logo-image{
  width: 50%;
  max-width: 100%;
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-standard);
  backdrop-filter: blur(8px);
}

.navbar {
  max-width: clamp(900px, 100%, 1200px);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative !important;  
  z-index: 10;
}

.navbar-logo a {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar-links a {
  color: #e5e7eb;
  position: relative;
  padding-bottom: 0.2rem;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  /*background: var(--color-primary);*/
  transition: width 0.2s ease-out;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
}

/* Hero */
.hero {
  max-width: clamp(900px, 100%, 1200px);
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
  /* display: grid; */
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content h3 {
  margin-bottom: 0rem;
  color: var(--color-standard);
}

.hero-content p {
  color: var(--color-text-soft);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  padding: 1rem 1rem;
}

.section-light {
  max-width: clamp(900px, 100%, 1200px) !important;
  margin: 0 auto !important;
  padding: 1.5rem 1.5rem 1.5rem !important;
  background: var(--color-bg);
}

.section-dark {
  margin: 0 auto !important;
  padding: 1rem 1.5rem 1rem !important;
  background: #000;
  color: #e5e7eb;
}

.section-dark p {
  color: #9ca3af;
}

.section-header {
  max-width: clamp(900px, 100%, 1152px) !important;
  margin: 0 auto !important;
  padding: 0rem 0rem 1rem !important;
}

.section-header h2 {
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-soft);
}

/* Widget container */
.widget-container {
  max-width: clamp(900px, 100%, 1200px);
  margin: 0 auto;
}

.widget-placeholder {
  background: rgba(15, 23, 42, 0.65);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  color: #e5e7eb;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

/* Footer */
.site-footer {
  background: var(--color-standard);
  color: #FFF;
}

.footer-content {
  max-width: clamp(900px, 100%, 1200px);
  margin: 0 auto;
  padding: 1rem 1.5rem 1rem !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-content p {
  font-size: 0.7rem;
}

.footer-content p.texto-mediano {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #9ca3af;
}

.notice-section {
  max-width: clamp(900px, 100%, 1200px);  /* igual que el hero y section-header */
  margin: 0 auto;
  padding: 1rem 1.5rem 1rem;
  display: grid;
  gap: 1rem;
  text-align: justify;
}

.notice-card {
  background: #ffffff;
  padding: 1.2rem 1.5rem;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  justify-self: left;
}

.notice-card p {
  margin: 0px;
}

.notice-card h3 {
  margin: 0px;
}

.methodology-text {
  max-width: clamp(900px, 100%, 1152px) !important;
  margin: 0 auto !important;
  padding: 0rem !important;
}

.methodology-text h3 {
  margin: 0;
}

.texto-latex {
  text-align: left;
  margin: 1em 0;
}

/* MathJax v2 */
.texto-latex .MathJax_Display {
  text-align: left !important;
}

/* MathJax v3 */
.texto-latex mjx-container[jax="CHTML"][display="true"] {
  justify-content: flex-start !important;
  text-align: left !important;
}

/* KaTeX */
.texto-latex MathJax CtxtMenu_Attached_0 {
  text-align: left !important;
}

@media (max-width: 900px) {
  /* layout: stack columns, reduce gaps and paddings slightly */
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
  }

  .hero-side {
    justify-content: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .cards-grid-3 {
    gap: 1rem;
  }

  .notice-section,
  .section-header,
  .news-list,
  .widget-container {
    padding: clamp(0.75rem, 2.5vw, 1rem);
  }
}

/* responsive: mobile (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 87.5%;
  }
  /* Navbar */
  .logo-image
  {
    width: 35%;
    max-width: 40%;
  }

  .hero-card {
    max-width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 0.5rem 1rem;
    max-width: 100%;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #000;
    flex-direction: column;
    margin-top: 0px;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.12s ease-out, opacity 0.12s ease-out;
  }
  .navbar-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar-links a {
    padding: 0.4rem 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .hero-content p {
    max-width: 100%;
  }

  .section {
    padding: 1rem !important; 
  }

  /* Cards / grids */
  .cards-grid,
  .cards-grid-3 {
    gap: 0.75rem;
  }
  .card,
  .notice-card,
  .news-item,
  .widget-placeholder {
    padding: 1rem;

  }

  .notice-section,
  .section-header,
  .news-list,
  .widget-container {
    padding: 0.75rem 1rem;
  }
  
  /* Panel */
  
  .dataTables_filter label {
    font-size: 1rem;
  }

  .data-panel {
    max-width: 100% !important;
  }

  /* Body de la tabla */
  .dataTables_wrapper table.dataTable tbody td {
    padding: 4px 6px ;
    height: 30px ;
    line-height: 1rem ;
  }

  /* Header */
  .dataTables_wrapper table.dataTable thead th {
    padding: 6px ;
    height: 26px ;
  }

  /* Scrollbar reducido */
  .dataTables_scrollBody::-webkit-scrollbar {
    height: 0px !important;
    padding: 0px !important;
  }

  .texto-latex {
    text-align: left;
    margin: 1em 0;
  }

  /* Footer */
  .footer-content {
    padding: 0.75rem 1rem !important;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .text-izq {
    text-align: left !important;
  }
}

/* FRANCO OCAMPO - CES BCSF */