/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #102027;
  background: #f6f8fb;
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Contenedor genérico */
.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

/* ---------- SPLASH / POPUP INICIAL ---------- */

.splash-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.splash-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.5rem;
  padding: 1.8rem 1.6rem 1.5rem;
  max-width: 420px;
  width: min(420px, 100% - 3rem);
  color: #e5f6ff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(14px);
}

.splash-logo {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #7dd3fc;
  margin-bottom: 0.75rem;
}

.splash-line {
  font-size: 0.98rem;
  margin-bottom: 1rem;
  min-height: 2.4em;
}

.splash-cursor {
  display: inline-block;
  margin-left: 0.12rem;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.splash-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.splash-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.7s ease-out;
}

.splash-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.splash-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e1e6f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1.5rem;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #134e6f;
}

/* Navegación */
.main-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 0.25rem 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0d8aa6, #44c4a1);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ---------- VISTAS ---------- */

.view {
  display: none;
}

.view.active {
  display: block;
}

/* ---------- HERO ---------- */

.hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top left, #e3f5ff 0, transparent 50%),
    radial-gradient(circle at top right, #e3fff7 0, transparent 55%),
    #f6f8fb;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #0d8aa6;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw + 1.5rem, 2.9rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: #073b4c;
}

/* Frase para industria farmacéutica */
.hero-tagline {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #cde5f3;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  color: #0d8aa6;
  margin-bottom: 0.9rem;
}

.hero-lead {
  font-size: 1.02rem;
  color: #425869;
  max-width: 38rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out,
    background-color 0.1s ease-out,
    border-color 0.1s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #0d8aa6, #44c4a1);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(13, 138, 166, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(13, 138, 166, 0.3);
}

.btn.ghost {
  background: #ffffff;
  color: #0d8aa6;
  border-color: #c0d8e8;
}

.btn.ghost:hover {
  background: #f2f8fc;
}

/* Contenedor de imágenes tipo tarjeta */
.hero-image-placeholder {
  border-radius: 1.5rem;
  border: 1px dashed #b5cad9;
  background: rgba(255, 255, 255, 0.9);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6c7f90;
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder.small {
  min-height: 220px;
}

/* Imágenes dentro de los placeholders */
.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.3rem;
  display: block;
}

.hero-image-placeholder.small img {
  border-radius: 1rem;
}

/* ---------- SECCIONES GENERALES ---------- */

.section {
  padding: 3rem 0;
}

.section-muted {
  background:
    linear-gradient(rgba(237, 242, 247, 0.96), rgba(237, 242, 247, 0.98)),
    url("images/background-inmuno.png");
  background-size: cover;
  background-position: center;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  color: #073b4c;
}

.section p {
  margin-bottom: 0.8rem;
  color: #3f5262;
}

/* Bloques de lista */
.list-block {
  margin: 1.5rem 0 2rem;
}

.list-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #134e6f;
}

.list-block ul {
  list-style: none;
  padding-left: 0;
}

.list-block li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.list-block li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.6rem;
  color: #0d8aa6;
  margin-top: 0.32rem;
}

/* Sublista interna */
.sublist {
  list-style: none;
  margin-top: 0.3rem;
  margin-left: 0;
}

.sublist li {
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.sublist li::before {
  content: "–";
  left: 0;
  font-size: 0.8rem;
  color: #6c7f90;
}

/* Listas simples sin bullets personalizados */
.list-simple {
  list-style: disc;
  margin-left: 1.2rem;
  margin-bottom: 0.8rem;
  color: #3f5262;
  font-size: 0.95rem;
}

.list-mini {
  list-style: disc;
  margin-left: 1.1rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #4b5c6d;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.2rem;
}

.info-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid #dde6f1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #124559;
}

.info-card p {
  font-size: 0.92rem;
  color: #465769;
  margin-bottom: 0.6rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d8aa6;
}

/* ---------- SEGUNDO FORO INMUNODERMA ---------- */

.section-header {
  max-width: 720px;
  margin-bottom: 1.7rem;
}

.section-intro {
  color: #3f5262;
  font-size: 0.98rem;
}

/* Layout dos columnas */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.two-column-main h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #134e6f;
}

.two-column-main p {
  margin-bottom: 0.7rem;
}

