/* tailwind.css - versión actualizada */
/* Nota: Hoja minimalista inspirada en Tailwind para un look institucional */

:root {
  --uma-navy: #283b59;
  --uma-navy-2: #324a72;
  --text: #1a202c;
  --bg: #f9fafb;
  --muted: #6b7280;
  --link: #0b70e0;
  --card: #ffffff;
  --cta: rgba(167,199,231,.15);
  --cta-border: #a7c7e7;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
}

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header with ocean hero image */
header.hero {
  background: linear-gradient(0deg, rgba(40,59,89,.45), rgba(40,59,89,.60)),
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
  color: white;
  padding: 1.2rem 0 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08);
}

/* Bring brand/menu closer to the left on header only */
.header-tight {
  padding-left: .25rem;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand h1 {
  font-size: 1.75rem;
  margin: 0;
  line-height: 1.2;
}

.brand .subtitle {
  margin: .25rem 0 0;
  opacity: .95;
  font-size: .95rem;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.uma-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.menu-link {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  color: #d9e6f7;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.menu-link:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,.10);
}

.menu-link.active {
  color: #ffffff;
  background-color: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.30);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  text-decoration: underline;
}

.menu-link.cta {
  border-color: var(--cta-border);
  background-color: var(--cta);
  color: #ffffff;
}

.menu-link.cta:hover {
  background-color: rgba(167,199,231,.25);
  box-shadow: 0 0 0 2px rgba(167,199,231,.25);
  transform: translateY(-1px);
}

.menu-link.cta.active {
  /* ensure active wins when CTA is also active */
  background-color: rgba(167,199,231,.35);
  border-color: #cfe1f4;
}

/* Main content */
main h2 {
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}

.prose p {
  line-height: 1.8;
  margin: 0 0 1rem;
  text-align: justify; /* requested test */
  text-justify: inter-word;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: .5rem;
}

/* Equation chips */
.prose .equations code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: .375rem;
  padding: .15rem .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
}

/* Fixed footer at bottom with safe padding for content */
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--uma-navy);
  color: white;
  padding: .8rem 0;
  box-shadow: 0 -6px 16px rgba(0,0,0,.08);
  z-index: 20;
}
.main-with-footer {
  padding-bottom: 64px; /* reserve space ~ footer height */
}

footer p {
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

/* Cookie banner: minimal, above footer */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 56px; /* sit just above footer */
  z-index: 30;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255,255,255,.98);
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: .75rem .75rem 0 0;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.cookie-inner p {
  margin: 0;
  font-size: .95rem;
}
.cookie-link {
  color: var(--link);
  text-decoration: underline;
}
.cookie-accept {
  background: var(--uma-navy-2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  padding: .5rem .9rem;
  border-radius: .5rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-accept:hover {
  filter: brightness(1.05);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .menu { width: 100%; }
  .brand { width: 100%; }
  .cookie-inner {
    border-radius: 0;
  }
}


/* Fixed header (like footer) */
header.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

/* Reserve space for fixed header via JS-populated CSS var */
body {
  padding-top: var(--header-space, 96px);
}

/* Brand mark: circular badge with thermometer + waves (SVG) */
/* Brand mark: UMA shield inside circular badge */
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url('EscudoUma2.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}

