
/* ================= BASE ================= */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  
}

/* Logo en navbar */
.navbar-logo {
  height: 50px;          /* altura exacta para navbar */
  width: auto;
  object-fit: contain;
  display: block;
}
.main-navbar {
  height: 64px;
}

.info-card p {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  font-weight: 600;
  color: #111827;
}


/* ================= NAVBAR ================= */
.main-navbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  width: 230px;
  height: calc(100vh - 64px);
  background: #f8f9fa;
  padding-top: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 8px;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.sidebar a i {
  margin-right: 10px;
}

.sidebar a:hover,
.sidebar a.active {
  background: #e9ecef;
  border-left: 4px solid #0d6efd;
}

/* ================= MAIN CONTENT ================= */
.main-content {
  margin-left: 230px;
  padding-top: 80px;
  padding-left: 40px;
  padding-right: 40px;
}

/* ================= HERO ================= */
/* ================= HERO CON IMAGEN ================= */
.hero-section {
  position: relative;
  height: 75vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  margin-bottom: 40px;
  overflow: hidden;
}

/* Capa oscura suave para que el texto se lea bien */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
  display: flex;
  align-items: center;
}

/* Contenido del hero */
.hero-content {
  max-width: 700px;
  padding: 60px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Caja de advertencia */
.hero-alert {
  margin-top: 25px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.15);
  border-left: 5px solid #0d6efd;
  border-radius: 10px;
  font-weight: 500;
}

/* ================= SECTIONS ================= */

.section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1f2933;
  margin-bottom: 20px;
  line-height: 1.25;
}
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background-color: #2563eb;
  margin-top: 10px;
  border-radius: 2px;
}
@media (max-width: 576px) {
  .section h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
  }
}


/* ================= CARDS ================= */
.info-card {
  padding: 30px;
  border-radius: 16px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* ================= IMAGES ================= */
.content-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* ================= BLOQUES DE CÁNCER ================= */
.cancer-block {
  margin-bottom: 32px;
}

.cancer-block.reverse {
  flex-direction: row-reverse;
}

/* Sub tarjetas internas */
.sub-card {
  margin-top: 20px;
  padding: 15px 18px;
  background: #f8f9fa;
  border-left: 4px solid #0d6efd;
  border-radius: 10px;
}

/* Títulos */
.info-card h3 {
  margin-bottom: 15px;
  font-weight: 600;
}


/* ================= DETECCIÓN ================= */
.detection-block {
  margin-bottom: 32px;
}

/* Tarjeta destacada Recordemos */
.detection-remember {
  margin: 60px 0;
  padding: 30px;
  background: #e7f1ff;
  border-left: 6px solid #0d6efd;
  border-radius: 18px;
}

/* Imagen de detección */
.detection-image {
  margin-top: 40px;
}
/* ================= SIGNOS ================= */
.signs-block {
  margin-bottom: 32px;
}

/* Tarjeta de lista */
.signs-list-card {
  margin-top: 40px;
}

/* Lista visual */
.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #0d6efd;
  font-weight: 500;
  line-height: 1.6;
}
@media (max-width: 576px) {
  body {
    font-size: 15px;
  }

  h2 {
    font-size: 1.7rem;
  }
}

/* ================= TRATAMIENTO ================= */
.treatment-intro {
  margin-bottom: 60px;
}

.treatment-grid {
  margin-bottom: 32px;
}

.treatment-traditional {
  margin-top: 40px;
}
* Lista visual */
.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #0d6efd;
  font-weight: 500;
}
/* ================= PREVENCIÓN ================= */
.prevention-grid {
  margin-top: 32px;
}
/* ================= GENÉTICA ================= */

/* Portada sin imagen */
.genetics-hero {
  margin-bottom: 80px;
}

.genetics-hero-box {
  padding: 80px 60px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 24px;
  border-left: 8px solid #0d6efd;
}

.genetics-hero-box h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.genetics-hero-box p {
  font-size: 1.1rem;
  max-width: 800px;
  color: #444;
}

/* Link interactivo cromosomas */
.genetics-link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px dotted #0d6efd;
}

.genetics-link:hover {
  text-decoration: none;
  color: #084298;
  border-bottom-style: solid;
}
/* ================= CUADROS INTERACTIVOS ================= */
.info-trigger {
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px dotted #0d6efd;
}

.info-trigger:hover {
  color: #084298;
}

