/* ===============================
   OVERLAY POPUP GRANDE
================================ */
#popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 15000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===============================
   POPUP GRANDE
================================ */
#popup-grande {
  position: relative;
  width: min(92vw, 950px);
  max-width: 950px;
  min-height: 540px;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  background: url("https://www.contapyme.com/contapyme/2026/2-marzo/img/popup-contador.png") center center / cover no-repeat;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Contenido popup marzo */
.popup-marzo-contenido {
    width: 100%;
    max-width: 680px;
    padding: 20px 24px 38px;
    text-align: center;
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-marzo-label {
  margin: 0;
  color: #0050a0;
  font-size: clamp(26px, 3.2vw, 56px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.popup-marzo-titulo {
  margin: 2px 0 0;
  font-size: clamp(36px, 4vw, 66px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.popup-marzo-intro {
  margin: 2px 0 18px;
  font-size: clamp(18px, 1.8vw, 32px);
  line-height: 1.15;
  font-weight: 700;
}

.popup-marzo-descuento {
  margin: 0;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 77, 153, 0.45);
}

.popup-marzo-exclusivo {
  margin: 2px 0 0;
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
}

.popup-marzo-paquetes {
  margin: 4px 0 0;
  font-size: clamp(20px, 2vw, 31px);
  line-height: 1.1;
  font-weight: 700;
}

.popup-marzo-paquetes span {
  font-weight: 900;
}

.popup-marzo-descripcion {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: clamp(14px, 1.1vw, 21px);
  line-height: 1.25;
  font-weight: 700;
}

.popup-marzo-nota {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
}

.popup-marzo-acciones {
  margin-top: 14px;
}

.popup-marzo-boton {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: #ffffff;
  color: #0050a0;
  border: 1px solid #ffffff;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-marzo-boton:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 44, 90, 0.25);
}

/* Botón cerrar grande */
#popup-grande .close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.85);
  color: #0050a0;
  border-radius: 50%;
  border: 2px solid #0050a0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#popup-grande .close-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

/* ===============================
   POPUP PEQUEÑO
================================ */
#popup-pequeno {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 500px;
  max-width: 500px;
  padding: 5px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#popup-pequeno img {
  width: 100%;
  height: auto;
  display: block;
}

/* Botón cerrar pequeño */
#popup-pequeno .close-btn {
  position: absolute;
  top: 2px;
  right: 5px;
  width: 20px;
  height: 20px;
  font-size: 18px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE POPUP GRANDE
================================ */
@media (max-width: 1024px) {
  #popup-grande {
    width: min(96vw, 760px);
    max-width: 760px;
    min-height: 440px;
    max-height: 85vh;
  }

  .popup-marzo-contenido {
    padding: 34px 18px 28px;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  #popup-grande {
    width: 95vw;
    max-width: 95vw;
    min-height: 320px;
    max-height: 85vh;
    border-radius: 16px;
  }

  .popup-marzo-contenido {
    padding: 24px 14px 20px;
  }

  .popup-marzo-descripcion {
    max-width: 420px;
  }

  #popup-pequeno {
    width: 280px;
    max-width: 280px;
    bottom: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  #popup-grande {
    width: 98vw;
    max-width: 98vw;
    min-height: 280px;
    max-height: 82vh;
    border-radius: 14px;
  }

  .popup-marzo-contenido {
    padding: 20px 10px 16px;
  }

  .popup-marzo-nota {
    font-size: 12px;
  }

  #popup-pequeno {
    width: 240px;
    max-width: 240px;
  }
}

@media (max-width: 320px) {
  #popup-pequeno {
    width: 200px;
    max-width: 200px;
  }
}

/* POPUP IFRAME */
#iframe-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 16000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: iframeFadeIn 0.3s ease-out;
}

@keyframes iframeFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

#iframe-popup-container {
  width: 65%;
  max-width: 500px;
  height: 75%;
  max-height: 550px;
  background: #fff;
  border-radius: 20px;
  border: 3px solid #00AAF8;
  display: flex;              
  flex-direction: column;
  overflow: hidden;           
  position: relative;        
  box-sizing: border-box;
}

