/* HUPI Studio - Modo Mundial 2026
   Importante: este archivo solo agrega la ambientacion mundialista y corrige el alto del hero.
   No cambia los archivos de imagen del carrusel. */

:root {
  --hupi-mundial-blue: #58bfff;
  --hupi-mundial-sky: #8ed8ff;
  --hupi-mundial-gold: #f6c858;
  --hupi-mundial-dark: #06111f;
  --hupi-slider-height: clamp(650px, 52vw, 940px);
}

body.home7 {
  padding-top: 42px;
}

body.home7 .hupi-mundial-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 14px;
  color: #fff;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #46a6f7 0%, #87d9ff 50%, #46a6f7 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

body.home7 .hupi-mundial-topbar strong {
  font-weight: 800;
}

body.home7 .hupi-mundial-topbar__star {
  color: #fff7bf;
  text-shadow: 0 0 14px rgba(255,255,255,.85);
}

body.home7 header {
  top: 42px;
}

/* Alto nuevo del carrusel, responsive y sin estirar las fotos */
body.home7 .hupi-hero,
body.home7 #slideshow7,
body.home7 #slideshow7 .allinone_bannerRotator,
body.home7 [id^="bannerRotatorParent_"] {
  height: var(--hupi-slider-height) !important;
  min-height: var(--hupi-slider-height) !important;
  max-height: none !important;
}

/* El plugin usa la foto como background y por defecto la escala exacta.
   Con cover se mantiene proporcion: no se deforma; solo recorta lo necesario. */
body.home7 #slideshow7 .allinone_bannerRotator {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.home7 #slideshow7 .allinone_bannerRotator .stripe,
body.home7 #slideshow7 .allinone_bannerRotator .block {
  background-size: cover !important;
  background-position: center center !important;
}

body.home7 #slideshow7 #curBgImgIos {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

body.home7 .hupi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 18%, rgba(130, 210, 255, .34), transparent 26%),
    linear-gradient(90deg, rgba(2, 10, 22, .82) 0%, rgba(2, 10, 22, .52) 42%, rgba(2, 10, 22, .12) 100%);
}

body.home7 .hupi-hero::after {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(5, 9, 8, .78) 0%, rgba(5, 9, 8, .44) 45%, rgba(5, 9, 8, .14) 100%),
    repeating-linear-gradient(115deg, rgba(120,200,255,.12) 0 1px, transparent 1px 22px);
}

body.home7 .hupi-hero-copy {
  z-index: 7;
  top: 50%;
}

body.home7 .hupi-hero-copy span {
  border-color: rgba(142, 216, 255, .48);
  background: rgba(4, 25, 48, .62);
  color: #eaf8ff;
}

body.home7 .hupi-hero-copy h1 {
  max-width: 820px;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.42);
}

body.home7 .hupi-hero-copy h1::after {
  content: "";
  display: block;
  width: 210px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hupi-mundial-sky), #fff, var(--hupi-mundial-gold));
  box-shadow: 0 0 24px rgba(142,216,255,.55);
}

body.home7 .hupi-hero-copy p {
  max-width: 650px;
  color: rgba(255,255,255,.92);
}

body.home7 .hupi-btn-primary {
  background: linear-gradient(135deg, #3caeff, #8ed8ff);
  border-color: rgba(255,255,255,.4);
  color: #071729;
  box-shadow: 0 16px 35px rgba(49, 164, 255, .24);
}

body.home7 .hupi-btn-secondary {
  border-color: rgba(142,216,255,.55);
  background: rgba(3,20,38,.58);
}

body.home7 .hupi-mundial-hero-card {
  position: absolute;
  right: max(22px, calc((100vw - 1140px) / 2));
  bottom: 100px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding: 20px 22px;
  border: 1px solid rgba(142,216,255,.42);
  border-radius: 22px;
  color: #fff;
  background: rgba(4, 20, 36, .62);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}

body.home7 .hupi-mundial-hero-card__icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(142,216,255,.18);
  border: 1px solid rgba(142,216,255,.45);
  font-size: 32px;
}

body.home7 .hupi-mundial-hero-card strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  color: #fff;
}

body.home7 .hupi-mundial-hero-card span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
}

body.home7 .hupi-mundial-confetti {
  position: fixed;
  inset: 0;
  z-index: 1190;
  pointer-events: none;
  overflow: hidden;
}

body.home7 .hupi-mundial-confetti span {
  position: absolute;
  top: -30px;
  width: 8px;
  height: 18px;
  border-radius: 3px;
  background: var(--hupi-mundial-sky);
  opacity: .55;
  animation: hupiMundialConfetti 9s linear infinite;
}