.info-box {
  display: none;
  margin: 20px 0 40px 0;
  padding: 20px 24px;
  background: #f8f9fa;
  border-left: 5px solid #0d6efd;
  border-radius: 14px;
  max-width: 600px;
}

/* Imagen genética */
.genetic-image-block {
  margin: 32px;
}

.image-caption {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #555;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}

/* Doble golpe */
.double-hit {
  margin-top: 60px;
}
/* ================= HERENCIA INTERACTIVA ================= */
.inheritance-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.inheritance-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  background: #f1f3f5;
  font-weight: 600;
  cursor: pointer;
}

.inheritance-btn.active {
  background: #0d6efd;
  color: #fff;
}

.inheritance-content {
  display: none;
}

.inheritance-content.active {
  display: block;
}
/* ================= BOTONES VER MÁS ================= */
.more-links {
  display: flex;
  gap: 16px;              /* separación entre botones */
  margin-top: 20px;      /* aire respecto al contenido */
  flex-wrap: wrap;       /* se acomodan bien en móvil */
}

.more-links .btn {
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 500;
}
/* Separación entre grandes bloques */
.inheritance-content h3 {
  margin-top: 50px;
}
/* ================= HERENCIA MENDELIANA ================= */
.mendelian {
  margin-top: 60px;
  padding: 60px;
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
  border-radius: 30px;
  border-left: 8px solid #0d6efd; /* azul genética clásica */
}

/* Encabezado */
.mendelian-header {
  max-width: 800px;
  margin-bottom: 50px;
}

.mendelian-header h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.mendelian-header p {
  font-size: 1.1rem;
  color: #444;
}

/* Tarjetas internas */
.mendelian-card {
  background: #ffffff;
  border-left: 5px solid #0d6efd;
  margin-bottom: 40px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Títulos */
.mendelian-card h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

/* Imagen + leyenda */
.mendelian-image-block {
  margin: 60px 0;
}

.mendelian-caption {
  background: #eef4ff;
  border-left: 6px solid #0d6efd;
}
/* Ajuste header mendeliano sin texto */
.mendelian-header {
  margin-bottom: 40px;
}

.mendelian-header h3 {
  font-size: 2.1rem;
  font-weight: 700;
}

/* ================= HERENCIA NO MENDELIANA ================= */
.non-mendelian {
  margin-top: 60px;
  padding: 60px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 30px;
  border-left: 8px solid #198754; /* verde = ambiente / interacción */
}

/* Encabezado especial */
.non-mendelian-header {
  max-width: 800px;
  margin-bottom: 50px;
}

.non-mendelian-header h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.non-mendelian-header p {
  font-size: 1.1rem;
  color: #444;
}

/* Tarjetas internas */
.non-mendelian-card {
  background: #ffffff;
  border-left: 5px solid #198754;
  margin-bottom: 40px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Títulos de tarjetas */
.non-mendelian-card h4 {
  margin-bottom: 12px;
  font-weight: 600;
}
.non-mendelian .btn {
  margin-top: 15px;
  border-radius: 30px;
  padding: 10px 24px;
}
.non-mendelian-summary {
  background: #eaf7f1;
  border-left: 6px solid #198754;
  margin-top: 60px;
}
/* ================= FAMILIOGRAMA ================= */
.familiogram-block {
  margin-bottom: 32px;
}

.familiogram-symbols {
  margin-top: 40px;
}
/* ================= IMAGEN FAMILIOGRAMA ================= */
.familiogram-image {
  max-height: 520px;      /* más grande */
  object-fit: contain;   /* NO recorta el esquema */
  background: #ffffff;
  padding: 20px;
  border-radius: 20px;
}
/* =========================================================
   SECCIÓN: RECOMENDACIONES
   Proyecto Cáncer Hereditario Perú
   ========================================================= */

/* CONTENEDOR GENERAL */
.recommendations-editorial {
  max-width: 1100px;
  margin: 0 auto;
}

/* HERO (misma línea que Genética) */
.section-hero {
  background: linear-gradient(135deg, #fff7f7, #ffffff);
  border-left: 6px solid #c62828;
  padding: 60px 70px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.section-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.section-hero p {
  font-size: 1.05rem;
  color: #444;
  max-width: 900px;
}

/* BLOQUES EDITORIALES */
.recommendation-block {
  margin-top: 70px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.recommendation-block:last-child {
  border-bottom: none;
}

/* TÍTULO PRINCIPAL DE CADA SÍNDROME */
.recommendation-block h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1f1f1f;
  position: relative;
  padding-left: 18px;
}

.recommendation-block h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 28px;
  background: #c62828;
  border-radius: 4px;
}

/* SUBTÍTULOS (Vigilancia, Prevención, etc.) */
.recommendation-block h4 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* TEXTO */
.recommendation-block p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
  max-width: 950px;
}

/* LISTAS */
.recommendation-block ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.recommendation-block li {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 6px;
}

/* BOTÓN VER MÁS */
.btn-vermas {
  margin-top: 15px;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid #c62828;
  color: #c62828;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-vermas:hover {
  background: #c62828;
  color: #fff;
}

/* CAJA DE INFORMACIÓN DESPLEGABLE */
.info-box {
  display: none;
  margin-top: 18px;
  padding: 18px 22px;
  background: #fafafa;
  border-left: 4px solid #1565c0;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}

.info-box a {
  font-size: 0.9rem;
  color: #1565c0;
  font-weight: 500;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .section-hero {
    padding: 40px 30px;
  }

  .section-hero h1 {
    font-size: 1.9rem;
  }

  .recommendation-block h2 {
    font-size: 1.6rem;
  }

  .recommendation-block p {
    font-size: 0.95rem;
  }
}
/* =====================================================
   CONSEJERÍA GENÉTICA
   ===================================================== */

.consejeria-editorial {
  max-width: 1100px;
  margin: 0 auto;
}

/* BLOQUES */
.consejeria-block {
  margin-top: 70px;
  padding-bottom: 45px;
  border-bottom: 1px solid #eaeaea;
}

.consejeria-block:last-child {
  border-bottom: none;
}

/* TÍTULOS */
.consejeria-block h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1f1f1f;
  padding-left: 16px;
  position: relative;
}

.consejeria-block h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 28px;
  background: #1565c0;
  border-radius: 4px;
}

.consejeria-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #333;
}