.iframe-popup-content {
  flex: 1 1 auto;             
  min-height: 0;            
  display: flex;             
}

.iframe-header-content{
  text-align: center;
}

#iframe-formulario,
.iframe-formulario {
  flex: 1 1 auto;             
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  #iframe-popup-container {
    width: 90%;
    height: 90%;
  }
}
@media (max-width: 480px) {
  #iframe-popup-container {
    width: 98%;
    height: 98%;
  }
}

/*------------------- PROMO CONGELADOS --------------------*/
/* FREEZE SCREEN */

#freeze-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(200,240,255,.6),
    rgba(174,211,250,.9)
  );
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

#freeze-screen.active {
  opacity: 1;
  pointer-events: all;
  animation: freezeIn 1.2s ease-out forwards;
}

@keyframes freezeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* COPOS INDIVIDUALES */

#freeze-screen .snowflake {
  position: absolute;
  background: url("./recurso-congelados/assets/CopoN.svg") no-repeat center / contain;
  pointer-events: none;
  animation: snowFloat 7s ease-in-out infinite;
}

#freeze-screen .snow-1 {
  top: 10%;
  left: 6%;
  width: 140px;
  height: 140px;
}

#freeze-screen .snow-2 {
  top: 14%;
  right: 8%;
  width: 180px;
  height: 180px;
  animation-duration: 9s;
}

#freeze-screen .snow-3 {
  bottom: 12%;
  left: 10%;
  width: 120px;
  height: 120px;
  animation-duration: 8s;
}

#freeze-screen .snow-4 {
  bottom: 10%;
  right: 12%;
  width: 160px;
  height: 160px;
  animation-duration: 10s;
}

#freeze-screen .snow-5 {
  right: 20%;
  width: 100px;
  height: 100px;
  animation-duration: 10s;
}
#freeze-screen .snow-6 {
  left: 10%;
  width: 100px;
  height: 100px;
  animation-duration: 10s;
}

@keyframes snowFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* TEXTO CONGELADO CENTRAL */

.freeze-message h1 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 35px rgba(180,230,255,.9));
  animation: textBounce 1.2s ease-out forwards;
}

.freeze-message .line-1 {
  display: block;
  font-size: 11.7rem;
  font-weight: 400;
  color: #3579f6;
  margin-bottom: 20px;
}

.freeze-message .line-2 {
  display: block;
  font-size: 6.5rem;
  font-weight: 800;
  transform: translateY(-50px);
  color: #ffffff;
}

.freeze-message .line-3 {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 34px;
  font-size: 3.5rem;
  font-weight: 500;
  text-transform: none;
  color: #3579f6;
  background: rgba(220,240,255,.95);
  border-radius: 50px;
  box-shadow:
    0 10px 25px rgba(53,121,246,.25),
    inset 0 0 12px rgba(255,255,255,.6);
  transform: translateY(-80px);
}

/*-------- Responsive Texto y Copos -----------*/

@media (max-width: 1600px) {

  .freeze-message .line-1 { font-size: 9.5rem; }
  .freeze-message .line-2 { font-size: 5.4rem;  }
  .freeze-message .line-3 { font-size: 3rem; padding: 12px 30px;  }

  .snow-1 { width: 120px; height: 120px; }
  .snow-2 { width: 150px; height: 150px; }
  .snow-3 { width: 100px; height: 100px; }
  .snow-4 { width: 130px; height: 130px; }
}

@media (max-width: 1400px) {

  .freeze-message .line-1 { font-size: 8rem; margin-bottom: 30px;}
  .freeze-message .line-2 { font-size: 4.8rem; margin-top: 20px;}
  .freeze-message .line-3 { font-size: 2.6rem; padding: 10px 26px;}

  .snow-1,
  .snow-2,
  .snow-3,
  .snow-4 { opacity: .8; }
}

