/* =========================
   Stylegeneral (LIMPIO)
   - Fondo global clarito (laterales)
   - Contenido centrado con max-width (no full width)
   - Secciones amarillas/verde según diseño
   - Wrappers SFMC en transparente (sin bandas blancas)
   ========================= */

/* 1) Fondo global (laterales) */
html {
  background-color: #FDF7E7 !important;
}

/* 2) Encajonar el “lienzo” (márgenes laterales) */
body {
  font-family: 'Poppins', sans-serif;
  color: #521207;
  line-height: 1.2;

  /* esto es lo que te mantiene los márgenes laterales */
  max-width: 1280px;         /* si quieres, pon 1322px */
  margin: 0 auto;

  /* NO pintamos fondo aquí para que el fondo lateral sea el html */
  background: transparent !important;
}

/* 3) Wrappers SFMC: transparent (evita bandas blancas) */
#j_id0,
#j_id0\\:j_id1,
.page-container,
.content,
.slds-scope,
table,
tbody,
tr,
td {
  background-color: transparent !important;
}

/* CloudPages wrapper: NO forzar amarillo oscuro aquí
   (si lo fuerzas, te aplana todo y te carga el clarito) */
.layout,
.layout-canvas-g,
.layout.layout-canvas-g,
.layout-canvas-g > .section,
.layout-canvas-g > .section > .columns {
  background-color: transparent !important;
}

/* El template a veces mete margen vertical entre secciones */
.layout-canvas-g > .section {
  margin: 0 !important;
}

/* 4) Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 5) Contenedor de tu layout */
.container {
  max-width: 1322px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 6) NAV */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FDF7E7;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  padding: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  z-index: 100;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: #521207;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-item {
  font-size: 16px;
  font-weight: 400;
  color: #521207;
  cursor: pointer;
}

.nav-item a {
  text-decoration: none;
  color: #521207;
}

/* 7) BLOQUES AMARILLO OSCURO (solo donde toca) */
.header,
.hero,
.divider,
.intro,
.resources,
.cta-section,
.footer {
  background-color: #FFF0D8 !important;
}

.header {
  text-align: right;
  padding: 35px 20px 0;
  margin-bottom: -100px;
}

.header-logo {
  width: 15%;
  max-width: 200px;
}

.hero {
  padding: 50px 20px 0;
}

.hero-brand {
  width: 40%;
  max-width: 400px;
}

.hero h1 {
  font-size: 25px;
  font-weight: 400;
  color: #521207;
  margin-top: 20px;
}

.divider {
  margin: 50px 0 0;
  padding: 0;
  overflow: hidden;
}

.divider img {
  width: 100%;
  display: block;
}

.divider-video {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.divider-video iframe {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  pointer-events: none;
}

.intro {
  margin: 50px 0 0;
  padding: 0 20px;
}

.intro h2 {
  font-size: 40px;
  font-weight: 400;
  color: #521207;
  max-width: 52%;
}

.resources {
  margin: 50px 0 0;
  padding: 0 20px;
}

.resources .container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
}

.resource-card {
  flex: 0 0 30%;
  max-width: 350px;
  min-width: 300px;
  border: 4px solid #521207;
  display: flex;
  flex-direction: column;
  background-color: #FFF0D8;
}

.resource-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.resource-card h2 {
  font-size: 26px;
  font-weight: 400;
  color: #521207;
  padding: 15px 20px;
  margin: 0;
  background-color: #FFF0D8;
}

