/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-image: url('/static/businesses/background/background.svg');
    background-size: cover;           /* 🔹 Cubre toda la pantalla */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* 🔹 Mantiene el fondo fijo */
    background-position: center;
    font-family: 'Rubik', sans-serif !important;
    color: #004d66;
    min-height: 100dvh;               /* 🔹 Usa altura dinámica real en móviles */
    display: flex;
    flex-direction: column;
  }

  
  .layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100% !important;
  }
  
  /* Sidebar */
  .sidebar {
    background-image: url('/static/businesses/icons/sidebarBackground.svg');
    box-shadow: inset 0 0 30px rgba(0,0,0,0.25);
    width: 340px !important;
    height: 100vh;
    padding: 20px;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Rubik', sans-serif;
    justify-content: space-between;
    position: fixed;   /* 👈 Esto lo hace fijo */
    top: 0;
    left: 0;
  }

  /* Header */
  .sidebar-header {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .sidebar-logo-fidelyt {
    width: 200px;
    height: auto;
  }

  .sidebar-logo {
    /* max-width: 140px; */
    height: 62px;
    width: 58px;
    height: auto;
  }

  /* Navegación */
  .sidebar-nav {
    width: 100%;
    margin-top: auto;
    text-align: left;
    padding: 10px;
    font-size: 17px;
    color: #ffffff;
  }

  .sidebar-nav a {
    display: flex;                /* ahora usa flex para ícono + texto */
    align-items: center;
    gap: 12px;                    /* espacio entre ícono y texto */
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-weight: 400;
    font-size: 15px;
  }

  .sidebar-nav a:hover,
  .sidebar-nav a.active {
    background-color: #4a2b7c;
    /* background-color: #00758f; */
  }

  .sidebar-nav-item-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .sidebar-nav a.home .sidebar-nav-item-icon {
    background-image: url('/static/businesses/icons/home.svg');
  }

  .sidebar-nav a.register .sidebar-nav-item-icon {
    background-image: url('/static/businesses/icons/pencil.svg');
  }

  .sidebar-nav a.clients .sidebar-nav-item-icon {
    background-image: url('/static/businesses/icons/premio.svg');
  }

  .sidebar-nav a.profiles .sidebar-nav-item-icon {
    background-image: url('/static/businesses/icons/profile.svg');
  }

  .sidebar-nav a.logout .sidebar-nav-item-icon {
    background-image: url('/static/businesses/icons/close.svg');
  }

  .sidebar-nav a.register-user .sidebar-nav-item-icon {
    /* background-image: url('/static/businesses/icons/adduser.svg'); */
  }

  .sidebar-nav-item {
    flex: 1;
  }

  /* Bottom business info */
  .sidebar-bottom {
    margin-top: auto; /* empuja hacia abajo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .sidebar-bottom-container {
    display: flex;
    flex-direction: column; /* Primero info+logo (fila), luego separador (abajo) */
    width: 100%;
    gap: 8px;
  }

  /* Fila con texto a la izquierda y logo a la derecha */
  .sidebar-bottom-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Info en columna */
  .sidebar-bottom-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 10px;
  }

  /* Estilos de los textos */
  .sidebar-bottom-business-name {
    font-size: 18px;
    color: #D4B5FF;
    margin-bottom: 4px;
    font-weight: 500;
  }

  .sidebar-bottom-profile-name {
    font-size: 12px;
    color: #D4B5FF;
    margin-bottom: 4px;
    font-weight: 500;
  }

  /* Logo */
  .sidebar-bottom-logo-container {
    flex-shrink: 0;
  }

  .sidebar-bottom-logo {
    width: 60px;
    height: 58px;
    border-radius: 8px;
  }

  /* Separador */
  .sidebar-bottom-separator {
    width: 100%;
    height: 4px;
    background-image: url('/static/businesses/files/separator-sidebar.svg');
    border-radius: 1px;
  }
  

  /* Footer */
  .sidebar-footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #D4B5FF;
    margin-top: 15px;
  }

  .sidebar-bottom-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4a2b7c, #00758f);
    margin-top: 10px;
    border-radius: 1px;
  }
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