body.home7 .hupi-mundial-confetti span:nth-child(2n) { background: #fff; }
body.home7 .hupi-mundial-confetti span:nth-child(3n) { background: var(--hupi-mundial-gold); }
body.home7 .hupi-mundial-confetti span:nth-child(1) { left: 10%; animation-delay: .4s; }
body.home7 .hupi-mundial-confetti span:nth-child(2) { left: 24%; animation-delay: 2.2s; animation-duration: 11s; }
body.home7 .hupi-mundial-confetti span:nth-child(3) { left: 42%; animation-delay: 1.2s; animation-duration: 8s; }
body.home7 .hupi-mundial-confetti span:nth-child(4) { left: 61%; animation-delay: 3.1s; animation-duration: 10s; }
body.home7 .hupi-mundial-confetti span:nth-child(5) { left: 78%; animation-delay: .9s; animation-duration: 12s; }
body.home7 .hupi-mundial-confetti span:nth-child(6) { left: 92%; animation-delay: 2.7s; animation-duration: 9s; }

@keyframes hupiMundialConfetti {
  0% { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .65; }
  100% { transform: translate3d(-40px, 110vh, 0) rotate(540deg); opacity: 0; }
}

body.home7 .hupi-mundial-strip {
  position: relative;
  margin-top: -54px;
  z-index: 10;
  padding: 0 0 28px;
}

body.home7 .hupi-mundial-strip__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(142,216,255,.34);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(4,20,36,.93), rgba(12,58,96,.88));
  color: #fff;
  box-shadow: 0 22px 65px rgba(0,0,0,.26);
}

body.home7 .hupi-mundial-strip__title span {
  display: block;
  margin-bottom: 6px;
  color: var(--hupi-mundial-sky);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

body.home7 .hupi-mundial-strip__title h2 {
  margin: 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 1.25;
  text-transform: none;
}

body.home7 .hupi-mundial-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 10px;
}

body.home7 .hupi-mundial-countdown div {
  min-width: 76px;
  padding: 12px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

body.home7 .hupi-mundial-countdown strong {
  display: block;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  line-height: 1;
}

body.home7 .hupi-mundial-countdown span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  text-transform: uppercase;
}

body.home7 .hupi-mundial-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

body.home7 .hupi-mundial-modal.is-visible {
  display: flex;
}

body.home7 .hupi-mundial-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

body.home7 .hupi-mundial-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(92vh, 840px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(142,216,255,.38);
  background: #071525;
  color: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,.55);
}

body.home7 .hupi-mundial-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.52);
  font-size: 30px;
  line-height: 38px;
}

body.home7 .hupi-mundial-modal__media {
  width: 100%;
  padding: 14px 14px 0;
  background: radial-gradient(circle at 50% 0%, rgba(142,216,255,.22), transparent 50%);
}

body.home7 .hupi-mundial-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  object-position: center center;
  border-radius: 20px;
  background: #06111f;
}

body.home7 .hupi-mundial-modal__body {
  padding: 24px 30px 30px;
  text-align: center;
}

body.home7 .hupi-mundial-modal__body span {
  color: var(--hupi-mundial-sky);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.home7 .hupi-mundial-modal__body h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  text-transform: none;
}

body.home7 .hupi-mundial-modal__body p {
  max-width: 680px;
  margin: 0 auto 20px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.6;
}

body.home7 .hupi-mundial-modal__button {
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: linear-gradient(135deg, #3caeff, #8ed8ff);
  color: #071729;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  :root { --hupi-slider-height: clamp(620px, 58vw, 820px); }

  body.home7 .hupi-mundial-hero-card {
    right: 22px;
    bottom: 78px;
    max-width: 330px;
  }
}

@media (max-width: 991px) {
  :root { --hupi-slider-height: 660px; }

  body.home7 .hupi-mundial-hero-card {
    display: none;
  }

  body.home7 .hupi-mundial-strip__grid {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 767px) {
  :root { --hupi-slider-height: 560px; }

  body.home7 {
    padding-top: 58px;
  }

  body.home7 header {
    top: 58px;
  }

  body.home7 .hupi-mundial-topbar {
    min-height: 58px;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 12px;
  }

  body.home7 .hupi-mundial-topbar__text {
    flex-basis: 100%;
    font-size: 11px;
    opacity: .92;
  }

  body.home7 .hupi-hero-copy {
    top: 54%;
    width: min(100% - 28px, 620px);
  }

  body.home7 .hupi-hero-copy h1 {
    font-size: 32px;
  }

  body.home7 .hupi-hero-copy p {
    font-size: 15px;
  }

  body.home7 .hupi-mundial-strip {
    margin-top: -28px;
  }

  body.home7 .hupi-mundial-strip__grid {
    padding: 20px 16px;
    border-radius: 20px;
  }

  body.home7 .hupi-mundial-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home7 .hupi-mundial-modal__body h2 {
    font-size: 28px;
  }

  body.home7 .hupi-mundial-modal__media img {
    max-height: 45vh;
  }
}

@media (max-width: 480px) {
  :root { --hupi-slider-height: 600px; }

  body.home7 .hupi-hero-copy h1 {
    font-size: 28px;
  }

  body.home7 .hupi-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.home7 .hupi-btn {
    width: 100%;
  }
}
