@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --cq-ink: #1f3b70;
  --cq-navy: #2d4a8c;
  --cq-plum: #8b4c70;
  --cq-gold: #e8a540;
  --cq-coral: #f0745e;
  --cq-cream: #fff7f5;
  --cq-sage: #f8f0ee;
  --cq-sky: #6fa8ff;
  --cq-green: #4caf50;
  --cq-red: #e53935;

  /* Spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-gap: clamp(3rem, 6vw, 5rem);

  /* Type scale */
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: clamp(2.5rem, 6vw, 5rem);

  /* Radii */
  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(31,59,112,.08);
  --shadow-md: 0 8px 24px rgba(31,59,112,.1);
  --shadow-lg: 0 22px 55px rgba(31,59,112,.13);
}

html { scroll-behavior: smooth; }
body {
  position: relative;
  background: url('../img/patterns/lab-hero-v2.svg'), linear-gradient(135deg, #fff8f6 0%, #fff0eb 48%, #f6f0ff 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--cq-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}
body.landing {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,154,118,.45) 0%, transparent 45%),
    radial-gradient(circle at 75% 20%, rgba(75,44,130,.55) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(26,35,126,.65) 0%, transparent 45%),
    linear-gradient(135deg, #1a237e 0%, #4b2c82 52%, #ff9a76 100%);
}
body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../img/patterns/fondo-conquilab.svg?v=1') repeat;
  background-size: 220px;
  mix-blend-mode: overlay;
  filter: blur(1.5px);
  opacity: .45;
  pointer-events: none;
}
body.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,.15);
  pointer-events: none;
}
.section-brand {
  background: #1f3b70 !important;
  border-bottom: 2px solid var(--cq-gold);
  min-height: 94px;
  height: 94px;
  display: grid !important;
  grid-template-columns: auto minmax(0, auto);
  grid-template-rows: minmax(1.2rem, auto) minmax(1.4rem, auto);
  justify-content: center;
  align-content: center;
  column-gap: .8rem;
  padding: .6rem 1rem !important;
  overflow: visible;
}
.section-brand::before,
.section-brand::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transform: rotate(35deg);
}
.section-brand::before { left: -95px; top: -120px; box-shadow: 42px 42px 0 rgba(229,125,101,.18), 84px 84px 0 rgba(213,156,61,.16); }
.section-brand::after { right: -110px; bottom: -145px; box-shadow: -42px -42px 0 rgba(213,156,61,.18), -84px -84px 0 rgba(220,233,220,.16); }
.section-brand .brand_navbar { max-height: 48px; width: auto; position: relative; z-index: 1; grid-row: 1 / 3; grid-column: 1; }
#navbar > nav { background: #fff !important; border-bottom: 1px solid rgba(31,59,112,.1); min-height: 40px; padding-top: .1rem; padding-bottom: .1rem; box-shadow: 0 2px 12px rgba(31,59,112,.08); position: relative; z-index: 10; }
#navbar .nav-link { color: var(--cq-ink); font-weight: 600; font-size: .78rem; letter-spacing: .02em; transition: color .2s ease, transform .2s ease; }
#navbar .nav-link:hover { color: var(--cq-coral); transform: translateY(-1px); }