/* Mostrar modal activo */
.modal-overlay.active {
  display: flex;
}

/* Tarjeta principal */
.modal-card {
  background: #D6C4FF; /* tono lila suave */
  color: #1a1a1a;
  border-radius: 40px;
  padding: 40px 35px;
  width: 90%;
  max-width: 420px;
  position: relative;
  text-align: left;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Botón de cierre */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  font-size: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* Títulos */
.modal-subtitle {
  font-size: 1.2em;
  color: #1a1a1a;
  font-weight: 400;
  margin: 0;
}

.modal-title {
  font-size: 1.8em;
  color: #000;
  font-weight: 800;
  margin: 4px 0 20px;
}

/* Inputs */
.modal-card .form-group {
  margin-bottom: 18px;
}

.modal-card label {
  display: block;
  font-size: 1em;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.modal-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 0.95em;
  background: #f8f5ff;
  font-style: italic;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Botón de enviar */
.modal-submit {
  width: 100%;
  background: #000;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 14px 0;
  margin-top: 10px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease, transform 0.2s ease;
}

.modal-submit:hover {
  background: #2c2c2c;
  transform: translateY(-1px);
}

  
  /* Main Content */
  .main-content {
    flex: 1;
    padding: 20px;
    /* background-color: #f2f6f8; */
    min-width: 300px !important;
    width: calc(100% - 340px) !important; /* Ajusta el ancho restando el ancho del sidebar */
    margin-left: 340px; /* Añade margen izquierdo igual al ancho del sidebar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
    position: relative;
    overflow-y: auto;
    align-items: center;
  }
  
  .header-section {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    min-width: 300px !important;
  }
  
  .header-section h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #004d66;
  }
  
  .header-section p {
    color: #666;
    font-size: 14px;
  }
  
  .card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
  }
  
  .card h3 {
    font-size: 18px;
    color: #004d66;
    margin-bottom: 10px;
  }
  
  .card p {
    font-size: 22px;
    color: #333;
    font-weight: 600;
  }
  
  /* Recent Activity */
  .recent-activity {
    margin-top: 40px;
  }
  
  .recent-activity h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #004d66;
  }
  
  .recent-activity ul {
    list-style: none;
    padding-left: 0;
  }
  
  .recent-activity li {
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    color: #333;
    font-size: 14px;
  }

  .main-current-card-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
  }

  .main-card-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
  }

  .footer {
      margin-top: auto;
      padding: 10px 20px;
      background-color: #f2f6f8;
      color: #666;
      text-align: center;
      font-size: 14px;
      border-top: 1px solid #ddd;
  }


  @media (max-width: 768px) {
    .layout-wrapper {
      flex-direction: column;
    }

    .sidebar {
      position: fixed;
      left: -100%;
      top: 0;
      height: 100%;
      background-color: #004d66;
      z-index: 1000;
      transition: left 0.3s ease;
      /* width: 100% !important; */
    }

    .sidebar.active {
      left: 0;
    }

    .main-content {
      width: 100% !important;
      padding: 10px;
      margin-left: 0;
      min-width: 300px !important;
    }
  }
  #menu-toggle.hidden {
    display: none;
  }

  .grey-background {
    flex: 1;
    padding: 40px;
    min-width: 320px !important;
  }

  body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a {
    font-family: 'Rubik', sans-serif;
  }

  .button_orange {
    width: 100%;
    padding: 12px;
    background-color: #FF6C00;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .button_orange:hover {
    background-color: #e65c00;
  }

  .button_basic {
    width: 100%;
    padding: 12px;
    background-color: #004d66;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .button_basic:hover {
    background-color: #00334d;
  }

  .button_rose {
    width: 100%;
    padding: 12px;
    background-color: #D9B3FF;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .button_rose:hover {
    background-color: #bf80ff;
  }

  @supports not (height: 100dvh) {
    body {
      min-height: 100vh;
    }
  }

  /* Overlay */
.promo-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