.consejeria-block h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 22px;
  color: #333;
}

/* TEXTO */
.consejeria-block p,
.consejeria-block li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #444;
}

/* LISTAS */
.consejeria-block ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* BOTÓN */
.btn-vermas {
  margin-top: 16px;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid #1565c0;
  color: #1565c0;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-vermas:hover {
  background: #1565c0;
  color: #fff;
}

/* CAJA DESPLEGABLE */
.info-box {
  display: none;
  margin-top: 18px;
  padding: 18px 22px;
  background: #f8f9fa;
  border-left: 4px solid #1565c0;
  border-radius: 14px;
}

/* IMAGEN */
.image-placeholder {
  margin: 30px 0;
  height: 220px;
  border-radius: 18px;
  background: repeating-linear-gradient(
    45deg,
    #f1f1f1,
    #f1f1f1 10px,
    #fafafa 10px,
    #fafafa 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .consejeria-block h2 {
    font-size: 1.6rem;
  }
}
.image-box {
  margin: 30px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* =====================================================
   NOSOTROS – STAFF
   ===================================================== */

.staff-section {
  max-width: 1100px;
  margin: 0 auto;
}

/* GRID */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
/* ====== AJUSTE PARA 5 TARJETAS ====== */
/* Si hay un número impar, el último se centra */
.staff-grid > .staff-card:last-child:nth-child(5) {
  grid-column: 2 / span 1;
}

/* ====== TABLET ====== */
@media (max-width: 992px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-grid > .staff-card:last-child:nth-child(5) {
    grid-column: 1 / span 2;
    justify-self: center;
    max-width: 320px;
  }
}

/* ====== MOBILE ====== */
@media (max-width: 576px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid > .staff-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }
}

/* TARJETA */
.staff-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 30px 25px 40px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 65px rgba(0,0,0,0.12);
}

/* FOTO */
.staff-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #1565c0;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NOMBRE */
.staff-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f1f1f;
}

/* ROL */
.staff-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 14px;
}

/* DESCRIPCIÓN */
.staff-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}
.staff-email {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #1f4fd8;
  text-decoration: none;
  word-break: break-word;
}

.staff-email:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .staff-photo {
    width: 120px;
    height: 120px;
  }
}

.contact-section {
  background: #ffffff;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-top: 60px;
}

