/* ===========================
   Variables de estilo GNOMON
   =========================== */
:root {
  --bg: #f5f2e8;        /* Beige GNOMON */
  --bg-alt: #ebe5d4;    /* Beige más oscuro */
  --fg: #1f2937;        /* Texto principal */
  --muted: #6b7280;     /* Texto secundario */
  --accent: #b5895a;    /* Dorado tierra */
  --accent-soft: #e1c8a4;
  --border-soft: #ddd3c0;

  --radius-full: 999px;
  --radius-lg: 16px;

  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* ===========================
   Reset básico
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===========================
   HEADER + NAV
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 232, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-gnomon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.brand-text h1 {
  margin: 0;
  font-size: 18px;
}

.brand-text p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 14px;
}

.main-nav a {
  text-decoration: none;
  color: var(--fg);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: 0.2s;
}

.main-nav a:hover {
  background-color: var(--accent-soft);
  transform: translateY(-2px);
}

/* ===========================
   HERO PRINCIPAL
   =========================== */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  background: #000;
  margin-bottom: 40px;
}

/* Imagen del hero */
.hero-bg {
  background-image: url("assets/img/hero_laboratorio.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
}

/* Contenido encima del fondo */
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 600px;
  padding: 24px;
  background: rgba(245, 242, 232, 0.75);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.hero-text h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border-soft);
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

/* ===========================
   PRESENTACIÓN EMPRESA
   =========================== */
.presentacion {
  position: relative;
  padding: 80px 0;
  margin-bottom: 40px;
}

.presentacion-bg {
  background-image: url("assets/img/presentacion_empresa.png");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.presentacion-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  background: rgba(245, 242, 232, 0.65);
  backdrop-filter: blur(4px);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.presentacion-content h3 {
  margin-top: 0;
  font-size: 22px;
}

/* ===========================
   SECCIONES GENERALES
   =========================== */
.section {
  padding: 40px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* ===========================
   NOTICIAS
   =========================== */
.section-noticias {
  padding: 40px 0;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.card-noticia {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: 0.2s;
}

.card-noticia:hover {
  transform: translateY(-4px);
}

.card-noticia img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-noticia h4 {
  margin: 12px 16px 6px;
  font-size: 18px;
}

.card-noticia p {
  margin: 0 16px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
}

.footer-small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero {
    height: auto;
    padding: 40px 0;
  }

  .hero-text {
    margin-top: 40px;
  }
}