.section-brand.menu-top { display: flex !important; align-items: center; justify-content: flex-start; min-height: 90px !important; height: auto !important; padding: .75rem 1.5rem .3rem !important; position: relative; }
.section-brand .brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; position: relative; z-index: 2; }
.section-brand .brand-logo { height: 44px; width: auto; }
.section-brand .brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: .05em; color: #fff; }
.section-brand .subtext { position: absolute; bottom: .25rem; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; text-align: center; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.5); margin: 0; padding: 0 1rem; }
@media (min-width: 768px) {
  #navbar > nav .navbar-nav .nav-link { display: flex; flex-direction: column; align-items: center; padding: .5rem .7rem; font-size: .72rem; font-weight: 700; color: var(--cq-ink); }
  #navbar > nav .navbar-nav .nav-link .fe { font-size: 1.25rem; margin-bottom: .2rem; }
  #navbar > nav .navbar-nav { justify-content: center !important; margin-left: 0 !important; }
  #navbar > nav .navbar-nav .nav-link:hover { color: var(--cq-coral); transform: translateY(-2px); }
  #navbar > nav .navbar-nav > .nav-item:nth-child(1) .fe { color: #f0745e; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(2) .fe { color: #7c3aed; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(3) .fe { color: #4caf50; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(4) .fe { color: #e8a540; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(5) .fe { color: #1e88e5; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(6) .fe { color: #f0745e; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(7) .fe { color: #7c3aed; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(8) .fe { color: #4caf50; }
  #navbar > nav .navbar-nav > .nav-item:nth-child(9) .fe { color: #e8a540; }
}
#navbar .fe { color: var(--cq-coral); }
.home-2027 {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 4rem;
  background: linear-gradient(135deg, #1a2b4d 0%, var(--cq-ink) 55%, #0f1f3d 100%);
}
.home-2027 .home-kicker { color: var(--cq-gold); letter-spacing: .25em; }
.home-2027 .home-title { color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.home-2027 .home-title span { color: var(--cq-gold) !important; }
.home-2027 .home-subtitle { color: rgba(255,255,255,.8); }
.home-2027 .home-stat strong { color: #fff; }
.home-2027 .home-stat span { color: var(--cq-gold) !important; }
.home-2027 .home-outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.home-2027 .container { position: relative; z-index: 1; }
.home-2027 .btn-primary { background: var(--cq-coral); border: 0; border-radius: 999px; box-shadow: 0 12px 25px rgba(240,116,94,.3); font-weight: 800; padding: .85rem 1.5rem; color: #fff !important; transition: all .2s ease; }
.home-2027 .btn-primary:hover { background: var(--cq-ink); color: #fff; }
.home-2027 .btn-secondary { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; font-weight: 700; padding: .8rem 1.4rem; transition: all .2s ease; }
.home-2027 .btn-secondary:hover { background: #fff; color: var(--cq-ink); }
.home-doll-bg {
  position: absolute;
  z-index: 0;
  right: -6%;
  bottom: -6%;
  height: 105%;
  width: auto;
  max-width: 75%;
  object-fit: contain;
  opacity: .16;
  transition: opacity .4s ease;
  filter: blur(4px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
}
.home-kicker { color: var(--cq-coral); font-weight: 800; letter-spacing: .2em; font-size: .75rem; text-transform: uppercase; }
.home-title { color: var(--cq-ink); font-size: clamp(2.5rem, 6vw, 5.3rem); line-height: .95; font-weight: 800; letter-spacing: -.055em; }
.home-title span { color: var(--cq-coral) !important; display: block; }
.home-subtitle { color: var(--cq-plum); font-size: clamp(1rem, 2vw, 1.35rem); max-width: 630px; }
.home-event-card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.3);
  border-top: 4px solid var(--cq-gold);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 28px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  color: var(--cq-ink);
  overflow: hidden;
}
.home-event-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; margin-bottom: .5rem; }
.home-event-card .fe-calendar { color: var(--cq-coral) !important; }
.home-event-card .event-label { color: var(--cq-coral); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.home-event-card h2 { color: var(--cq-ink); font-weight: 800; }
.home-date { color: var(--cq-coral); font-size: 1.08rem; font-weight: 800; }
.home-date strong { color: var(--cq-ink); font-size: 1.65rem; }
.home-cta { background: var(--cq-coral); color: #fff; border: 0; border-radius: 999px; box-shadow: 0 12px 25px rgba(240,116,94,.3); font-weight: 800; padding: .85rem 1.4rem; }
.home-cta:hover { background: var(--cq-ink); color: #fff; transform: translateY(-2px); }
.home-outline { background: #fff; border: 2px solid var(--cq-ink); border-radius: 999px; color: var(--cq-ink); font-weight: 700; padding: .8rem 1.3rem; }
.home-outline:hover { background: var(--cq-ink); color: #fff; }
.home-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
}
.home-stat strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 800; }
.home-stat span { color: var(--cq-gold) !important; font-size: .82rem; }
.home-section { background: transparent; padding: 4.5rem 0; position: relative; overflow: hidden; }
.home-section h2 { color: var(--cq-ink); }
.home-section .section-subtitle { color: var(--cq-ink); opacity: .85; }
.home-section p { color: var(--cq-ink); opacity: .85; }
.home-section .text-gray-700 { color: var(--cq-ink) !important; opacity: .85; }
.home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/patterns/lab-hero-v2.svg');
  background-size: cover;
  background-position: center;
  opacity: .05;
}
.home-section h2 { color: var(--cq-ink); background: transparent; padding: 0; border-radius: 0; font-weight: 800; font-size: 1.75rem !important; max-width: 100%; line-height: 1.2; }
.home-feature { background: rgba(31,59,112,.65); border-radius: 18px; padding: 1.5rem; height: 100%; color: rgba(255,255,255,.85); box-shadow: 0 14px 30px rgba(31,59,112,.15); transition: transform .25s ease, box-shadow .25s ease; }
.home-feature:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(31,59,112,.18); }
.home-feature:nth-child(2) { background: rgba(45,74,140,.65); box-shadow: 0 14px 30px rgba(31,59,112,.15); }
.home-feature:nth-child(3) { background: rgba(79,97,142,.65); box-shadow: 0 14px 30px rgba(31,59,112,.15); }
.home-feature .icon { color: rgba(255,255,255,.7); font-size: 1.5rem; margin-bottom: .8rem; }
.home-feature h3 { font-size: 1.1rem; font-weight: 800; color: rgba(255,255,255,.9); }
.home-feature p { color: rgba(255,255,255,.7); font-size: .92rem; margin-bottom: 0; }
.home-legacy-slider { display: none !important; }
.home-jump { border-top: 1px solid rgba(31,59,112,.1); margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.home-jump a { color: var(--cq-ink); font-weight: 700; font-size: .82rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.home-jump a:hover { color: var(--cq-plum); }
.home-jump .fe { color: var(--cq-ink); opacity: .75; }

/* --- Ritmo unificado de secciones largas (socio, consejo, colegios, patrocinadores) --- */
#socio, #mesa_directiva, #colegios_adheridos, #patrocinadores {
  padding-top: clamp(3.5rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem) !important;
  border-bottom: 0 !important;
}
#socio { background: #fff7f5 !important; }
#mesa_directiva { background: #fff7f5 !important; }
#colegios_adheridos { background: #fff7f5 !important; }
#patrocinadores { background: #fff7f5 !important; }
#socio, #mesa_directiva, #colegios_adheridos, #patrocinadores { position: relative; overflow: hidden; }
#socio::before, #mesa_directiva::before, #colegios_adheridos::before, #patrocinadores::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/patterns/lab-hero-v2.svg');
  background-size: cover;
  background-position: center;
  opacity: .35;
}
#socio .container.border-bottom,
#mesa_directiva .container.border-bottom,
#patrocinadores .container.border-bottom { border-bottom: 0 !important; }

#socio h6.text-primary { color: var(--cq-coral) !important; letter-spacing: .2em; font-size: .72rem; }
#socio h2, #mesa_directiva h2, #colegios_adheridos h2, #patrocinadores h2 { color: var(--cq-ink); background: transparent; padding: 0; border-radius: 0; font-weight: 800; font-size: 1.75rem !important; max-width: 100%; line-height: 1.2; }

#mesa_directiva h2::before,
#colegios_adheridos h2::before,
#patrocinadores h2::before {
  display: block; font-weight: 800; letter-spacing: .2em; font-size: .72rem; text-transform: uppercase; margin-bottom: .6rem;
}
#mesa_directiva h2::before { content: "Gobierno CONQUILAB"; color: var(--cq-coral); }
#colegios_adheridos h2::before { content: "Red nacional"; color: var(--cq-coral); }
#patrocinadores h2::before { content: "Aliados estratégicos"; color: var(--cq-coral); }

footer.bg-conquilab {
  background:
    url('../img/patterns/fondo-conquilab.svg?v=1'),
    linear-gradient(135deg, #4b2c82 0%, #7a4f72 100%) !important;
  background-size: 220px, cover !important;
  background-position: center, center !important;
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  position: relative;
}
footer.bg-conquilab a { color: #fff; text-decoration: none; transition: color .2s; }
footer.bg-conquilab a:hover { color: #f3c56c; }
footer.bg-conquilab .text-warning { color: #f3c56c !important; }
footer.bg-conquilab .text-primary { color: #6fa8ff !important; }
footer.bg-conquilab h6 { color: #f3c56c; font-size: .72rem; letter-spacing: .14em; margin-bottom: 1.2rem; }
footer.bg-conquilab .list-unstyled li { margin-bottom: .6rem; }
footer.bg-conquilab .list-unstyled a { font-size: .92rem; color: rgba(255,255,255,.9); }
footer.bg-conquilab .list-unstyled a:hover { color: #f3c56c; }
footer .text-warning { color: #f3c56c !important; }

/* Modal view: hide layout inside iframe modals */
body.modal-view #navbar,
body.modal-view .section-brand,
body.modal-view footer,
body.modal-view .conquilab-chatbot,
body.modal-view #chat,
body.modal-view #conquilab-chat-fab,
body.modal-view #conquilab-chat-window,
body.modal-view .scrollup { display: none !important; }
@media (max-width: 767.98px) {
  .section-brand { min-height: 84px; height: 84px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(1rem, auto) minmax(1.2rem, auto); column-gap: .55rem; padding: .5rem .65rem !important; }
  .section-brand .brand_navbar { max-height: 40px; }
  .section-brand p { white-space: normal; font-size: .4rem !important; }
  .section-brand p:last-child { font-size: .67rem !important; line-height: 1.15 !important; }
  .home-2027 { padding-top: 3rem; }
  .home-doll { width: 115px; right: -1.25rem; bottom: .5rem; opacity: .22; }
  .home-stat { margin-top: 1rem; }
  #navbar .navbar { padding: .8rem 1rem; }
}

/* --- Hazte socio: pasos limpios --- */
#socio .container > .row:first-child { margin-bottom: clamp(2rem, 4vw, 3rem); }
#socio .step-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
#socio .step-number {
  flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cq-coral); color: #fff; font-weight: 800;
  border-radius: 50%; font-size: .9rem;
}
#socio .step-item h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; color: var(--cq-ink); }
#socio .step-item p { font-size: .92rem; color: #58647e; margin-bottom: 0; }
#socio .btn-primary,
#patrocinadores .btn-primary { background: var(--cq-coral); border-color: var(--cq-coral); border-radius: 999px; font-weight: 800; padding: .85rem 1.6rem; }
#socio .btn-primary:hover,
#patrocinadores .btn-primary:hover { background: var(--cq-plum); border-color: var(--cq-plum); }

/* --- Colegios afiliados: tarjetas limpias --- */
#colegios_adheridos .card {
  background: #fff; border: 0; border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12); height: 100%;
}
#colegios_adheridos .card-body { padding: 1.6rem 1.2rem; }
#colegios_adheridos .card img {
  height: 72px; width: auto; max-width: 100%; object-fit: contain;
  margin-bottom: 1rem; display: inline-block;
}
#colegios_adheridos .card p {
  color: var(--cq-ink); font-weight: 700; font-size: .88rem;
  min-height: 2.8rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
#colegios_adheridos .bg-dark-soft { background: transparent !important; display: flex; justify-content: center; gap: .8rem; }
#colegios_adheridos .bg-dark-soft a { color: var(--cq-coral) !important; font-size: 1.25rem; transition: transform .2s; }
#colegios_adheridos .bg-dark-soft a:hover { transform: translateY(-2px); color: var(--cq-plum) !important; }
#colegios_adheridos h2 { color: #000 !important; background: rgba(255,255,255,.9); display: inline-block; padding: .5rem 1.5rem; border-radius: 12px; }
#colegios_adheridos .card-body p { color: #000 !important; }

/* --- Patrocinadores: aliados estratégicos --- */
.sponsors {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 6rem) 0;
  text-align: center;
  background: radial-gradient(circle at 15% 25%, rgba(155,77,202,.25) 0%, transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(240,116,94,.18) 0%, transparent 40%),
              linear-gradient(135deg, #2a1b5e 0%, #4c2889 50%, #7c3aed 100%);
}
.sponsors .container { position: relative; z-index: 2; }
.sponsors-doll {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 220px;
  height: auto;
  opacity: .15;
  z-index: 1;
  pointer-events: none;
}
.sponsors h4 { color: #f3c56c; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .75rem; }
.sponsors h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: .6rem; }
.sponsors > .container > p { color: #000 !important; background: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 2.5rem; padding: .75rem 1.25rem; border-radius: 12px; line-height: 1.7; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.sponsor-card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f8f7fa 100%);
  border: 1px solid rgba(255,255,255,.5);
  border-top: 6px solid #9b4dca;
  border-radius: 22px;
  padding: 3.4rem 1.2rem 2.6rem;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.sponsor-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 55px rgba(0,0,0,.3); }
.sponsor-card.oro { border-top-color: #f3c56c; }
.sponsor-card.plata { border-top-color: #94a3b8; }
.sponsor-card.bronce { border-top-color: #c17f59; }
.sponsor-card.colaborador { border-top-color: var(--cq-coral); }
.ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: .4rem 1.8rem .55rem;
  font-size: .62rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
}
.sponsor-card.oro .ribbon { background: linear-gradient(135deg, #f3c56c 0%, #d97706 100%); }
.sponsor-card.plata .ribbon { background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%); }
.sponsor-card.bronce .ribbon { background: linear-gradient(135deg, #d4a27a 0%, #92400e 100%); }
.sponsor-card.colaborador .ribbon { background: linear-gradient(135deg, #f08c75 0%, #8a4fb8 100%); }
.medal {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: radial-gradient(circle, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  margin-bottom: .5rem;
}
.sponsor-card img { height: 70px; width: auto; max-width: 100%; object-fit: contain; margin: .25rem 0 .6rem; }
.sponsor-card i { color: #9b4dca; font-size: 2.2rem; margin: .25rem 0 .6rem; }
.sponsor-card h3 { font-size: 1rem; font-weight: 700; color: #3d3a55; margin: 0 0 1rem; line-height: 1.3; }
.sponsor-card h3 a { color: inherit; text-decoration: none; }
.sponsor-card h3 a:hover { color: var(--cq-coral); }
.level-badge {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .3rem 1rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.sponsor-card.oro .level-badge { background: linear-gradient(135deg, #f3c56c 0%, #d97706 100%); }
.sponsor-card.plata .level-badge { background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%); }
.sponsor-card.bronce .level-badge { background: linear-gradient(135deg, #d4a27a 0%, #92400e 100%); }
.sponsor-card.colaborador .level-badge { background: linear-gradient(135deg, #f08c75 0%, #8a4fb8 100%); }
.sponsors .cta { display: inline-block; background: #fff; color: #7c3aed; font-weight: 800; padding: .85rem 2rem; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s; }
.sponsors .cta:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(0,0,0,.3); }
@media (max-width: 575.98px) {
  .sponsors-doll { width: 140px; top: -20px; right: -20px; opacity: .1; }
  .sponsor-card { padding: 3.2rem 1rem 2.4rem; }
}

/* --- Promociones, Sorteos y Descuentos --- */
#promociones-sorteos-descuentos {
  background: transparent;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
#promociones-sorteos-descuentos .section-title { color: #fff !important; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
#promociones-sorteos-descuentos .section-subtitle { color: rgba(255,255,255,.85) !important; }
#promociones-sorteos-descuentos .section-title {
  color: var(--cq-ink); font-weight: 800; text-align: center; margin-bottom: .6rem;
}
#promociones-sorteos-descuentos .section-subtitle {
  color: var(--cq-plum); text-align: center; margin-bottom: 2.5rem;
}
#promociones-sorteos-descuentos .col-title {
  font-size: 1rem; font-weight: 800; color: var(--cq-ink); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
#promociones-sorteos-descuentos .col-title i { color: var(--cq-coral); }

/* --- Promociones, Sorteos y Descuentos (carrusel) --- */
#promociones-sorteos-descuentos .promo-grid { align-items: stretch; }
#promociones-sorteos-descuentos .promo-right {
  display: flex; flex-direction: column;
}
#promociones-sorteos-descuentos .promo-block { margin-bottom: 1.5rem; }
#promociones-sorteos-descuentos .promo-right #sorteos-container {
  flex: 1 1 auto; min-height: 0;
}

#promociones-sorteos-descuentos .carrusel {
  position: relative;
  background: #fff; border-radius: 1.25rem;
  box-shadow: 0 22px 45px rgba(23,36,79,.14);
  overflow: hidden;
}
#promociones-sorteos-descuentos .carrusel-horizontal { height: 230px; }
#promociones-sorteos-descuentos .carrusel-vertical { height: 100%; min-height: 320px; }

#promociones-sorteos-descuentos .carrusel-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}
#promociones-sorteos-descuentos .carrusel-horizontal .carrusel-track { flex-direction: row; }
#promociones-sorteos-descuentos .carrusel-vertical .carrusel-track { flex-direction: column; }

#promociones-sorteos-descuentos .carrusel-slide {
  flex: 0 0 100%;
  height: 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

#promociones-sorteos-descuentos .carrusel-control {
  position: absolute;
  z-index: 3;
  border: 0; width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--cq-ink);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(23,36,79,.2);
  cursor: pointer; transition: background .2s;
}
#promociones-sorteos-descuentos .carrusel-control:hover { background: #fff; }
#promociones-sorteos-descuentos .carrusel-horizontal .carrusel-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
#promociones-sorteos-descuentos .carrusel-horizontal .carrusel-next { right: .6rem; top: 50%; transform: translateY(-50%); }
#promociones-sorteos-descuentos .carrusel-vertical .carrusel-prev { left: 50%; top: .6rem; transform: translateX(-50%); }
#promociones-sorteos-descuentos .carrusel-vertical .carrusel-next { left: 50%; bottom: .6rem; transform: translateX(-50%); }

#promociones-sorteos-descuentos .offer-card {
  position: relative;
  background: #fff;
  height: 100%;
  padding: 0;
}
#promociones-sorteos-descuentos .offer-card::before {
  content: "%";
  position: absolute; top: -1.1rem; left: 1.25rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cq-coral) 0%, var(--cq-plum) 100%);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(229,125,101,.35); z-index: 2;
}
#promociones-sorteos-descuentos .offer-card.sorteo::before { content: "🏆"; background: linear-gradient(135deg, #9b4dca 0%, #d946ef 100%); }
#promociones-sorteos-descuentos .offer-card.descuento::before { content: "🏷"; background: linear-gradient(135deg, var(--cq-gold) 0%, #d97706 100%); }

#promociones-sorteos-descuentos .offer-card > * { padding-left: 1.25rem; padding-right: 1.25rem; }
#promociones-sorteos-descuentos .offer-card .badge-custom {
  display: block; width: 100%; margin: 0;
  padding: 1.1rem 1.25rem .7rem;
  text-align: center; font-size: .72rem; font-weight: 800;
  color: #fff; text-transform: uppercase; letter-spacing: .12em;
  background: linear-gradient(135deg, var(--cq-coral) 0%, var(--cq-plum) 100%);
  border-radius: 1.25rem 1.25rem 0 0;
}
#promociones-sorteos-descuentos .offer-card.sorteo .badge-custom { background: linear-gradient(135deg, #9b4dca 0%, #d946ef 100%); }
#promociones-sorteos-descuentos .offer-card.descuento .badge-custom { background: linear-gradient(135deg, var(--cq-gold) 0%, #d97706 100%); }

#promociones-sorteos-descuentos .offer-card h4 { font-size: 1.15rem; font-weight: 800; color: var(--cq-ink); margin: .9rem 0 .35rem; padding-top: .4rem; }
#promociones-sorteos-descuentos .offer-card p { font-size: .88rem; color: #58647e; margin-bottom: .75rem; }
#promociones-sorteos-descuentos .offer-card strong { color: var(--cq-coral); font-size: 1.35rem; }
#promociones-sorteos-descuentos .offer-card.sorteo strong { color: #9b4dca; }
#promociones-sorteos-descuentos .offer-card.descuento strong { color: var(--cq-gold); }

#promociones-sorteos-descuentos .offer-card .code-box {
  background: var(--cq-cream); border: 1px dashed var(--cq-gold); border-radius: 10px;
  padding: .6rem .9rem; font-family: monospace; font-weight: 700; color: var(--cq-ink);
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem;
}
#promociones-sorteos-descuentos .offer-card .copy-btn {
  border: 0; background: var(--cq-coral); color: #fff; border-radius: 999px;
  padding: .35rem .9rem; font-size: .72rem; font-weight: 700; cursor: pointer; transition: background .2s;
}
#promociones-sorteos-descuentos .offer-card .copy-btn:hover { background: var(--cq-plum); }
#promociones-sorteos-descuentos .offer-card .countdown { display: flex; gap: .5rem; font-size: .9rem; color: var(--cq-plum); font-weight: 700; padding-bottom: 1.25rem; }
#promociones-sorteos-descuentos .offer-card .countdown span { background: #f3e8f7; border-radius: 6px; padding: .25rem .5rem; }

#promociones-sorteos-descuentos .offer-img {
  width: 100%; height: 120px; object-fit: cover;
  border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem;
  margin-bottom: .5rem;
}
#promociones-sorteos-descuentos .offer-img.sorteo-img {
  height: 80px;
}
#promociones-sorteos-descuentos .offer-img.descuento-img {
  height: 100px;
}
#promociones-sorteos-descuentos .descuento-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #fde68a 100%);
  color: #b45309; font-size: 2.4rem;
}
#promociones-sorteos-descuentos .offer-value {
  font-size: 1.9rem; font-weight: 800; color: #d97706; margin: .25rem 0 .5rem;
}
#promociones-sorteos-descuentos .descuento-footer .code-box {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
}
#promociones-sorteos-descuentos .descuento-footer .code-box .code-text { font-weight: 700; }
#promociones-sorteos-descuentos .descuento-footer .code-box .copy-btn { flex-shrink: 0; }
#promociones-sorteos-descuentos .sorteo-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3e8f7 0%, #e9d5ff 100%);
  font-size: 2rem;
}
#promociones-sorteos-descuentos .vigencia {
  font-size: .78rem; color: #58647e; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .35rem;
}
#promociones-sorteos-descuentos .vigencia .fe { color: var(--cq-coral); }
#promociones-sorteos-descuentos .sorteo-detalles-mini {
  font-size: .8rem; color: #9b4dca; font-weight: 700; margin-bottom: .6rem;
}
#promociones-sorteos-descuentos .sorteo-acciones {
  display: flex; gap: .5rem; padding: 0 1.25rem .75rem;
}
#promociones-sorteos-descuentos .sorteo-ver-detalles,
#promociones-sorteos-descuentos .sorteo-inscribirse {
  flex: 1 1 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px;
  font-weight: 800; font-size: .78rem;
  padding: .65rem .6rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
