/* =============================================================
   UpdateAnnouncementPopup.css (adaptado para login.html)
   Estilos 100 % CSS puro + Bootstrap como base.
   Animaciones mediante @keyframes — sin React.
   ============================================================= */

/* Utilidad para ocultar el overlay desde HTML */
.popup-overlay--hidden {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   @keyframes — Animaciones reutilizables
───────────────────────────────────────────────────────────────*/

/* Entrada del overlay (fade) */
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Salida del overlay */
@keyframes overlayFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Entrada del contenedor principal */
@keyframes containerSlideUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(22px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Salida del contenedor principal */
@keyframes containerSlideDown {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(22px);
  }
}

/* Entrada del panel de contenido (derecha) */
@keyframes contentSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Entrada de la imagen (izquierda) */
@keyframes imageFadeIn {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

/* Pulso suave del botón de éxito */
@keyframes successPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ─────────────────────────────────────────────────────────────
   OVERLAY
───────────────────────────────────────────────────────────────*/
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  animation: overlayFadeIn 0.4s ease forwards;
}

.popup-overlay--closing {
  animation: overlayFadeOut 0.38s ease forwards;
}

@media (min-width: 576px)  { .popup-overlay { padding: 1.5rem; } }
@media (min-width: 768px)  { .popup-overlay { padding: 2rem;   } }
@media (min-width: 1280px) { .popup-overlay { padding: 3rem;   } }

/* ─────────────────────────────────────────────────────────────
   CONTENEDOR PRINCIPAL (dos columnas)
───────────────────────────────────────────────────────────────*/
.popup-container {
  position: relative;
  width: 100%;
  max-width: 1360px;
  min-height: 500px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 40px 100px -16px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: containerSlideUp 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.popup-container--closing {
  animation: containerSlideDown 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 768px)  { .popup-container { flex-direction: row; } }
@media (min-width: 1280px) { .popup-container { min-height: 600px; } }
@media (min-width: 1536px) { .popup-container { max-width: 1500px; min-height: 700px; } }

/* ─────────────────────────────────────────────────────────────
   BOTÓN DE CIERRE
───────────────────────────────────────────────────────────────*/
.popup-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(241, 245, 249, 0.55);
  color: #94a3b8;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
  font-size: 1.8rem;
}

.popup-close-btn:hover {
  color: #1e293b;
  background-color: #f1f5f9;
}

.popup-close-btn:active {
  transform: scale(0.92);
}

@media (min-width: 768px) {
  .popup-close-btn { background-color: transparent; }
}

/* ─────────────────────────────────────────────────────────────
   COLUMNA IZQUIERDA — visual panorámica
───────────────────────────────────────────────────────────────*/
.col-left {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

@media (min-width: 576px) {
  .col-left { padding: 3rem; }
}
@media (min-width: 768px) {
  .col-left {
    width: 60%;
    border-bottom: none;
    border-right: 1px solid #cbd5e1;
  }
}
@media (min-width: 1024px) {
  .col-left { width: 62%; padding: 4rem; }
}
@media (min-width: 1280px) {
  .col-left { padding: 5rem; }
}

.col-left-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 2px 2px, #64748b 1.5px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.col-left-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent,
    rgba(148, 163, 184, 0.2),
    rgba(100, 116, 139, 0.4)
  );
  pointer-events: none;
}