/* Grid simple de datos (fecha, horario, etc.) */
.data-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem 1.5rem;
  margin: 0.8rem 0 1.4rem;
  font-size: 0.9rem;
}

.data-grid-simple .data-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8a9b;
  margin-bottom: 0.1rem;
}

.data-grid-simple .data-value {
  display: block;
  color: #102027;
}

/* Panel lateral */
.two-column-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Ajuste visual para la tarjeta del foro */
.foro-image {
  border-style: dashed;
}

/* Slider del foro – versión simple */
.foro-slider {
  width: 100%;
}

/* Todas las imágenes ocultas por defecto */
.foro-slider img {
  width: 100%;
  height: auto;
  display: none;
  border-radius: 1rem;
  object-fit: cover;
}

/* Solo la activa se muestra */
.foro-slider img.active {
  display: block;
}

/* Panel informativo */
.info-panel {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #dde6f1;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.info-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #124559;
}

/* Lista de datos clave */
.data-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0.2rem;
}

.data-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.6rem;
  row-gap: 0.25rem;
  align-items: baseline;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.data-label {
  font-weight: 600;
  color: #6b7c8f;
  white-space: nowrap;
}

.data-value {
  color: #334861;
}

/* Variante cuando son solo bullets de texto */
.data-list.bullets li {
  grid-template-columns: 1fr;
}

.data-list.bullets .data-value {
  position: relative;
  padding-left: 1rem;
}

.data-list.bullets .data-value::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: #0d8aa6;
}

/* Pills / etiquetas */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e4f3ff;
  color: #0b5674;
  border: 1px solid #c3e1f7;
}

/* Notas pequeñas */
.small-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #6c7f90;
}

/* Franja final */
.info-strip {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  background: linear-gradient(120deg, #0d8aa6 0, #44c4a1 100%);
  color: #e9f7ff;
}

.info-strip h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.info-strip p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- CAMPAÑA NACIONAL ---------- */

.campaign-grid {
  margin-top: 1.5rem;
}

.campaign-blocks {
  margin-top: 2rem;
}

.campaign-grid.bottom {
  margin-top: 2rem;
}

.campaign-strip {
  margin-top: 2rem;
}

/* ---------- FOOTER ---------- */

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 1.2rem;
  background: #0b1724;
  color: #d9e2ec;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.site-footer a {
  color: #d9e2ec;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Tarjeta de contacto */
.contact-card {
  max-width: 360px;
}

.contact-card details {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.9rem;
  border: 1px solid #1f2937;
  padding: 0.9rem 1rem;
  color: #e5edf7;
}

.contact-card summary {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  list-style: none;
}

.contact-card summary::-webkit-details-marker {
  display: none;
}

.contact-team-title {
  margin-top: 0.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-team {
  list-style: disc;
  margin-left: 1.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
}

.contact-email-label {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.contact-card a {
  color: #7dd3fc;
}

/* Contenedor de logos en el footer */
.footer-placeholder {
  min-height: 80px;
  min-width: 220px;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #dde6f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 1.4rem;
  gap: 0.8rem 1.4rem;
}

/* Logos más grandes */
.footer-placeholder img {
  max-height: 70px;
  display: inline-block;
}

/* Disclaimer */
.disclaimer {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: #9fb3c8;
}

.disclaimer details {
  cursor: pointer;
}

.disclaimer summary {
  list-style: none;
  text-decoration: underline;
  text-decoration-style: dotted;
  margin-bottom: 0.3rem;
}

.disclaimer summary::-webkit-details-marker {
  display: none;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.7rem;
  font-size: 0.8rem;
  color: #9fb3c8;
}

/* ---------- RESPONSIVE / MÓVIL ---------- */

@media (max-width: 900px) {
  .container {
    width: min(100% - 2.4rem, 100%);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column-side {
    flex-direction: column;
  }

  .data-grid-simple {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 2rem, 100%);
  }

  .hero {
    padding: 2.4rem 0 2rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 2.4rem 0;
  }

  .data-grid-simple {
    grid-template-columns: 1fr;
  }

  .hero-image-placeholder {
    min-height: 190px;
  }

  .footer-placeholder {
    justify-content: center;
  }

  .main-nav {
    font-size: 0.85rem;
  }
}
