/* Promega Web Services - Ultra-Minimal Corporate Onepage */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Modo Oscuro */
  --bg: #0b0c10;
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-meta: #e4e4e7; /* Dirección y contacto más claro y nítido en modo oscuro */
  --border: rgba(255, 255, 255, 0.16);
  --bar-bg: rgba(11, 12, 16, 0.88);
  --brand-carmine: #b9252a;

  /* Logo Promega en modo oscuro: Gris oscuro elegante y sobrio */
  --logo-dark-color: #71717a;
  --logo-red-color: #52525b;

  /* Logos aliados en modo oscuro: Gris claro nítido y visible */
  --partner-logo-filter: invert(1) brightness(0.85) contrast(1.1);
  --partner-logo-opacity: 0.85;

  /* Fondo de edificios en modo oscuro */
  --bg-photo-opacity: 0.55;
  --bg-photo-filter: contrast(1.15) brightness(0.95);
  --bg-photo-overlay: radial-gradient(circle at 60% 50%, rgba(11, 12, 16, 0.35) 0%, rgba(11, 12, 16, 0.72) 100%);
}

[data-theme="light"] {
  /* Modo Claro: Blanco ultra limpio con logo Bicolor oficial (#231f20 + #91181c) */
  --bg: #ffffff;
  --text-primary: #18181b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --text-meta: #27272a; /* Dirección y contacto más oscuro y legible en modo claro */
  --border: rgba(0, 0, 0, 0.12);
  --bar-bg: rgba(255, 255, 255, 0.92);
  --brand-carmine: #91181c;

  /* Logo Promega en modo claro: Bicolor corporativo */
  --logo-dark-color: #231f20;
  --logo-red-color: #91181c;

  /* Logos aliados en modo claro: Color/contraste original */
  --partner-logo-filter: none;
  --partner-logo-opacity: 0.95;

  /* Fondo de edificios en modo claro: Bien notorio, nítido y visible */
  --bg-photo-opacity: 0.45;
  --bg-photo-filter: grayscale(1) contrast(1.25) brightness(1.05);
  --bg-photo-overlay: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.8) 100%);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Background image original: Ciudad / Edificios oscuros en WebP HD */
.bg-photo {
  position: fixed;
  inset: 0;
  background-image: var(--bg-photo-overlay), url('images/background_hd.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--bg-photo-opacity);
  filter: var(--bg-photo-filter);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Header: Solo controles discretos */
.site-top {
  position: relative;
  z-index: 10;
  padding: 24px 36px;
  display: flex;
  justify-content: flex-end;
}

/* Píldora única unificada: [ EN / ☼ ] calibrada a múltiplos de 3 */
.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

[data-theme="light"] .control-pill {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--border);
}

.pill-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.pill-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .pill-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.pill-btn:active {
  transform: scale(0.96);
}

.pill-btn-icon {
  padding: 3px 6px;
}

.pill-divider {
  color: var(--border);
  font-size: 12px;
  user-select: none;
  padding: 0 3px;
}

/* Main Screen: Composición 1242px con Columna 1 al 30% y Columna 2 amplia (múltiplos de 3) */
.stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1242px;
  margin: auto;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.stage-divider {
  display: none;
}

@media (min-width: 860px) {
  .stage {
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    align-items: center;
    gap: 63px;
  }

  /* Línea vertical continua sutil que no roba atención */
  .stage-divider {
    display: block;
    width: 2px;
    height: 100%;
    min-height: 450px;
    max-height: 540px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.20) 15%,
      rgba(255, 255, 255, 0.20) 85%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
  }

  [data-theme="light"] .stage-divider {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.14) 15%,
      rgba(0, 0, 0, 0.14) 85%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

.logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 860px) {
  .logo-col {
    justify-content: flex-end;
    padding-right: 9px;
  }
}

.logo-col-content {
  width: 100%;
  max-width: 405px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.logo-vector-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-vector-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
}

[data-theme="light"] .logo-vector-wrap svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.06));
}

/* Marcas aliadas fijas bajo el logo de Promega: alineadas exactamente al ancho de Promega */
.sub-brands {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 6px;
  border-top: none;
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  opacity: var(--partner-logo-opacity, 0.9);
  filter: var(--partner-logo-filter, none);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.brand-anchor:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.brand-anchor img {
  max-height: 57px;
  max-width: 135px;
  width: auto;
  object-fit: contain;
}

.text-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 720px;
}

@media (min-width: 860px) {
  .text-col {
    padding-left: 9px;
  }
}

/* Tipografía igualada y en múltiplos de 3: 15px con 24px de line-height */
.copy {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}

.copy strong {
  color: var(--text-primary);
  font-weight: 600;
}

.copy em {
  font-style: normal;
  color: var(--text-primary);
}

/* Bloque de contacto igualado a la misma tipografía de 15px / 24px en múltiplos de 3 */
.meta-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-row svg {
  flex-shrink: 0;
  opacity: 0.85;
  color: var(--text-meta);
}

.meta-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.meta-row a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

@media (max-width: 859px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }
  .stage {
    padding-block: 48px;
  }
  .text-col {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }
  .sub-brands {
    gap: 18px;
  }
}