/* TEXTO */
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #444;
}

/* FORMULARIO */
.contact-form {
  background: #f9fafc;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1f4fd8;
}

/* BOTÓN */
.btn-submit {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  background: #1f4fd8;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover {
  background: #163bb8;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {

  /* Sidebar desaparece */
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
  }

  /* Contenido ocupa todo */
  .main-content {
    margin-left: 0;
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Hero */
  .hero-section {
    height: 60vh;
  }

  .hero-content {
    padding: 40px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {

  /* Navbar más compacta */
  .main-navbar {
    height: 56px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  /* Contenido */
  .main-content {
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero */
  .hero-section {
    height: auto;
    border-radius: 16px;
  }

  .hero-overlay {
    position: relative;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  /* Secciones */
  .section {
    margin-bottom: 50px;
  }

  /* Cards */
  .info-card {
    padding: 22px;
  }

  /* Grids */
  .grid-cards {
    gap: 20px;
  }



  /* Staff */
  .staff-card {
    padding: 25px 20px 30px;
  }

  /* Formularios */
  .contact-form {
    padding: 25px;
  }

  .btn-submit {
    padding: 12px;
    font-size: 0.95rem;
  }
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #1f1f1f;
  border-radius: 2px;
  transition: all 0.3s ease;
}
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#menuOverlay.active {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 992px) {

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Sidebar oculta por defecto */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  /* Sidebar visible */
  .sidebar.active {
    transform: translateX(0);
  }

  /* Contenido ocupa todo */
  .main-content {
    margin-left: 0;
    padding-left: 30px;
    padding-right: 30px;
  }

}
@media (max-width: 576px) {

  .navbar-brand {
    font-size: 0.95rem;
  }

  .sidebar {
    width: 260px;
  }

  .sidebar a {
    padding: 14px 22px;
    font-size: 0.95rem;
  }
}

/* =====================================================
   MAIN CONTENT RESPONSIVE
   ===================================================== */

@media (max-width: 992px) {
  .main-content {
    margin-left: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 992px) {
  body {
    overflow-x: hidden;
  }
}
/* ================= AJUSTE HERO INDEX ================= */

.hero-overlay {
  align-items: flex-start;   /* permite mover verticalmente */
}

.hero-content {
  margin-left: auto;         /* empuja el texto a la derecha */
  margin-right: 6%;          /* separación del borde derecho */
  margin-top: 2%;            /* lo sube */
  max-width: 620px;          /* mantiene buena lectura */
  padding: 50px;
}

/* =====================================================
   PRELOADER PREMIUM – CÁNCER HEREDITARIO
   ===================================================== */

#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Fondo animado muy sutil */
.preloader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(31,79,216,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(31,79,216,0.05), transparent 40%);
  animation: bgMove 12s ease-in-out infinite alternate;
}

@keyframes bgMove {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* CONTENIDO */
.preloader-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

/* TEXTO */
.preloader-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.2;
  margin-bottom: 30px;
}

.preloader-content .line-1 {
  display: block;
  animation: textUp 1s ease forwards;
}

.preloader-content .line-2 {
  display: block;
  font-weight: 600;
  color: #1f4fd8;
  opacity: 0;
  animation: textUp 1s ease forwards;
  animation-delay: 0.4s;
}

/* Animación del texto */
@keyframes textUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PULSO */
.pulse-container {
  position: relative;
  width: 180px;
  height: 24px;
  margin: 0 auto;
}

/* Punto */
.pulse-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #1f4fd8;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: dotPulse 1.5s infinite;
}

/* Línea */
.pulse-line {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f4fd8, #9bb4ff);
  transform: translateY(-50%);
  animation: linePulse 1.5s infinite;
}

/* Animaciones pulso */
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(31,79,216,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(31,79,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,79,216,0); }
}

@keyframes linePulse {
  0% { width: 0; opacity: 0; }
  30% { opacity: 1; }
  100% { width: 160px; opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .preloader-content h1 {
    font-size: 2rem;
  }

  .pulse-container {
    width: 130px;
  }

  .pulse-line {
    animation: linePulseMobile 1.5s infinite;
  }

  @keyframes linePulseMobile {
    0% { width: 0; opacity: 0; }
    30% { opacity: 1; }
    100% { width: 110px; opacity: 0; }
  }
}
/* ================= H2 – TÍTULOS PRINCIPALES ================= */
.section > h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 18px; /* 🔥 antes estaba muy grande */
  padding-left: 16px;
  position: relative;
  line-height: 1.25;
}

.section > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 28px;
  background: #1f4fd8;
  border-radius: 4px;
}
.section .row {
  margin-bottom: 0;
}
.section {
  padding: 36px 0;
}

@media (max-width: 576px) {
  .section > h2 {
    margin-bottom: 14px;
  }
}


/* ================= DETECCIÓN – TARJETAS MISMA ALTURA ================= */
.detection-block .col-lg-6 {
  display: flex;
}

.detection-block .info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}