.resource-buttons {
  border-top: 4px solid #521207;
  padding: 25px 20px;
  text-align: center;
  background-color: #FFF0D8;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botones */
.btn {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  text-align: center;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background-color: #E1261B;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 500;
  padding: 18px 60px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary {
  background-color: #FFF0D8;
  color: #521207;
  border: 4px solid #521207;
  font-size: 20px;
  font-weight: 500;
  padding: 15px 40px;
}

/* 8) VERDE (mantener sí o sí) */
.webinars-intro,
.webinars,
.webinars-second,
.disclaimer,
.arrow-section {
  background-color: #C6DCD8 !important;
}

.webinars-intro {
  margin: 100px 0 0;
  padding: 70px;
}

.webinars-intro h2 {
  font-size: 40px;
  font-weight: 400;
  color: #521207;
  max-width: 52%;
}

.webinars {
  padding: 0;
}

.webinars .container {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1322px;
}

.webinar-column {
  flex: 0 0 25%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.webinar-date-wrapper {
  position: absolute;
  top: -30px;
  left: -20px;
  z-index: 10;
}

.webinar-logo {
  width: 110px;
  height: auto;
  display: block;
}

.date-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  line-height: 1.2;
  width: 100%;
}

.webinar-content {
  background-color: #FFF0D8;
  border: 4px solid #521207;
  padding: 50px 0 0 0;
  height: 340px;
  display: flex;
  flex-direction: column;
}

.webinar-content h2 {
  font-size: 16px;
  font-weight: 500;
  color: #521207;
  padding: 0 20px;
  text-align: left;
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.webinar-buttons {
  border-top: 4px solid #521207;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: auto;
}

.webinar-buttons .btn-primary,
.webinar-buttons .btn-secondary {
  width: 100%;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.webinars-second {
  padding-bottom: 0;
  padding-top: 40px;
}

.disclaimer {
  padding: 20px;
  text-align: center;
}

.disclaimer h2 {
  font-size: 15px;
  font-weight: 500;
  color: #521207;
}

.arrow-section {
  padding: 50px;
  text-align: center;
}

.arrow-circle {
  width: 80px;
  height: 80px;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(10px) scaleY(1.1); }
}

/* CTA */
.cta-section {
  padding: 70px 20px;
}

.cta-section .container {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 400;
  color: #521207;
}

.cta-content h2.cta-subtitle {
  font-size: 25px;
  line-height: 30px;
  padding-top: 40px;
  font-weight: 400;
}

.cta-content .btn {
  align-self: flex-start;
  margin-top: 20px;
}

.cta-image {
  flex: 1;
  min-height: 41vh;
  background-image: url('https://image.mc.lilly.com/lib/fe8c127270660c7571/m/1/186c0a15-974a-47f3-82fc-195413e6ca5f.png');
  background-size: cover;
  background-position: center;
}

/* Footer */
.footer {
  padding: 40px;
  text-align: center;
}

.footer-logo {
  width: 25%;
  max-width: 250px;
}

/* 9) Responsive */
@media (max-width: 767px) {
  body {
    max-width: none;   /* en móvil mejor ocupar todo */
    margin: 0;
  }

  .main-nav {
    padding: 15px 20px;
    justify-content: center;
  }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background-color: #FDF7E7;
    width: 250px;
    padding: 30px 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: 20px;
    align-items: flex-start;
  }

  .nav-menu.active { right: 0; }

  .header {
    padding: 25px 20px 0;
    margin-bottom: -50px;
  }

  .header-logo {
    width: 40%;
    max-width: 150px;
  }

  .hero {
    padding: 30px 20px 0;
  }

  .hero-brand {
    width: 80%;
    max-width: 300px;
  }

  .hero h1 {
    font-size: 18px;
    margin-top: 15px;
  }

  .divider { margin: 30px 0 0; }

  .divider-video { height: 150px; }
  .divider-video iframe { top: 50%; }

  .intro { margin: 30px 0 0; }
  .intro h2 {
    font-size: 24px;
    max-width: 100%;
  }

  .resources { margin: 30px 0 0; }
  .resources .container {
    flex-direction: column;
    gap: 20px;
  }

  .resource-card {
    width: 100%;
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .resource-image { height: 180px; }

  .resource-card h2 {
    font-size: 22px;
    max-width: 100%;
    width: 100%;
  }

  .resource-buttons { padding: 20px; }

  .btn-primary {
    font-size: 16px;
    padding: 15px 40px;
  }

  .btn-secondary {
    font-size: 16px;
    padding: 12px 30px;
  }

  .webinars-intro {
    margin: 60px 0 0;
    padding: 40px 20px;
  }

  .webinars-intro h2 {
    font-size: 24px;
    max-width: 100%;
  }

  .webinars .container {
    flex-direction: column;
    gap: 0;
  }

  .webinar-column {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 20px;
  }

  .webinar-date-wrapper { top: -20px; left: -10px; }
  .webinar-logo { width: 90px; }
  .date-text { font-size: 16px; }

  .webinar-content {
    height: auto;
    min-height: 280px;
    padding: 40px 0 0 0;
  }

  .webinar-content h2 {
    font-size: 15px;
    padding: 0 15px;
  }

  .webinar-buttons {
    padding: 12px;
    gap: 8px;
  }

  .webinar-buttons .btn-primary,
  .webinar-buttons .btn-secondary {
    font-size: 13px;
    padding: 10px 8px;
  }

  .webinars-second { padding-top: 30px; }

  .disclaimer { padding: 20px 15px; }
  .disclaimer h2 { font-size: 13px; }

  .arrow-section { padding: 30px; }
  .arrow-circle { width: 60px; height: 60px; }

  .cta-section { padding: 40px 20px; }
  .cta-section .container {
    flex-direction: column;
    gap: 30px;
  }

  .cta-content { gap: 15px; }

  .cta-content h2 { font-size: 24px; }
  .cta-content h2.cta-subtitle {
    font-size: 18px;
    line-height: 24px;
    padding-top: 20px;
  }

  .cta-content .btn { margin-top: 10px; }

  .cta-image {
    min-height: 250px;
    order: -1;
  }

  .footer { padding: 30px 20px; }
  .footer-logo { width: 60%; max-width: 200px; }
}
/* ===== RELLENAR LOS “HUECOS” ENTRE SECCIONES ===== */

/* todas las secciones amarillas oscuras */
.header,
.hero,
.divider,
.intro,
.resources,
.cta-section,
.footer {
  background-color: #FFF0D8;
}

/* truco CLAVE: pintar el espacio del margen usando box-shadow */
.header,
.divider,
.intro,
.resources {
  box-shadow:
    0 -40px 0 #FFF0D8,
    0  40px 0 #FFF0D8;
}

/* ===== FIX 2 huecos que quedan ===== */

/* 1) Hueco finito entre hero y el divider (normalmente lo crea el margin-top del .divider) */
.divider {
  box-shadow: 0 -60px 0 #FFF0D8;
}

/* 2) Hueco debajo de resources (normalmente es el margin-top de .webinars-intro o margin-bottom de resources) */
.webinars-intro {
  box-shadow: 0 -80px 0 #FFF0D8;
}


