/* ---------- HERO ---------- */
.hero {
  background: var(--green);
  color: #fff;
  padding: 32px 0 40px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Caveat', cursive;
  line-height: 1;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  font-size: 24px;
  font-family: 'Caveat', cursive;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .t1 { font-size: 24px; font-weight: 700; }
.brand-text .t2 { font-size: 13px; opacity: .85; margin-top: 2px; letter-spacing: .02em; }

.polaroid-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- MARQUEE (colores index) ---------- */
.marquee { background: var(--teal); }
.marquee-track { color: #fff170; }
.marquee .star { color: #fff170; }

/* ---------- INTRO ---------- */
.intro {
  background: var(--gray);
  padding: 60px 40px;
  position: relative;
  text-align: center;
}

.intro-copy {
  max-width: 780px;
  margin: 0 auto;
  margin-left: -160px;
  font-size: 30px;
  color: #2a2a2a;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.55;
  text-align: center;
}

.intro-copy b { font-weight: 600; color: var(--green-deep); }

.handwritten {
  display: block;
  font-family: 'Brittany', cursive;
  font-size: 62px;
  color: var(--green-deep);
  margin-top: 8px;
  font-weight: 700;
}

.intro-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.sticker {
  width: 380px;
  height: auto;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 40px;
  transform: rotate(-14deg);
  transform-origin: center;
}

.sticker-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  animation: wiggle-cycle 5s linear infinite;
}

.sticker span { position: relative; z-index: 2; }

@keyframes wiggle-cycle {
  0%,57%,60%,100% { transform: translateX(0) rotate(0deg); }
  3%  { transform: translateX(-1.5px) rotate(-1.2deg); }
  6%  { transform: translateX(1.5px)  rotate(1.2deg); }
  9%  { transform: translateX(-1.5px) rotate(-1.2deg); }
  12% { transform: translateX(1.5px)  rotate(1.2deg); }
  15% { transform: translateX(-1.5px) rotate(-1.2deg); }
  18% { transform: translateX(1.5px)  rotate(1.2deg); }
  21% { transform: translateX(-1.5px) rotate(-1.2deg); }
  24% { transform: translateX(1.5px)  rotate(1.2deg); }
  27% { transform: translateX(-1.5px) rotate(-1.2deg); }
  30% { transform: translateX(1.5px)  rotate(1.2deg); }
  33% { transform: translateX(-1.5px) rotate(-1.2deg); }
  36% { transform: translateX(1.5px)  rotate(1.2deg); }
  39% { transform: translateX(-1.5px) rotate(-1.2deg); }
  42% { transform: translateX(1.5px)  rotate(1.2deg); }
  45% { transform: translateX(-1.5px) rotate(-1.2deg); }
  48% { transform: translateX(1.5px)  rotate(1.2deg); }
  51% { transform: translateX(-1.5px) rotate(-1.2deg); }
  54% { transform: translateX(1.5px)  rotate(1.2deg); }
}

.hw-reveal { opacity: 0; transform: translateX(-40px); }
.hw-reveal.in { animation: hw-slide 1.5s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes hw-slide {
  0%   { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ---------- PRODUCTS ---------- */
.products { background: var(--teal); color: #fff; }
.products .container { max-width: 960px; margin: 0 auto; padding: 0 48px; }

.product {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.product-academia { background: var(--yellow); width: 100%; display: block; padding: 0; }
.product-academia .container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  padding: 60px 48px;
}

.product-academia h3 { color: var(--green-deep) !important; }
.product-academia p { color: var(--green-deep) !important; }
.product-academia p b { color: var(--green-deep) !important; }
.product-academia .cta {
  background: var(--green-deep) !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  color: #fff !important;
  padding: 12px 26px;
  font-size: 12.5px;
  letter-spacing: .14em;
  font-weight: 600;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
  display: inline-block;
}
.product-academia .cta:hover { background: var(--green) !important; transform: translateY(-1px); }

.product-2 { background: #ecefef; width: 100%; display: block; padding: 0; }
.product-2 .container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  padding: 60px 48px;
}

.product-2 h3 { color: #214a37; }
.product-2 p { color: #214a37 !important; }
.product-2 .cta {
  background: var(--teal) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  color: #fff !important;
  padding: 12px 26px;
  font-size: 12.5px;
  letter-spacing: .14em;
  font-weight: 600;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
  display: inline-block;
}
.product-2 .cta:hover { background: #3d6b5f !important; transform: translateY(-1px); }

.product h3 { font-weight: 700; font-size: 30px; margin-bottom: 14px; letter-spacing: -.01em; }
.product p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.9); margin-bottom: 22px; max-width: 48ch; }
.product p b { color: #fff; font-weight: 700; }

.product .cta {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 12px 26px;
  font-size: 12.5px;
  letter-spacing: .14em;
  font-weight: 600;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
  display: inline-block;
}
.product .cta:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

.product-thumb {
  aspect-ratio: 1/1.18;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  position: relative;
  background: #2a3d33;
}

.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- QUIÉN SOY ---------- */
.quien {
  background: var(--yellow);
  padding: 40px 0 90px;
  text-align: center;
  color: var(--green-deep);
}

.quien h2 {
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .02em;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.idcard-img-wrap { max-width: 840px; margin: 0 auto; }
.idcard-img { width: 100%; height: auto; display: block; }

.quien-text {
  max-width: 860px;
  margin: 16px auto 0;
  font-size: 24px;
  line-height: 1.7;
  color: var(--green-deep);
  font-family: 'Montserrat', sans-serif;
}
.quien-text b { font-weight: 700; }
.quien-text em { font-style: italic; font-weight: 500; }
.quien-text p + p { margin-top: 18px; }

/* ---------- PODCAST ---------- */
.podcast {
  background: var(--green);
  color: #fff;
  padding: 80px 0 100px;
  text-align: center;
}

.podcast h2 { font-weight: 700; font-size: 32px; margin-bottom: 40px; letter-spacing: -.01em; }

.spotify-embed { max-width: 720px; margin: 0 auto; min-height: 152px; }
.spotify-embed iframe { width: 100%; border: 0; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* ---------- NEWSLETTER ---------- */
.section-newsletter {
  background: var(--gray);
  padding: 60px 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 48px;
}

.newsletter-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.newsletter-inner p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #444;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 14px 20px;
  border: 2px solid var(--teal);
  border-radius: 4px;
  outline: none;
  width: 300px;
  color: var(--ink);
  background: #fff;
}

.newsletter-form button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  padding: 14px 28px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter-success {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--teal);
  margin-top: 20px;
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 32px 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

footer a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; }

/* ---------- POPUP NEWSLETTER ---------- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.popup-box {
  background: rgba(255,255,255,.97);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #214a37;
  line-height: 1;
}

.popup-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #214a37;
  margin-bottom: 12px;
}

.popup-box > p {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #214a37;
  line-height: 1.7;
  margin-bottom: 28px;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.popup-form input[type="email"] {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 14px 20px;
  border: 2px solid #214a37;
  border-radius: 4px;
  outline: none;
  width: 100%;
  color: #214a37;
  background: #fff;
}

.popup-form button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  padding: 14px 28px;
  background: #214a37;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.popup-success {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #214a37;
  margin-top: 16px;
  font-weight: 600;
}

.popup-dismiss {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #214a37;
  margin-top: 16px;
  cursor: pointer;
  opacity: .6;
  display: block;
}

/* ---------- MEDIA QUERIES ---------- */
@media (prefers-reduced-motion: reduce) {
  .sticker-inner, .hw-reveal.in { animation: none !important; }
  .hw-reveal { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .hero { padding: 20px 0 24px; }
  .hero .container { padding: 0 16px; }

  .intro { padding: 32px 16px; text-align: center; }
  .intro-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }
  .intro-copy { margin-left: 0 !important; font-size: 16px; max-width: 100%; text-align: center; word-break: keep-all; }
  .handwritten { font-size: 36px; }
  .sticker { width: 180px; margin-top: 0; transform: rotate(0deg); }

  .products { padding: 0; }
  .products .container { padding: 0 16px; }
  .product { display: flex; flex-direction: column; gap: 20px; padding: 32px 16px; }
  /* Los 3 thumbnails idénticos: mismo ancho, cuadrado estable y centrado
     (antes Academia/Franquicia salían más anchas que Optimiza por el
     anidamiento distinto de .container) */
  .product-thumb { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1 / 1; min-height: 0; background: transparent; }
  .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .product-2 { padding: 0; }
  .product-2 .container { display: flex; flex-direction: column; gap: 20px; padding: 32px 16px; }
  .product-academia { padding: 0; }
  .product-academia .container { display: flex; flex-direction: column; gap: 20px; padding: 32px 16px; }

  .quien { padding: 32px 16px 48px; }
  .quien .container { padding: 0 16px; }
  .idcard-img-wrap { width: 100%; padding: 0; margin: 0 auto 24px; }
  .idcard-img { width: 120% !important; max-width: 120% !important; margin-left: -10%; }
  .quien-text { font-size: 16px; max-width: 100%; margin-top: 20px; }

  .podcast { padding: 32px 0 48px; }
  .podcast .container { padding: 0 16px; }

  footer { flex-direction: column; gap: 12px; padding: 24px 16px; }

  .marquee-track { font-size: 14px; }
}