.events-wrapper{
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* TARJETA EVENTO */
.event-card{
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.event-header h2{
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b3c5d;
}

.event-badge{
  display: inline-block;
  background: #e8f0ff;
  color: #0d6efd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.event-meta{
  color:#6b7280;
  margin-top: 8px;
}

.event-body{
  margin-top: 25px;
}

.event-details{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px;
  margin: 25px 0;
}

.event-btn{
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

.event-btn.secondary{
  background: #1f2937;
}

/* GALERÍA */
.event-gallery h3,
.event-upcoming h3,
.event-support h3{
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px;
}

.gallery-grid img{
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-grid img:hover{
  transform: scale(1.04);
}

/* PRÓXIMOS */
.upcoming-card{
  background: #f8fafc;
  border-radius: 18px;
  padding: 30px;
}

.muted{
  color:#6b7280;
}

/* RESPONSIVE */
@media(max-width:768px){
  .event-card{
    padding: 25px;
  }
}
/* ================= FOOTER PROFESIONAL (ÚNICO) ================= */
.footer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  margin-left: 230px;
  padding: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #111827;
}

.footer-block p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Quitar puntitos */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-block a {
  font-size: 0.93rem;
  font-weight: 600;
  color: #1f4fd8;
  text-decoration: none;
}

.footer-block a:hover {
  text-decoration: underline;
}

.footer-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid #1f4fd8;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f4fd8;
  text-decoration: none;
}

.footer-cta:hover {
  background: #1f4fd8;
  color: #fff;
  text-decoration: none;
}

.footer-line {
  height: 1px;
  background: #e5e7eb;
  margin: 18px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 992px) {
  .footer {
    margin-left: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-cta {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ================= LOGO NAVBAR RESPONSIVE ================= */

/* Desktop (ya lo tienes, lo dejo aquí por claridad) */
.navbar-logo{
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Tablet */
@media (max-width: 992px){
  .main-navbar{
    height: 60px;
  }

  .navbar-logo{
    height: 42px;      /* más pequeño en tablet */
    max-width: 200px;  /* evita que tape el botón */
  }
}

/* Móvil */
@media (max-width: 576px){
  .main-navbar{
    height: 56px;
  }

  .navbar-logo{
    height: 34px;      /* ✅ tamaño ideal en celular */
    max-width: 160px;  /* ✅ evita que se corte */
  }

  .navbar-brand{
    margin-left: 10px !important; /* un poco más de aire */
  }
}
/* ================= CONTACTO – REDES SOCIALES ================= */
.contact-social{
  margin-top: 22px;
  padding: 18px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.contact-social-title{
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #111827;
}

.contact-social-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-social-links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafc;
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}

.contact-social-links a i{
  font-size: 1.1rem;
  color: #1f4fd8;
}

.contact-social-links a:hover{
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  color: #1f4fd8;
}

@media (max-width: 992px){
  .contact-social-links{
    justify-content: flex-start;
  }
}
/* ================= FOOTER – REDES SOCIALES DESTACADAS ================= */
.footer-social-highlight{
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
  border: 1px solid #dbe7ff;
}

.footer-social-label{
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f4fd8;
  margin-right: 10px;
  letter-spacing: 0.03em;
}

.footer-social-highlight a{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #c7d8ff;
  color: #1f4fd8;
}

.footer-social-highlight a i{
  font-size: 1.35rem;
}

.footer-social-highlight a:hover{
  background: #1f4fd8;
  color: #ffffff;
  border-color: #1f4fd8;
  box-shadow: 0 14px 28px rgba(31,79,216,0.25);
}

/* Responsive */
@media (max-width: 992px){
  .footer-social-highlight{
    justify-content: center;
  }

  .footer-social-label{
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }
}