.app-frame {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 32px 80px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.app-frame-header {
  height: 2.5rem;
  width: 100%;
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.625rem;
  flex-shrink: 0;
}

.mac-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05),
              0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  display: inline-block;
}
.mac-dot--red    { background-color: #ff5f56; }
.mac-dot--yellow { background-color: #ffbd2e; }
.mac-dot--green  { background-color: #27c93f; }

.img-container {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-wrapper-anim {
  position: relative;
  width: 100%;
  animation: imageFadeIn 0.38s ease-out forwards;
}

.slide-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 60vh;
}

@media (min-width: 768px)  { .slide-image { max-height: 700px; } }
@media (min-width: 1280px) { .slide-image { max-height: 850px; } }

/* Capa de blur opcional para la quinta imagen */
.img-blur-layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.img-blur-layer--visible {
  opacity: 1;
}

.overlay-success {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-success-large {
  width: 6rem;
  height: 6rem;
  background-color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  animation: successPulse 1.6s ease-out infinite;
}

/* ─────────────────────────────────────────────────────────────
   COLUMNA DERECHA — contenido dinámico
───────────────────────────────────────────────────────────────*/
.col-right {
  width: 100%;
  background-color: #ffffff;
  padding: 2rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) { .col-right { padding: 3rem; } }
@media (min-width: 768px)  { .col-right { width: 40%; } }
@media (min-width: 1024px) { .col-right { width: 38%; padding: 3.5rem; } }
@media (min-width: 1280px) { .col-right { padding: 4rem; } }
@media (min-width: 1536px) { .col-right { padding: 5rem; } }

.content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  flex: 1;
  animation: contentSlideIn 0.35s ease-out forwards;
}

.content-top {
  display: flex;
  flex-direction: column;
}

.content-top--center {
  margin-top: auto;
  margin-bottom: auto;
}

.popup-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@media (min-width: 1280px) {
  .popup-tag { font-size: 14px; margin-bottom: 2rem; }
}

.popup-tag--blue  { background-color: #f0f4ff; color: #1d4ed8; }
.popup-tag--slate { background-color: #f1f5f9; color: #475569; }

.popup-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

@media (min-width: 768px)  { .popup-title { font-size: 32px; } }
@media (min-width: 1024px) { .popup-title { font-size: 36px; } }
@media (min-width: 1280px) { .popup-title { font-size: 40px; margin-bottom: 1.5rem; } }

.popup-description {
  font-size: 17px;
  color: #475569;
  line-height: 1.625;
  text-align: justify;
}

@media (min-width: 1024px) { .popup-description { font-size: 18px; } }
@media (min-width: 1280px) { .popup-description { font-size: 20px; } }

.popup-list {
  margin-top: 1.5rem;
  padding-left: 1.2rem;
}

.popup-list li {
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.popup-list li span {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
}

.action-area {
  margin-top: 2.5rem;
}
@media (min-width: 1024px) { .action-area { margin-top: 3rem; } }
@media (min-width: 1280px) { .action-area { margin-top: 4rem; } }

.btn-primary-popup,
.btn-dark-popup {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary-popup {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.42);
}
.btn-primary-popup:hover  {
  background-color: #1d4ed8;
  color: #ffffff;
}
.btn-primary-popup:active { transform: scale(0.98); }

.btn-dark-popup {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.42);
}
.btn-dark-popup:hover  {
  background-color: #020617;
  color: #ffffff;
}
.btn-dark-popup:active { transform: scale(0.98); }

@media (min-width: 1280px) {
  .btn-primary-popup,
  .btn-dark-popup { padding: 1.25rem 2rem; font-size: 19px; }
}

.icon-success-small {
  width: 4rem;
  height: 4rem;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Controles de navegación (no usados en la versión simplificada,
   pero se dejan por si se quiere extender a futuro) */
.nav-controls {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}
@media (min-width: 1024px) { .nav-controls { margin-top: 3rem; } }
@media (min-width: 1280px) { .nav-controls { margin-top: 4rem; } }

.btn-nav-prev,
.btn-nav-next {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  color: #64748b;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
}
.btn-nav-prev:hover,
.btn-nav-next:hover {
  color: #0f172a;
  background-color: #f8fafc;
  border-color: #cbd5e1;
}
.btn-nav-prev:active,
.btn-nav-next:active { transform: scale(0.94); }

@media (min-width: 1280px) {
  .btn-nav-prev,
  .btn-nav-next { width: 4rem; height: 4rem; }
}

/* Indicadores de página (puntos centrales) */
.nav-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.popup-container .nav-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background-color: #e5e7eb;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.popup-container .nav-dot--active {
  background-color: #0f172a;
  transform: scale(1.15);
}

.popup-container .nav-dot--inactive {
  opacity: 0.7;
}