#promociones-sorteos-descuentos .sorteo-ver-detalles {
  background: #f3e8f7; color: #7e22ce;
}
#promociones-sorteos-descuentos .sorteo-ver-detalles:hover { background: #e9d5ff; }
#promociones-sorteos-descuentos .sorteo-inscribirse {
  background: linear-gradient(135deg, #9b4dca 0%, #d946ef 100%);
  color: #fff;
}
#promociones-sorteos-descuentos .sorteo-inscribirse:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(155,77,202,.35);
}
#promociones-sorteos-descuentos .empty-msg { color: #58647e; font-size: .9rem; text-align: center; padding: 1.5rem; }

@media (max-width: 991.98px) {
  #promociones-sorteos-descuentos .promo-right { margin-top: 1.5rem; }
  #promociones-sorteos-descuentos .promo-right #sorteos-container { min-height: 260px; }
}

#promociones-sorteos-descuentos .offer-card.sorteo p { margin-bottom: .4rem; }
#promociones-sorteos-descuentos .offer-card.sorteo h4 { margin: .6rem 0 .25rem; padding-top: .2rem; }
#promociones-sorteos-descuentos .offer-card.sorteo .vigencia { margin-bottom: .4rem; }
#promociones-sorteos-descuentos .offer-card.sorteo .countdown { padding-bottom: .5rem; }
#promociones-sorteos-descuentos .offer-card.sorteo p,
#promociones-sorteos-descuentos .offer-card.sorteo h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Modal inscripción sorteo --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1050;
  display: none; align-items: center; justify-content: center;
  background: rgba(23,36,79,.55); padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; border-radius: 1.25rem; max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 70px rgba(23,36,79,.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(15px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(23,36,79,.08); }
.modal-header h5 { margin: 0; font-weight: 800; color: var(--cq-ink); font-size: 1.1rem; }
.modal-close { background: none; border: 0; font-size: 1.4rem; color: #58647e; cursor: pointer; }
.modal-body { padding: 1.25rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(23,36,79,.08); }
.modal-footer button { border: 0; border-radius: 999px; padding: .6rem 1.2rem; font-weight: 800; cursor: pointer; }
.modal-footer .btn-secondary { background: #e5e7eb; color: var(--cq-ink); }
.modal-footer .btn-primary { background: linear-gradient(135deg, #9b4dca 0%, #d946ef 100%); color: #fff; }
.modal-overlay .form-group { margin-bottom: 1rem; }
.modal-overlay label { display: block; font-size: .82rem; font-weight: 700; color: var(--cq-ink); margin-bottom: .35rem; }
.modal-overlay input { width: 100%; border: 1px solid rgba(23,36,79,.15); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.modal-overlay input:focus { outline: 0; border-color: var(--cq-coral); }
.modal-overlay .alert-info { background: #e0f2fe; color: #1e40af; padding: .75rem; border-radius: 10px; font-size: .8rem; }

/* --- Microinteracciones, focus y jerarquía --- */
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.2; color: var(--cq-ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { line-height: 1.7; color: var(--cq-ink); opacity: .85; }
small, .small, .text-muted, .text-gray-600, .text-gray-700 { color: var(--cq-ink) !important; opacity: .8; }
span { color: inherit; }
a { color: var(--cq-coral); transition: color .2s ease, transform .2s ease; }
a:hover { color: var(--cq-navy); }
.btn, .home-cta, .home-outline, .btn-login, .btn-submit { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover, .home-cta:hover, .home-outline:hover, .btn-login:hover, .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(31,59,112,.15); }
.form-control, .form-select, input, textarea, select { border: 1px solid rgba(31,59,112,.15); border-radius: 12px; padding: .85rem 1rem; font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cq-coral); box-shadow: 0 0 0 4px rgba(240,116,94,.12); }
.offer-card, .paquete-card, .persona { transition: transform .25s ease, box-shadow .25s ease; }
.offer-card:hover, .paquete-card:hover, .persona:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,59,112,.1); }
.home-jump a { opacity: .85; }
.home-jump a:hover { opacity: 1; }
img { max-width: 100%; height: auto; }

/* --- Animaciones de entrada --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-feature, .offer-card, .paquete-card, .persona { animation: fadeInUp .5s ease both; }
.home-feature:nth-child(1) { animation-delay: 0s; }
.home-feature:nth-child(2) { animation-delay: .1s; }
.home-feature:nth-child(3) { animation-delay: .2s; }

/* --- Footer links --- */
footer a { color: #e0e7ff; transition: color .2s ease; }
footer a:hover { color: var(--cq-gold); }

/* --- 404 --- */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: url('../img/patterns/lab-hero-v2.svg'), linear-gradient(135deg, #fff8f6 0%, #fff0eb 48%, #f6f0ff 100%); background-size: cover; background-position: center; }
.page-404 h1 { font-size: 6rem; color: var(--cq-coral); line-height: 1; margin-bottom: 1rem; }
.page-404 p { font-size: 1.1rem; color: var(--cq-plum); margin-bottom: 1.5rem; }
.page-404 .btn { background: var(--cq-coral); color: #fff; border: none; border-radius: 999px; padding: .85rem 1.8rem; font-weight: 700; }

/* --- Testimonios --- */
.section-testimonials { text-align: center; }
.section-testimonials .section-subtitle { color: var(--cq-plum); margin-bottom: 2rem; }
.testimonial-carousel { position: relative; min-height: 180px; max-width: 760px; margin: 0 auto; }
.testimonial { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; padding: 2rem; background: #fff; border-radius: 24px; box-shadow: 0 14px 40px rgba(31,59,112,.08); }
.testimonial.active { opacity: 1; position: relative; }
.testimonial p { font-size: 1.15rem; font-style: italic; color: var(--cq-ink); margin-bottom: 1rem; }
.testimonial footer { color: var(--cq-coral); font-weight: 700; }

/* --- Skip link --- */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--cq-coral); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 0; outline: none; }

/* --- Modo oscuro clínico --- */
/* MODO OSCURO DESACTIVADO TEMPORALMENTE — para reactivar quitar "and (max-width: 0)" */
@media (prefers-color-scheme: dark) and (max-width: 0) {
  :root {
    --cq-cream: #0b1220;
    --cq-sage: #101a2d;
    --cq-ink: #e6ebf5;
    --cq-plum: #b4b9d6;
    --cq-coral: #ff8a70;
    --cq-gold: #f3c56c;
    --cq-navy: #8ab4f8;
    color-scheme: dark;
  }
  body {
    background: url('../img/patterns/lab-hero-v2.svg'), linear-gradient(135deg, #0b1220 0%, #0e1526 48%, #121126 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #e6ebf5;
  }
  .home-2027 { background: #0b1220; }
  .home-event-card { background: #101a2d; color: #e6ebf5; border-color: rgba(255,255,255,.1); }
  .home-section { background: #0b1220 !important; }
  .home-section h2 { color: #e6ebf5; }
  .offer-card, .paquete-card, .testimonial { background: #101a2d; color: #e6ebf5; border-color: rgba(255,255,255,.1); }
  .testimonial p { color: #e6ebf5; }
  .evento-mini { background: #101a2d; color: #e6ebf5; }
  .evento-mini h5, .evento-mini p { color: #e6ebf5; }
  footer.bg-conquilab { background: #050a14 !important; }
  .section-brand { background: #0b1220 !important; border-color: var(--cq-coral); }

  /* Tarjetas y formularios con fondo blanco fijo -> pasar a superficie oscura */
  .card, .card-form, .catering-card, .doc-card, .modal-content, .modal-overlay > div,
  .home-impacto, .catering-card h4, .card-body { background: #101a2d; color: #e6ebf5; }
  .card h4, .card h5, .card p, .card-form h1, .card-form h5,
  .catering-card h4, .catering-card p { color: #e6ebf5; }
  .card .text-muted, .card-form .text-muted { color: #b4b9d6 !important; }

  /* Campos de formulario legibles en modo oscuro */
  input, select, textarea, .form-control, .form-select {
    background-color: #0b1220;
    color: #e6ebf5;
    border-color: rgba(255,255,255,.25);
    color-scheme: dark;
  }
  input::placeholder, .form-control::placeholder { color: rgba(230,235,245,.5); }
  .form-label, label { color: #e6ebf5; }
  .form-text { color: #b4b9d6; }
  .doc-card { border-color: rgba(255,255,255,.25); }
  .doc-card.ok { background: #10251a; }
  .btn-ghost, .btn-outline { color: #e6ebf5; border-color: #e6ebf5; }

  /* Barra de navegación y menús: fondo fijo blanco + texto claro = invisible */
  #navbar > nav, .navbar.bg-white, nav.bg-white { background: #101a2d !important; border-color: rgba(255,255,255,.12); }
  #navbar .nav-link { color: #e6ebf5; }
  #navbar .nav-link:hover { color: var(--cq-coral); }
  .navbar-light .navbar-toggler { border-color: rgba(255,255,255,.3); }
  .navbar-light .navbar-toggler-icon { filter: invert(1); }
  .dropdown-menu { background: #101a2d; border-color: rgba(255,255,255,.15); }
  .dropdown-menu .dropdown-item, .dropdown-menu .nav-link { color: #e6ebf5; }
  .dropdown-menu .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
  .dropdown-divider { border-color: rgba(255,255,255,.15); }

  /* Otras superficies blancas fijas comunes */
  .bg-white:not(nav):not(.navbar) { background-color: #101a2d !important; }
  .bg-light { background-color: #101a2d !important; }
  .table { color: #e6ebf5; }
  .table td, .table th { border-color: rgba(255,255,255,.12); }
  .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: rgba(255,255,255,.03); }
  .modal-footer, .modal-header { border-color: rgba(255,255,255,.12); }
  .modal-close { color: #b4b9d6; }
  .modal-footer .btn-secondary { background: #2a3b61; color: #e6ebf5; }
  .modal-overlay .alert-info, .alert-info { background: #12293d; color: #8ab4f8; border-color: rgba(138,180,248,.3); }
  .alert-success { background: #10251a; color: #7fd4a8; border-color: rgba(127,212,168,.3); }
  .alert-warning { background: #2a2110; color: #f3c56c; border-color: rgba(243,197,108,.3); }
  .alert-danger { background: #2d1414; color: #f09a94; border-color: rgba(240,154,148,.3); }
  hr, .border-top, .border-bottom { border-color: rgba(255,255,255,.12) !important; }
  .list-group-item { background: #101a2d; color: #e6ebf5; border-color: rgba(255,255,255,.12); }
  .accordion-item { background: #101a2d; color: #e6ebf5; border-color: rgba(255,255,255,.12); }
  .accordion-button { background: #101a2d; color: #e6ebf5; }
  .accordion-button:not(.collapsed) { background: #16223c; color: #fff; }
  .accordion-button::after { filter: invert(1); }
  .text-dark { color: #e6ebf5 !important; }

  /* Secciones claras con fondo fijo (#fff7f5) -> superficie oscura */
  #socio, #mesa_directiva, #colegios_adheridos, #patrocinadores { background: #0e1526 !important; }
  #socio .step-item p { color: #b4b9d6; }
  #colegios_adheridos h2 { color: #e6ebf5 !important; background: rgba(16,26,45,.92); }
  #colegios_adheridos .card-body p { color: #b4b9d6 !important; }
  #colegios_adheridos .card img { background: #fff; border-radius: 8px; padding: 6px; }

  /* Patrocinadores / sponsors */
  .sponsors > .container > p { color: #e6ebf5 !important; background: rgba(16,26,45,.9); }
  .sponsor-card { background: linear-gradient(180deg, #16223c 0%, #101a2d 100%); color: #e6ebf5; }
  .sponsor-card h3 { color: #e6ebf5; }
  .sponsor-card h3 a:hover { color: var(--cq-coral); }
  .sponsor-card i { color: #b794e6; }
  .sponsors .cta { background: #f3c56c; color: #0b1220; }

  /* Promociones / ofertas */
  #promociones-sorteos-descuentos .carrusel-control { background: rgba(16,26,45,.9); color: #e6ebf5; }
  #promociones-sorteos-descuentos .carrusel-control:hover { background: #16223c; }
  #promociones-sorteos-descuentos .offer-card p { color: #b4b9d6; }
  #promociones-sorteos-descuentos .offer-card .countdown { color: #b4b9d6; }
  #promociones-sorteos-descuentos .offer-card .countdown span { background: #2a3b61; color: #e6ebf5; }
  #promociones-sorteos-descuentos .offer-card .codigo,
  .codigo { background: #16223c; border-color: var(--cq-gold); color: #f3c56c; }
  #promociones-sorteos-descuentos .precio, .precio-box { background: linear-gradient(135deg, #2a2110 0%, #3d2c10 100%); color: #f3c56c; }
  #promociones-sorteos-descuentos .vigencia, .vigencia-box { background: linear-gradient(135deg, #1e1638 0%, #2a1e4d 100%); color: #b4b9d6; }
  #promociones-sorteos-descuentos .vigencia strong, .vigencia-box strong { color: #c4b5fd; }
  #promociones-sorteos-descuentos .sorteo-ver-detalles { background: #2a1e4d; color: #c4b5fd; }
  #promociones-sorteos-descuentos .sorteo-ver-detalles:hover { background: #3d2c6b; }
  #promociones-sorteos-descuentos .empty-msg { color: #b4b9d6; }

  /* Botones y hero sobre fondo oscuro */
  .home-outline { background: transparent; border-color: #8ab4f8; color: #8ab4f8; }
  .home-outline:hover { background: #8ab4f8; color: #0b1220; }
  .home-jump a { color: #e6ebf5; }
  .home-jump a:hover { color: var(--cq-coral); }
  .home-jump .fe { color: #e6ebf5; }
  .home-feature { background: rgba(31,59,112,.35); }
  .home-feature:nth-child(2) { background: rgba(45,74,140,.35); }
  .home-feature:nth-child(3) { background: rgba(79,97,142,.35); }

  /* 404 */
  .page-404 { background: url('../img/patterns/lab-hero-v2.svg'), linear-gradient(135deg, #0b1220 0%, #0e1526 48%, #121126 100%); background-size: cover; }

  /* Landing: el patrón overlay queda igual, solo suavizar */
  body.landing::after { background: rgba(0,0,0,.35); }

  /* Secciones con estilo inline que usan --cq-ink como fondo oscuro fijo */
  #registro, section[style*="--cq-ink"], footer[style*="--cq-ink"] { background: #0d1526 !important; }

  /* --- Estilos inline <style> por página (clases con fondo #fff fijo) --- */
  .login-card, .survey-card, .persona, .congreso-hero, .stat-card,
  .hotel-card, .expositor-logo, .sorteo-inscribirse, .back-link,
  .c-tab-btn, #congresos-anteriores .carousel-ctrl, .offer-info,
  #proximos-eventos .evento-mini { background: #101a2d !important; color: #e6ebf5 !important; border-color: rgba(255,255,255,.12) !important; }
  .login-card .form-control:focus, .form-control:focus { background: #0b1220; }
  .back-link { color: var(--cq-coral) !important; }
  .c-tab-btn { color: #e6ebf5; }
  .c-tab-btn.active, .c-tab-btn:hover { background: var(--cq-coral) !important; color: #fff !important; }
  .congreso-hero h1, .congreso-hero h2, .congreso-hero p, .stat-card strong, .stat-card span { color: #e6ebf5 !important; }
  .persona h4, .persona p, .persona strong { color: #e6ebf5 !important; }
  .expositor-logo { color: #b4b9d6 !important; }
  .hotel-card h4, .hotel-card p { color: #e6ebf5; }
  .sorteo-inscribirse { color: #c4b5fd !important; }
  .paquete-card h3, .paquete-card p, .paquete-card li, .paquete-card .precio { color: #e6ebf5 !important; }
  .paquete-card ul li { color: #b4b9d6; }
  #congresos-anteriores .carousel-dots button { background: rgba(255,255,255,.35); }

  /* Encuesta: opciones tipo radio/check legibles */
  .survey-card .form-check-label, .survey-card p { color: #e6ebf5; }
  .survey-card input[type="radio"], .survey-card input[type="checkbox"] { accent-color: var(--cq-coral); }
}

/* ===== Mejoras visuales: hover, transiciones y limpieza ===== */
.home-jump a { transition: transform .2s ease, color .2s ease, background .2s ease; }
.home-jump a:hover { transform: translateY(-2px); color: rgba(255,255,255,.95); background: rgba(31,59,112,.85); }
#colegios_adheridos .card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
#colegios_adheridos .card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.25); border-color: rgba(255,255,255,.25); }
#colegios_adheridos .card img { filter: grayscale(30%); transition: filter .25s ease; }
#colegios_adheridos .card:hover img { filter: grayscale(0%); }
#colegios_adheridos .card p { color: rgba(255,255,255,.9); transition: color .2s ease; }
#colegios_adheridos .card:hover p { color: #fff; }
#myModal .modal-header { padding: 0; border: 0; }
#myModal .modal-title { text-align: center; width: 100%; margin: 0; padding: 1.25rem 1.5rem; }
#myModal .modal-body { padding: 0; }
#myModal .card { border-radius: 0 0 1.25rem 1.25rem; border: 0; }
#myModal .card img { border-radius: 0 0 1.25rem 1.25rem; }

/* ===== Tarjetas de congresos / eventos próximos ===== */
.evento-mini { background: rgba(255,255,255,.92); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(31,59,112,.12); transition: transform .2s, box-shadow .2s; color: var(--cq-ink); }
.evento-mini:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(31,59,112,.18); }
.evento-mini img { width: 100%; height: 160px; object-fit: cover; }
.evento-mini .evento-body { padding: 1.25rem; }
.evento-mini h5 { color: var(--cq-ink); margin: 0 0 .5rem; font-size: 1.05rem; }
.evento-mini p { color: rgba(23,36,79,.75); margin: 0 0 .25rem; }
.evento-mini .btn { margin-top: .5rem; }

/* ===== Ajustes de contraste en secciones oscuras ===== */
#experiencia-conquilab h2, #experiencia-conquilab .text-muted { color: #fff !important; }
#experiencia-conquilab .home-jump a { color: rgba(255,255,255,.95) !important; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
#experiencia-conquilab .home-jump a .fe { color: rgba(255,255,255,.8) !important; }
#experiencia-conquilab .home-jump a:hover { color: #fff !important; background: rgba(255,255,255,.12); }

#congresos-anteriores h2, #congresos-anteriores .section-subtitle { color: #fff !important; }
#congresos-anteriores .congreso-caption strong { color: #fff; display: block; }
#congresos-anteriores .congreso-caption span { color: rgba(255,255,255,.85); }

#proximos-eventos h2, #proximos-eventos .section-subtitle { color: #fff !important; }
#proximos-eventos .text-muted { color: rgba(255,255,255,.85) !important; }

/* ===== Design tokens utilitarios ===== */
.section { padding: var(--section-gap) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.kicker { color: var(--cq-coral); font-weight: 800; letter-spacing: .2em; font-size: var(--text-xs); text-transform: uppercase; }
.text-lead { font-size: var(--text-lg); color: var(--cq-plum); max-width: 640px; line-height: 1.65; }
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--cq-coral); color: #fff; border: 0; border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 800; padding: .85rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; text-decoration: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(240,116,94,.35); background: var(--cq-ink); color: #fff; }
.btn-secondary { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); color: #fff; border: 2px solid #fff; border-radius: 999px; font-weight: 700; padding: .8rem 1.3rem; transition: transform .2s ease, background .2s ease; text-decoration: none; }
.btn-secondary:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); color: #fff; }
.container-tight { max-width: 720px; margin-left: auto; margin-right: auto; }
.sticky-cta { position: fixed; bottom: 1.25rem; right: 1.75rem; z-index: 1000; }
#conquilab-chat-fab { bottom: 6rem !important; right: 1.75rem !important; z-index: 99999 !important; }
#conquilab-chat-window { bottom: 10.5rem !important; right: 1.75rem !important; z-index: 99998 !important; }

/* Skeleton loaders */
.skeleton { background: linear-gradient(90deg, rgba(31,59,112,.08) 25%, rgba(31,59,112,.15) 50%, rgba(31,59,112,.08) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius-lg); min-height: 1rem; }
.paquete-card.skeleton { min-height: 220px; border: 1px solid rgba(31,59,112,.1); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Home countdown ===== */
.home-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
}
.home-countdown-digito {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: .55rem .7rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.home-countdown-digito small {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: .85;
}
.home-countdown-label {
  width: 100%;
  color: var(--cq-gold);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

/* ===== Mejoras de contraste para textos sobre fondos oscuros ===== */
#congresos-anteriores .home-kicker,
#proximos-eventos .home-kicker,
#testimonios .home-kicker { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

#congresos-anteriores .section-title,
#proximos-eventos .section-title,
#testimonios .section-title,
#testimonios .section-subtitle { color: #fff !important; text-shadow: 0 2px 6px rgba(0,0,0,.35); }

.landing .home-section .section-title { color: var(--cq-gold) !important; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.landing .home-section .section-subtitle { color: rgba(255,255,255,.85) !important; }
.landing .home-section .home-kicker { color: var(--cq-coral) !important; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

.text-white .text-reset,
.text-white p.text-reset,
footer .text-white p { color: #fff !important; }

footer .text-white p small,
footer .text-white p.text-reset { opacity: .95; }

/* ===== Textos específicos en secciones oscuras ===== */
#registro h2, .sponsors h2 { color: var(--cq-gold) !important; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
#registro p, #registro .small, .sponsors p { color: rgba(255,255,255,.9) !important; }
#registro .small { opacity: .9; }
#congresos-anteriores h2, #proximos-eventos h2 { color: var(--cq-gold) !important; }
#congresos-anteriores .section-subtitle, #proximos-eventos .section-subtitle { color: rgba(255,255,255,.85) !important; }
#congresos-anteriores .text-muted, #proximos-eventos .text-muted { color: rgba(255,255,255,.8) !important; }

/* ===== Home impacto ===== */
.home-impacto {
  padding: var(--section-gap) 0;
  background: #fff;
}
.home-impacto-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--cq-sage);
}
.home-impacto-numero {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cq-ink);
  line-height: 1;
}
.home-impacto-label {
  color: var(--cq-plum);
  font-size: .9rem;
  margin-top: .4rem;
}

/* ===== Testimonios ===== */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cq-gold);
}
.testimonial-name {
  display: block;
  color: var(--cq-ink);
  font-weight: 700;
}
.testimonial-role {
  display: block;
  color: #64748b;
  font-size: .85rem;
}

/* ===== Catering card ===== */
.catering-card {
  background: #fff;
  border: 1px solid rgba(31,59,112,.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(31,59,112,.05);
  transition: transform .2s, box-shadow .2s;
}
.catering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(31,59,112,.1);
}
.catering-icon {
  width: 64px;
  height: 64px;
  background: var(--cq-sage);
  color: var(--cq-coral);
  border-radius: 50%;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}
.catering-card h4 {
  font-weight: 700;
  color: var(--cq-ink);
  margin-bottom: .5rem;
}
.catering-card .text-primary {
  color: var(--cq-coral) !important;
}

/* ===== Home urgency bar (deshabilitada) ===== */
.home-urgency-bar { display: none !important; }

/* ===== WhatsApp deshabilitado (numero sin API registrada) — quitar al reactivar ===== */
a[href*="whatsapp.com"],
a.cq-whatsapp,
li:has(> a[href*="whatsapp.com"]),
.contact-item:has(a[href*="whatsapp.com"]) { display: none !important; }