/* Tarjeta principal */
.promo-card-dialog {
  background: linear-gradient(180deg, #c4b3f5 0%, #b89ee0 100%);
  border-radius: 40px;
  padding: 30px 30px 80px; /* más espacio inferior para el recorte */
  max-width: 420px;
  width: 90%;
  color: #000;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  overflow: hidden; /* 🔹 recorta la parte inferior de la imagen */
  margin: auto;
}

.promo-card-dialog.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

/* Botón cerrar */
.promo-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  color: #3b276b;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Contenido */
.promo-subtitle {
  font-size: 16px;
  margin-bottom: 6px;
  color: #30214f;
}

.promo-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1c102e;
}

.promo-text {
  font-size: 16px;
  color: #1e1130;
  margin: 14px 0;
}

/* Imagen */
.promo-img {
  position: absolute;
  bottom: -25px; /* 🔹 corta la imagen hacia abajo */
  left: -10px;   /* 🔹 ligeramente hacia la izquierda */
  width: 170px;
  z-index: 0;
  pointer-events: none;
  animation: popIn 0.6s ease forwards;
}

.promo-content {
  position: relative;
  z-index: 1;
}

/* Botón naranja */
.promo-btn {
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 0 #c85e00;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.promo-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #a04d00;
}

/* Link “Más información” */
.promo-link {
  position: absolute;       /* 🔹 Saca el link del flujo normal */
  bottom: -50px;             /* 🔹 Lo coloca abajo del contenedor */
  right: -25px;              /* 🔹 Lo alinea a la derecha */
  color: #3b1b8f;
  font-weight: 600;
  text-decoration: underline;
  font-size: 15px;
  cursor: pointer;
  z-index: 3;               /* 🔹 Asegura que esté sobre la imagen */
}

@keyframes popIn {
  0% { transform: scale(0.8) rotate(-8deg); opacity: 0; }
  80% { transform: scale(1.05) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* 🔸 Ajuste responsive para pantallas pequeñas */


/* Corrige el leve desplazamiento del Step 1 */
#promoStep1 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Mantiene centrado el contenido, sin afectar el megáfono */
#promoStep1 .promo-content {
  margin: 0 auto;
  width: 100%;
  max-width: 85%;
}

.goal-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.goal-card-dialog {
  background: linear-gradient(180deg, #c4b3f5 0%, #b89ee0 100%);
  border-radius: 40px;
  padding: 40px 30px 50px;
  max-width: 420px;
  width: 90%;
  color: #1c102e;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 0; /* 🔹 establece un contexto base */
}

/* Cuadro izquierdo */
.goal-bg-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  user-select: none;
  z-index: -1; /* 🔹 los manda detrás del contenido */
  opacity: 0.5; /* 🔹 leve transparencia */
  filter: brightness(0.95); /* 🔹 opcional: suaviza el contraste */
}

/* Cuadro derecho */
.goal-bg-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: 0.5;
  filter: brightness(0.95);
}

.goal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  color: #3b276b;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.goal-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.goal-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: #fff;
  color: #333;
  margin-bottom: 22px;
}

.goal-label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: #2c145d;
  margin-bottom: 6px;
  text-align: left;
}

.goal-help {
  background: #b89ee0;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 13px;
  margin-left: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.goal-help:hover {
  background: #a67cd9;
}

.goal-text {
  font-size: 16px;
  margin: 14px 0;
  color: #1e1130;
}

.goal-link {
  display: inline-block;
  margin-top: 20px;
  color: #3b1b8f;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

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

.inactive-promotion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 🔹 centra verticalmente */
  align-items: center;     /* 🔹 centra horizontalmente */
  text-align: center;
  padding: 20px 25px;
  background: transparent;
}

/* Texto */
.inactive-promotion-content p {
  color: #d8cfff;
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Botón */
.inactive-promotion-content .promo-btn {
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 0 #c85e00;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inactive-promotion-content .promo-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #a04d00;
}

.sidebar-bottom-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Efecto hover opcional */
.sidebar-bottom-link:hover .sidebar-bottom-container {
  cursor: pointer;
}