/* ==========================================================
   RESET GENERAL 
========================================================== */
* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  box-sizing: border-box;
}

/* ==========================================================
   ANIMACIONES
========================================================== */

/* Fondo verde que aparece */
@keyframes fadeBackdrop {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Aparición suave del popup */
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.90);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Imagen levita */
@keyframes floatImage {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

/* ==========================================================
   CONTENEDOR DEL FONDO OSCURO
========================================================== */

#cont-mensaje .fondo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;

  background: rgba(0, 56, 31, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2000;
  animation: fadeBackdrop 0.4s ease-out;
}

/* ==========================================================
   TARJETA / POPUP
========================================================== */

#cont-mensaje .fondo .mensaje {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  min-width: 250px;
  padding: 18px 18px 22px;

  border-radius: 18px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);

  position: relative;
  overflow: hidden;

  animation: popupIn 0.35s ease-out;
}

/* Scroll cuando la pantalla es baja */
@media screen and (max-height: 500px) {
  #cont-mensaje .fondo .mensaje {
    height: 90vh;
    overflow-y: auto;
  }
}

/* Ajuste en móviles */
@media screen and (max-width: 500px) {
  #cont-mensaje .fondo .mensaje {
    padding: 15px;
  }
}

/* ==========================================================
   BOTÓN DE CERRAR
========================================================== */

#cont-mensaje .mensaje i {
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 10px;

  font-weight: 900;
  font-size: 22px;

  padding: 5px 8px;
  border-radius: 50%;
  color: #ff0000 !important;
  background: rgba(255,0,0,0.12);

  transition: 0.25s ease;
}

#cont-mensaje .mensaje i:hover {
  background: #ff0000;
  color: #fff !important;
  transform: scale(1.08);
}

/* ==========================================================
   LOGO + TÍTULO
========================================================== */

#cont-mensaje .mensaje .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  margin-top: 6px;
  margin-bottom: 12px;
  gap: 6px;
}

#cont-mensaje .mensaje .logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

#cont-mensaje .mensaje .logo h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

/* ==========================================================
   INFORMACIÓN PRINCIPAL
========================================================== */

#cont-mensaje .mensaje .info {
  text-align: center;
  margin-bottom: 6px;
}

#cont-mensaje .mensaje .info p {
  font-size: 14px;
  margin: 0;
}

/* ==========================================================
   IMAGEN PRINCIPAL (NO SE PUEDE SELECCIONAR)
========================================================== */

#cont-mensaje .tarjeta img {
  width: 80%;
  max-width: 260px;
  display: block;
  margin: 10px auto;

  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);

  transition: all 0.25s ease;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

#cont-mensaje .tarjeta img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

/* ==========================================================
   TEXTO DE PROMOCIÓN
========================================================== */

#cont-mensaje .promo-text {
  text-align: center;
  margin: 6px 0 10px;
  padding: 0 8px;
}

#cont-mensaje .promo-text .promo-main {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

#cont-mensaje .promo-text .promo-main strong {
  color: #0066ff;
  font-size: 16px;
  font-weight: 900;
}

/* ¡No lo dudes más... con rojo sobrio */
#cont-mensaje .promo-text .texto-oportunidad {
  font-size: 13px;
  margin-top: 4px;
  color: #c62828;           /* rojo sobrio */
  font-weight: 600;
  text-shadow: 0 0 1px rgba(0,0,0,0.15);
}
.texto-oportunidad {
  color: #c62828 !important;     /* rojo sobrio */
  font-weight: 700;
  text-align: center;
}


/* ==========================================================
   CONTACTO
========================================================== */

#cont-mensaje .mensaje p {
  font-size: 13px;
  color: #333;
  text-align: center;
  line-height: 1.4;
  margin-top: 8px;
}

#cont-mensaje .mensaje p strong {
  font-weight: 700;
}

#cont-mensaje .mensaje a {
  color: #0055aa;
  text-decoration: none;
}

#cont-mensaje .mensaje a:hover {
  text-decoration: underline;
}