@media (max-width: 1200px) {

  .freeze-message .line-1 { font-size: 6.8rem; margin-bottom: 30px;}
  .freeze-message .line-2 { font-size: 4rem;  }
  .freeze-message .line-3 { font-size: 2.2rem; }

  .snow-2,
  .snow-4 { display: none; }
}

@media (max-width: 992px) {

  .freeze-message .line-1 { font-size: 5.4rem; margin-bottom: 40px;}
  .freeze-message .line-2 { font-size: 3.2rem; margin-top: 0;}
  .freeze-message .line-3 { font-size: 1.9rem; padding: 8px 22px; }

  .snowflake { opacity: .5; }
}

@media (max-width: 768px) {

  .freeze-message .line-1 { font-size: 3.6rem; margin-bottom: 20px;}
  .freeze-message .line-2 { font-size: 2.4rem; transform: translateY(-25px); }
  .freeze-message .line-3 {
    font-size: 1.4rem;
    padding: 6px 18px;
    transform: translateY(-60px);
  }

  .snowflake {
    width: 70px !important;
    height: 70px !important;
    opacity: .35;
  }
}


/*---------------------------------------------*/

@keyframes textBounce {
  0% { transform: scale(.6); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* UNFREEZE */

#freeze-screen.unfreeze {
  animation: unfreeze 1.2s ease-in forwards;
}

@keyframes unfreeze {
  to {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

/* LOGO FLOAT CONGELADOS */

#congelados-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 250px;
  height: 250px;
  z-index: 9999;
  opacity: 0;
  transform: scale(.4);
  transition: all .9s ease;
}

#congelados-float.show {
  opacity: 1;
  transform: scale(1);
}

#congelados-float img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Halo de hielo */
.ice-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180,230,255,.6),
    transparent 70%
  );
  opacity: 0;
  filter: blur(10px);
  transition: opacity .5s ease;
  z-index: 1;
}

#congelados-float:hover .ice-glow {
  opacity: 1;
}

/* HINT CLICK AQUÍ */

.hint {
  position: absolute;
  top: -55px;
  right: 65px;
  text-align: center;
  animation: hintFloat 1.6s ease-in-out infinite;
}

.hint span {
  font-size: 30px;
  font-weight: 600;
  color: #3579f6;
  letter-spacing: 1px;
}

.arrow {
  width: 2px;
  height: 55px;
  margin: 8px auto 0;
  background: linear-gradient(
    to bottom,
    rgba(200,240,255,.9),
    rgba(200,240,255,.1)
  );
}

@keyframes hintFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hover: ocultar hint */
#congelados-float:hover .hint {
  opacity: 0;
  transform: translateY(18px);
  transition: all .4s ease;
}

/*--------------------- Responsive logo --------------------------*/
@media (max-width: 1720px) {
  #congelados-float {
    width: 200px;
    height: 200px;
  }

  .hint {
    top: -50px;
    right: 45px;
  }

  .hint span {
    font-size: 28px;
  }

  .arrow {
    height: 48px;
  }
}

@media (max-width: 1400px) {
  #congelados-float {
    width: 190px;
    height: 190px;
  }

  .hint {
    top: -40px;
    right: 55px;
  }

  .hint span {
    font-size: 20px;
  }

  .arrow {
    height: 42px;
  }
}

@media (max-width: 1200px) {
  #congelados-float {
    width: 170px;
    height: 170px;
  }

  .hint {
    top: -40px;
    right: 45px;
  }

  .hint span {
    font-size: 20px;
  }

  .arrow {
    height: 36px;
  }
}

@media (max-width: 992px) {
  #congelados-float {
    width: 150px;
    height: 150px;
  }

  .hint {
    top: -50px;
    right: 40px;
  }

  .hint span {
    font-size: 17px;
  }

  .arrow {
    height: 30px;
  }
}

@media (max-width: 768px) {
  #congelados-float {
    width: 150px;
    height: 150px;
    bottom: 15px;
    right: 15px;
  }

  .hint {
    top: -40px;
    right: 40px;
  }

  .hint span {
    font-size: 16px;
  }

  .arrow {
    height: 24px;
  }
}
