/* Aquí está el estilo original */
body {
  font-family: Arial, sans-serif;
  background-color: #e7e7e7;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
}

.login-container {
  background-color: white;
  padding: 20px 15px;
  border-radius: 8px;
  width: 90%;
  max-width: 380px;
  text-align: center;
}

.login-container h1 {
  font-size: 30px;
  color: #1877f2;
  margin-bottom: 24px;
  font-weight: bold;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
  z-index: 1;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999;
  pointer-events: none;
  transition: all 0.2s ease;
  background-color: transparent;
}

.form-group input:focus::placeholder {
  color: transparent;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  left: 10px;
  font-size: 14px;
  color: #1877f2;
  background-color: white;
  padding: 0 5px;
  z-index: 2;
}

.form-group .toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
  color: #999;
  background: none;
  border: none;
}

.login-container input[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: #1877f2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  cursor: pointer;
  margin-top: 10px;
}

.login-container input[type="submit"]:hover {
  background-color: #165fba;
}

.login-container a {
  color: #1877f2;
  font-size: 15px;
  text-decoration: none;
  display: block;
  margin-top: 16px;
}

.login-container .signup-link {
  font-weight: bold;
  margin-top: 24px;
  font-size: 16px;
}
.logo-container {
  display:none;
}
.navbar {
  z-index: 10000000000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  
  max-height: 30px;
  border-bottom: 1px solid #f2f2f2;
}
.navbar-admin {
  z-index: 10000000000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  
  max-height: 30px;
  border-bottom: 1px solid #f2f2f2;
  
}
.navbar-icon {
  margin-right: 20px !important;
  margin-top: 5px !important;
}
.gradient-text {
  font-weight: bold;
  font-family: "Tilt Neon", sans-serif;
  background-image: linear-gradient(
      90deg,
      rgb(118, 167, 63) 0%,
      rgb(51, 143, 118) 40%,
      rgb(55, 141, 167) 50%,
      rgb(117, 152, 242) 70%,
      rgb(144, 118, 236) 100%
  );
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
  padding: 10px;
  box-sizing: border-box;
}
.logoname {
  height: 40px;
  margin-top: 5px;
}
.logoname-inicio {
  height: 50px;
  margin-bottom: 10px;
}
.loading-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(240, 240, 240, 0.692);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
display: none; /* Oculto por defecto */
}

.loading-content {
display: flex;
align-items: center;
justify-content: center;
background-color: rgb(252, 249, 249);
width: 100px; /* Ancho cuadrado */
height: 100px; /* Alto cuadrado */
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.spinner {
width: 30px;
height: 30px;
border: 6px solid #dddfe2;
border-top-color: #1877f2;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#error {
display: none;
}
#administracion-content {
margin: 0 auto;
display: block;
flex-direction: column;
gap: 5px;
padding: 10px;
}

.mascota-item {
display: flex;
justify-content: space-between;
align-items: center;
background-color: none;
padding: 5px;
width: 95%; /* Asegúrate de que sea menor que el 100% */
border-radius: 8px;

margin: 0 auto; /* Esto centra el div horizontalmente */
}


.mascota-id {
font-size: 16px;
font-weight: 500;
color: #5c5858;
}

.mascota-button {
padding: 8px 12px;
background-color: none;
color: white;
font-weight: 500;
border: none;
border-radius: 10px;
cursor: pointer;
background-color: #007bff;
}

.dark-mode .mascota-button {
padding: 8px 12px;
background-color: #515151;
color: #65afff;
font-weight: 500;
border: none;
border-radius: 10px;
cursor: pointer;
background-color: #333333;
}

.mascota-button:hover {
background-color: #3498db;
color: #f2f2f2;
}
.bx-menu-alt-left {
font-size: 27px;
margin-left: 15px;
}
.side-menu {
position: fixed;
left: -250px; /* Oculto fuera de la vista */
top: 0;
width: 250px;
height: 100%;
background-color: #fff;
padding-top: 60px;
transition: 0.3s;
z-index: 1000;
box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1); /* Sombra en el borde derecho */
}


.side-menu a {
padding: 10px 15px;
text-decoration: none;
margin-bottom: 10px;
font-size: 16px;
margin-left: 10px;
max-width: 200px;
font-weight: 400;
color: #4b4a4a;
display: block;
transition: 0.3s;
border-radius: 8px;
background-color: #f5f3f3;
}
.side-menu a span {
margin-left: 35px;
}
.side-menu a:hover {
background-color: #3498db;
color: #eeeeee;
}
.menu-welcome {

font-size: 18px;
color: #686868;
font-weight: 500;
text-align: center;
margin: 0;
margin-top: 10px;
margin-bottom: 20px;
}
.perfil-div {
display: flex;
justify-content: center;
align-items: center;
background-color: #f3f3f3;
border-radius: 50%;
width: 55px;
height: 55px;
margin: 0 auto;
margin-top: 20px;
border: 1px solid #dddddd;
}

.perfil-div img {
max-width: 100%;
max-height: 100%;
height: 45px;
width: 45px;
margin-left: 1px;
}
.side-menu hr {
width: 200px;
border: 1.3px solid #dfdddd;
border-radius: 5px;
margin-bottom: 20px;
}
#administracion-content {
margin-top: 70px;
margin: 0 auto;
background-color: #faf9f9;
width: 95%;
border-radius: 10px;
max-width: 500px;
margin-top: 20px;
padding-bottom: 20px;

} 
#administracion-content hr {
background-color: #e9e8e8;
width: 90%;
border: 1.5px solid #dddddd;
border-radius: 5px;

}
.dark-mode #administracion-content hr {
  border-color: #686868;
}
.tus-mascotas {
color: #575656;
font-weight: 500;
text-align: center;
font-size: 23px;
margin: 0;
margin-bottom: 15px;
margin-top: 10px;
}

#scansContainer {
width: auto;
max-height: 250px; 
overflow-y: auto;  /* Permitir el scroll vertical */
overflow-x: hidden; /* Evitar el scroll horizontal */
padding: 10px;
margin-bottom: 10px;
transition: max-height 1s ease;
word-wrap: break-word; /* Ajustar palabras largas para que no se desborden */
}


.scan {
padding: 10px;
border-bottom: 2.5px solid #e9e8e8;
max-width: 100%;
}
.scan h3 {
font-weight: 600;
font-size: 15px;
margin-bottom: 8px;
color: #686868;
}
.scan p {
font-size: 15px;
font-weight: 400;
margin-top: 0;
margin-bottom: 5px;
}
.scan:last-child {
border-bottom: none;
}

#toggleScrollButton {
display: block; 
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
margin: 10px auto; 
width: 50%; 
text-align: center;
border-radius: 5px;
}


#toggleScrollButton:hover {
background-color: #e2e2e2;
color: #3498db;
}
.contenido-administracion {
max-height: none;
}
.dark-mode .contenido-administracion {
  background-color: #5c5858;
}
.escaneos-div {

padding: 10px;
max-width: 500px;
background-color: #faf9f9;
margin: 0 auto;
width: 95%;
min-height: 100px;
max-height: auto;
border-radius: 10px;
margin-top: 30px;
margin-bottom: 50px;
}
#logout {
font-size: 25px;
position: absolute;
top: 0;
right: 0;
margin-right: 20px;
margin-top: 65px;
color: #f84d4d;
}
.icon {
position: absolute;
font-size: 25px;
transform: translateY(-4px); /* Mueve el icono hacia arriba */
}
.icon2 {
position: absolute;
font-size: 25px;
transform: translateY(-3px); /* Mueve el icono hacia arriba */
}
body.dark-mode {
  background-color: #3d3d3d !important;
}
.dark-mode .navbar-admin {
  background-color: #222222;
  border-color: #494949;
}
.dark-mode .navbar {
  background-color: #222222;
  border-color: #494949;
}
.dark-mode #menu-icon {
  color: #fff;
}
.dark-mode #administracion-content {
  background-color: #222222;
}
.dark-mode .maintance-div-alert {
  background-color: #222222;
}
.dark-mode .maintance-div-alert h3 {
  color: #f0f0f0;
}
.dark-mode .maintance-div-alert p {
  color: #f0f0f0;
}
.dark-mode .new-div-alert {
  background-color: #222222;
}
.dark-mode .new-div-alert h3 {
  color: #f0f0f0;
}
.dark-mode .new-div-alert p {
  color: #f0f0f0;
}
.dark-mode .tus-mascotas {
  color: #e6e6e6;
}
.dark-mode .mascota-item span {
  color: #e6e6e6;
}
.mascota-item span {
  margin-right: 10px;
}
.dark-mode .escaneos-div {
  background-color: #222222;
}
.dark-mode .escaneos-div p {
  color: #f0f0f0;
}
.dark-mode .escaneos-div h3 {
  color: #e6e6e6;
}
.dark-mode .scan {
  border-bottom: 2.5px solid #686868;
}
.dark-mode .navbar-icon {
  fill: #fff;
}
.dark-mode .side-menu {
  background-color: #222222;
  box-shadow: 5px 0 20px rgba(85, 85, 85, 0.1);
}
.dark-mode .perfil-div {
  background-color: #f0f0f0;
}
.dark-mode .perfil-div img {
  color: #e2e2e2;
}
.dark-mode .menu-welcome {
  color: #e6e6e6;
}
.dark-mode .side-menu hr {
  border-color: #686868;
}
.dark-mode .side-menu a {
  background-color: #686868;
  color: #e9e8e8;
}
.dark-mode .login-container {
  background-color: #222222;
}
.dark-mode .form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  background-color: #222222;
  color: #fdfdfd;
  border-radius: 5px;
}
.dark-mode .form-group input {
  color: #e7e7e7;
}
.dark-mode #error {
  color:#fd6161;
}
#error {
  margin-top: 0;
  color: #f84d4d;
}
/* Estilos del cuadro flotante */
#success-message {
  position: fixed;
  top: -100px; /* Inicialmente fuera de la pantalla */
  margin: 0 auto;
  background-color: #4caf50;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, top 0.5s ease;
  z-index: 1000;
}

/* Mostrar el cuadro cuando esté activo, desplazándose hacia abajo */
#success-message.show {
  top: 70px; /* Se desplaza hacia abajo a esta posición */
}
.carousel {
  height: 90px !important;
  position: relative;
  width: 95%;
  max-width: 500px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  margin-top: 70px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* Asegura que ocupe todo el contenedor */
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Se asegura de que las imágenes se posicionen correctamente */
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* La imagen se adapta al contenedor deformándose si es necesario */
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.205);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.37);
}
#qr-button {
  display: inline-flex; /* Alineación del contenido (texto + ícono) */
  align-items: center;  /* Centra el contenido verticalmente */
  background-color: #f1f1f1;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 15px; /* Ajusta según el diseño deseado */
  padding-right: 15px; /* Ajusta según el diseño deseado */
  border-radius: 5px;
}

#qr-button i {
  margin-left: 8px;
  font-size: 19px; 
}
        /* Estilos del contenedor principal */
        .app {
            display: none;
            justify-content: center; 
            align-items: center; 
            width: 98%; 
            height: 50px; 
            margin: 0 auto; 
            background-color: #fafafa; 
            border-radius: 5px; 
            max-width: 510px;
            margin-top: 18px;
        }
        .dark-mode .app {
          background-color: #222222;
        }

        /* Estilo del texto */
        .app p {
            font-size: 1rem;
            color: #333;
            margin: 0;
        }
        .dark-mode .app p {
          color: #eeeeee;
        }
        /* Estilo del botón */
        .app button {
            padding: 7px 15px;
            font-size: 1rem;
            color: #fff;
            background-color: #007bff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 10px; /* Espacio entre el texto y el botón */
        }

        /* Efecto hover en el botón */
        .app button:hover {
            background-color: #0056b3;
        }
        [data-android="true"] .app {
          display: flex;
      }
      [data-android="true"][data-version="true"] .app {
        display: none;
    }
      .bx-shopping-bag {
        margin: 0;
      }
      /* Estilo del contenedor del banner */
      .update-banner {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #007BFF;
        color: #fff;
        padding: 10px 20px;
        font-size: 16px;
        font-family: Arial, sans-serif;
        display: none; /* Oculto por defecto */
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.5s ease;
        z-index: 100;
        margin-top: 50px;
        text-align: center;
        box-sizing: border-box;
    }
    /* Animación desde arriba */
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Estilo del botón */
    .update-button {
        background-color: #00ffff;
        color: #000;
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
        margin-left: 10px;
    }

    .update-button:hover {
        background-color: #e6b800;
    }
    #config {
      display: block;
      font-size: 25px;
      position: absolute;
      top: 0;
      left: 0;
      margin-left: 20px;
      margin-top: 65px;
      color: #444444;
      }
      .dark-mode #config {
        color: #e9e8e8;
      }
      /* Estilo del modal */
    

    /* Contenido del modal */
    #obsoletoModal {
      display: none;
      position: absolute;
      top: 60px;
      right: 10px;
      background: #fff;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      text-align: center;
      max-width: 300px;
      width: 90%;
      position: fixed;
      z-index: 10000;
      box-sizing: border-box;
    }

    /* Botón de cierre */
    .obsoleto-close-btn {
      margin-top: 10px;
      padding: 10px 20px;
      background-color: #f44336;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .obsoleto-close-btn:hover {
      background-color: #d32f2f;
    }
    .obsoleto-play-store {
      background-color: #007BFF;
      margin-top: 10px;
      padding: 10px 20px;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    .maintance-cartel {
      position: relative;
      background: none;
      background-position: center 15%;
      height: 90px;
      width: 240px;
      margin-left: 5px;
      padding: px;
      bottom: 0;
      border-radius: 5px;
      color: #f1f1f1;
      margin-top: 10px;
      margin-bottom: 0;
  }
  .dark-mode .maintance-cartel {
    background-position: center 10%;
  }
  .maintance-cartel h6 {
    font-family: 'Noto Sans', sans-serif !important;
    margin-bottom: 0;
    margin-left: 5px;
    text-align: center;
    font-weight: 300;
    color: #3d3d3d;
}
.dark-mode .maintance-cartel h5 {
 color: #f1f1f1;
}
.dark-mode .maintance-cartel h6 {
    color: #f5f5f5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Ajuste para modo oscuro */
}

.maintance-cartel h5 {
    font-family: 'Noto Sans', sans-serif !important;
    margin: 0;
    margin-top: 5px;
    margin-left: 5px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 0;
    font-weight: 300;
    color: #3d3d3d;
    
}

  #gotomaintance {
    margin: 0 auto;
    background-color: rgb(48, 153, 223);
    padding: 8px;
    border: none;
    border-radius: 5px;
    color: #e7e7e7;
    margin-top: 10px;
  }
  #color-maintance {
    font-size: 14px;
  }
.maintance-div-alert {
  display: none;
  position: relative;
margin: 0 auto;
background-color: #faf9f9;
width: 95%;
border-radius: 10px;
max-width: 500px;
margin-top: 70px;
padding-bottom: 20px;
text-align: center;

}
.new-div-alert {
  position: relative;
margin: 0 auto;
background-color: #faf9f9;
width: 99%;
border-radius: 10px;
max-width: 510px;
margin-top: 20px;
padding-bottom: 20px;
text-align: center;
}
.no-mascotas-message {
  text-align: center;
}
.dark-mode .no-mascotas-message {
  color: #f0f0f0;
}
.alert-icon {
  color: red;
  font-size: 50px;
  text-align: center;
  margin-top: 30px;
}
.new-icon {
  color: #3498db;
  font-size: 50px;
  text-align: center;
  margin-top: 30px;
}
.maintance-div-alert h3 {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 18px;
}
.new-div-alert h3 {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 18px;
}
.new-div-alert p {
  font-family: 'Noto Sans', sans-serif !important;
  padding: 10px;
  padding-left: 30px;
  padding-right: 20px;
  text-align: center;
}
.maintance-div-alert p {
  font-family: 'Noto Sans', sans-serif !important;
  padding: 10px;
  padding-left: 30px;
  padding-right: 20px;
  text-align: left;
}
.to-maintance-button {
  padding: 8px;
  border: none;
  background-color: #007bff;
  border-radius: 5px;
  color: #fff;
}
.error-message {
  text-align: center;
  margin: 0 auto;
}
.dark-mode .error-message {
  color: #f1f1f1;
}
#owner-qrs {
  display: none;
  margin-top: 50px;
}
.drop-area {
  position: relative;
  width: 300px;
  height: 150px;
  border: 2px dashed #cecece;
  border-radius: 10px;
  background-color: #e9e9e9;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  margin-top: 0 !important;
  margin: 0 auto;
}
.drop-area p {
  margin-bottom: 1px;
}
.dark-mode .drop-area {
  position: relative;
  width: 300px;
  height: 150px;
  border: 2px dashed #555555;
  border-radius: 10px;
  background-color: #303030;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  margin-top: 40px;
}

.drop-area.dragover {
  background-color: #404040;
  border-color: #0078ff;
}

.placeholder {
  text-align: center;
  color: #686868;
}
.dark-mode .placeholder {
  color: #cecece;
}
.placeholder i {
  font-size: 40px;
}
.placeholder .icon {
  font-size: 50px;
}

input[type="file"] {
  display: none; /* Ocultar el input */
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}

.gallery-item {
  position: relative;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #555555;
  background-color: #303030;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .close-button {
  position: absolute !important;
  top: -15px !important;
  right: 5px !important;
  background: #ff4d4d !important;
  color: #ffffff !important;
  border: none !important;
  padding: 3px 6px !important;
  border-radius: 50% !important;
  font-size: 12px !important;
  cursor: pointer !important;
}

.gallery-item .close-button:hover {
  background: #cc0000;
}
#new-qr {
  margin: 0 auto;
  max-width: 510px;
  width: 90%;
  padding: 10px;
  background-color: #ffffff;
  margin-top: 20px;
  border-radius: 12px;
}
#new-qr h1 {
  font-size: 25px;
  text-align: center;
}
.upload-container {
  margin: 0 auto;
}
#qr-card {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#qr-card img {
  max-width: 100px;
  height: auto;
}
/* QR Container */
#qr-container {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

#qr-container div {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.dark-mode #qr-container div {
  background-color: #222222;
  border: 1px solid #464646;
}
#qr-container div:hover {
  transform: translateY(-5px);
}
.dark-mode #qr-container h3 {
  color: #eeeeee;
}
/* QR Element */
#qr-container h3 {
  margin: 0 0 10px;
  font-size: 18px;
  text-align: center;
}

#qr-container img {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.dark-mode #qr-container img {
  border: 1px solid #686868;
}
/* Form Styles */
#qr-container form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.dark-mode #qr-container form label {
  color: #eeeeee;
}
#qr-container form label {
  grid-column: span 2;
  font-size: 14px;
  font-weight: bold;
}

#qr-container form input[type="color"] {
  width: 100% !important;
  padding: 3px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
#qr-container form select {
  grid-column: span 2;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.dark-mode #qr-container form select {
  background-color: #3a3a3a;
  color: #f0f0f0;
  border: 1px solid #555555;
}
.dark-mode #qr-container form input[type="text"] {
  background-color: #3a3a3a;
  color: #f0f0f0;
  border: 1px solid #555555;
}
#qr-container form input[type="text"] {
  grid-column: span 2;
  color: #222222;
  background-color: #ffffff;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
#qr-container form button {
  grid-column: span 2;
  padding: 10px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#qr-container form button:hover {
  background-color: #45a049;
}
#new-qr-processing {
  width: 90%;
  max-width: 510px;
  margin: 0 auto;
  background-color: #faf9f9;
  padding: 10px;
  margin-top: 30px;
  text-align: center;
  border-radius: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.dark-mode #new-qr-processing {
  background-color: #222222;
}
.dark-mode #new-qr-processing h3 {
  color: #e7e7e7;
}
#new-qr-processing h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #333;
  padding: 5px;
}
#results-container {
  padding: 10px;
  width: 90%;
  max-width: 510px;
  background-color: #faf9f9;
  border-radius: 12px;
  margin: 0 auto;
  margin-top: 10px;
  padding-bottom: 20px;
}
.pendiente-icon {
  color: orange;
  font-size: 50px;
  margin-bottom: 5px;
  margin-top: 10px;
}
#results-container h1 {
  font-family: 'Noto Sans', sans-serif !important;
  text-align: center;
  font-size: 23px;
}
.match-result {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  background-color: #eeeeee;
  padding: 10px;
  border-radius: 12px;
  margin-top: 5px;
  text-align: center;
}
.match-result strong {
  font-weight: 600;
}
.match-result button {
  padding: 7px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: #f3f3f3;
}
.dark-mode #new-qr {
  background-color: #222222;
}
.dark-mode #new-qr h1 {
  color: #e9e9e9;
}
.dark-mode #new-qr p {
  color:#e7e7e7;
}
.dark-mode #new-qr h6 {
  color: #e9e8e8;
}
#new-qr h6 {
 margin: 0;
 font-size: 16px;
 text-align: center;
 margin-bottom: 3px;
 color: #3f3f3f;
}
#new-qr p {
  text-align: center;
}
.qr-price {
  color: rgb(40, 197, 53) !important;
  margin-bottom: 10px !important;
  font-size: 18px !important;
}
.alias {
  color: #007bff !important;
  margin-bottom: 10px !important;
  font-size: 18px !important;
}
#new-qr button {
  display: flex;
  position: relative;
   margin: 0 auto !important;
   padding: 10px;
   border: none;
   border-radius: 7px;
   background-color: #3498db;
   color: #f3f3f3;
   margin-top: 20px !important;
   margin-bottom: 10px !important;
}
#new-qr button:disabled {
  background-color: #999;
}
.dark-mode .alias {
  color: #51a2d8 !important;
}
.dark-mode .match-result {
  background-color: #353535;
}
.dark-mode #results-container {
  background-color: #222222;
}
.dark-mode #results-container h1 {
  color: #f1f1f1;
}
.dark-mode .match-result p {
  color: #e9e9e9;
}
.tus-qrs {
  font-family: 'Noto Sans', sans-serif !important;
  margin: 0 auto;
  text-align: center;
  width: 90%;
  background-color: #ffffff;
  padding: 12px;
  margin-top: 15px;
  border: none;
  border-radius: 7px;
font-weight: bold;
max-width: 510px;
color: #3f3f3f;
}
.dark-mode .tus-qrs {
  background-color: #222222;
  color: #dfdddd;
}
/* ============================================
   SISTEMA DE MODALES PERSONALIZADOS
   ============================================ */

/* Variables para modales */
:root {
  --modal-overlay: rgba(0, 0, 0, 0.7);
  --modal-bg: #ffffff;
  --modal-border: #e9ecef;
  --modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --modal-header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --modal-header-color: #ffffff;
  --modal-radius: 16px;
  --modal-padding: 24px;
  --modal-width: 500px;
  --modal-max-height: 85vh;
}

.dark-mode {
  --modal-overlay: rgba(0, 0, 0, 0.85);
  --modal-bg: #1e1e1e;
  --modal-border: #404040;
  --modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --modal-header-bg: linear-gradient(135deg, #4a90e2 0%, #9d6bff 100%);
}

/* Overlay del modal */
.modal-suscripcion {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

/* Contenido del modal */
.modal-contenido {
  background: var(--modal-bg);
  border-radius: var(--modal-radius);
  width: 100%;
  max-width: var(--modal-width);
  max-height: var(--modal-max-height);
  overflow: hidden;
  box-shadow: var(--modal-shadow);
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  margin-top: 40px;
  flex-direction: column;
  border: 1px solid var(--modal-border);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal grande para resumen */
.modal-grande .modal-contenido {
  max-width: 600px;
}

/* Header del modal */
.modal-header {
  padding: 20px;
  background: #1976d2;
  color: var(--modal-header-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 70px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.modal-header h3 i {
  font-size: 22px;
}

.cerrar-modal {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.cerrar-modal:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Body del modal */
.modal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(var(--modal-max-height) - 140px);
}

/* Footer del modal */
.modal-footer {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dark-mode .modal-footer {
  background: var(--bg-tertiary);
}

/* ============================================
   PASOS DEL PROCESO DE PAGO
   ============================================ */

.pasos-pago {
  display: flex;
  margin-bottom: 32px;
  margin-top: 10px;
  position: relative;
  counter-reset: step;
}

.pasos-pago::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 25px;
  right: 25px;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.paso {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  min-width: 80px;
}

.paso:before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  line-height: 32px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
  background: var(--modal-bg);
  font-weight: bold;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.dark-mode .paso:before {
  color: white;
}

.paso.activo:before {
  border-color: var(--primary-color);
  background: var(--primary-color);
  
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}
.dark-mode .paso.activo:before {
color: white;
}

.paso.completado:before {
  border-color: var(--success-color);
  background: var(--success-color);
  color: rgb(119, 198, 0);
  content: "✓";
  animation: checkmark 0.3s ease;
}

.dark-mode .paso.completado:before {
color: greenyellow;
}

@keyframes checkmark {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.paso .texto-paso {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dark-mode .paso .texto-paso {
  color: white;
}

.paso.activo .texto-paso {
  color: var(--primary-color);
  font-weight: 600;
}
.dark-mode .paso.activo .texto-paso {
  color: white;
}
/* Contenido de cada paso */
.contenido-paso {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contenido-paso h4 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 0 0 20px 0;
  font-weight: 600;
}
.dark-mode .contenido-paso h4 {
  color: white;
}
/* ============================================
   DETALLES DEL PAGO - DISEÑO MODERNO
   ============================================ */

.detalles-pago {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  border: 1px solid rgba(203, 213, 224, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detalles-pago:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.6);
}

/* Elemento decorativo superior */
.detalles-pago::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  border-radius: 16px 16px 0 0;
}

/* Encabezado del contenedor */
.detalles-pago .encabezado-detalles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(203, 213, 224, 0.4);
}

.detalles-pago .titulo-detalles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detalles-pago .titulo-detalles i {
  font-size: 22px;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detalles-pago .titulo-detalles h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.detalles-pago .badge-estado {
  padding: 8px 16px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Filas de detalles - Diseño moderno */
.detalles-pago .fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.detalles-pago .fila:hover {
  transform: translateX(4px);
  border-left-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.detalles-pago .fila::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detalles-pago .fila:hover::before {
  opacity: 1;
}

.detalles-pago .fila .etiqueta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
}

.detalles-pago .fila .etiqueta i {
  font-size: 16px;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.08);
}

.detalles-pago .fila .valor {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
  font-feature-settings: "tnum";
}

.detalles-pago .fila .valor.subtotal {
  color: #475569;
}

.detalles-pago .fila .valor.descuento {
  color: #10b981;
}

.detalles-pago .fila .valor.impuesto {
  color: #f59e0b;
}

.detalles-pago .fila .valor.envio {
  color: #8b5cf6;
}

/* Separador decorativo */
.detalles-pago .separador {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 20px 0;
  position: relative;
}

.detalles-pago .separador::after {
  content: '•••';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f8fafc;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 4px;
}

/* Fila total - Destacada */
.detalles-pago .fila.total {
  background: #007bff;
  color: white;
  border: none;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 20px 24px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}



.detalles-pago .fila.total::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.detalles-pago .fila.total .etiqueta {
  color: #f1f5f9;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detalles-pago .fila.total .etiqueta i {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}

.detalles-pago .fila.total .valor {
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  padding-right: 8px;
}

.detalles-pago .fila.total .valor::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
}

/* Información adicional */
.detalles-pago .info-extra {
  margin-top: 20px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.detalles-pago .info-extra i {
  font-size: 18px;
  color: #3b82f6;
  flex-shrink: 0;
}

.detalles-pago .info-extra p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.detalles-pago .info-extra a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.detalles-pago .info-extra a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ============================================
   MODO OSCURO - DETALLES DEL PAGO
   ============================================ */

.dark-mode .detalles-pago {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(71, 85, 105, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .detalles-pago:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 116, 139, 0.6);
}

.dark-mode .detalles-pago .encabezado-detalles {
  border-bottom-color: rgba(71, 85, 105, 0.4);
}

.dark-mode .detalles-pago .titulo-detalles i {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}

.dark-mode .detalles-pago .titulo-detalles h3 {
  color: #f1f5f9;
}

.dark-mode .detalles-pago .badge-estado {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.dark-mode .detalles-pago .fila {
  background: white;
  color: #000;

}

.dark-mode .detalles-pago .fila:hover {
  border-left-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
}

.dark-mode .detalles-pago .fila::before {
  background: #94a3b8;
}

.dark-mode .detalles-pago .fila .etiqueta {
  color: #cbd5e1;
}

.dark-mode .detalles-pago .fila .etiqueta i {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
}

.dark-mode .detalles-pago .fila .valor {
  color: #f1f5f9;
}

.dark-mode .detalles-pago .fila .valor.subtotal {
  color: #94a3b8;
}

.dark-mode .detalles-pago .fila .valor.descuento {
  color: #34d399;
}

.dark-mode .detalles-pago .fila .valor.impuesto {
  color: #fbbf24;
}

.dark-mode .detalles-pago .fila .valor.envio {
  color: #a78bfa;
}

.dark-mode .detalles-pago .separador {
  background: linear-gradient(90deg, transparent, #475569, transparent);
}

.dark-mode .detalles-pago .separador::after {
  background: #1e293b;
  color: #64748b;
}

.dark-mode .detalles-pago .fila.total {
  background: white;
  color: black;
}

.dark-mode .detalles-pago .fila.total::before {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
}

.dark-mode .detalles-pago .fila.total .etiqueta {
  color: #e2e8f0;
}

.dark-mode .detalles-pago .fila.total .etiqueta i {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.2);
}

.dark-mode .detalles-pago .fila.total .valor {
  color: white;
}

.dark-mode .detalles-pago .info-extra {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.dark-mode .detalles-pago .info-extra i {
  color: #60a5fa;
}

.dark-mode .detalles-pago .info-extra p {
  color: #cbd5e1;
}

.dark-mode .detalles-pago .info-extra a {
  color: #93c5fd;
}

.dark-mode .detalles-pago .info-extra a:hover {
  color: #60a5fa;
}

/* ============================================
   INFORMACIÓN SUSCRIPCIÓN - DISEÑO MODERNO
   ============================================ */

.info-suscripcion {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid rgba(253, 230, 138, 0.5);
  position: relative;
  overflow: hidden;
}

.dark-mode .info-suscripcion {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(253, 230, 138, 0.2);
}

.info-suscripcion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 16px 16px 0 0;
}

.info-suscripcion .encabezado-suscripcion {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(253, 230, 138, 0.4);
}

.dark-mode .info-suscripcion .encabezado-suscripcion {
  border-bottom-color: rgba(253, 230, 138, 0.2);
}

.info-suscripcion .encabezado-suscripcion i {
  font-size: 24px;
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .info-suscripcion .encabezado-suscripcion i {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.info-suscripcion .encabezado-suscripcion h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #92400e;
  flex: 1;
}

.dark-mode .info-suscripcion .encabezado-suscripcion h3 {
  color: #fde68a;
}

.info-suscripcion .badge-suscripcion {
  padding: 8px 16px;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.dark-mode .info-suscripcion .badge-suscripcion {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Filas de información de suscripción */
.info-suscripcion .fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(253, 230, 138, 0.3);
  transition: all 0.25s ease;
  position: relative;
}

.dark-mode .info-suscripcion .fila {
  background: #1e293b;
  border: 1px solid rgba(253, 230, 138, 0.2);
}

.info-suscripcion .fila:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
}

.dark-mode .info-suscripcion .fila:hover {
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
}

.info-suscripcion .fila .etiqueta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #78350f;
  font-size: 15px;
  font-weight: 500;
}

.dark-mode .info-suscripcion .fila .etiqueta {
  color: #fde68a;
}

.info-suscripcion .fila .etiqueta i {
  font-size: 16px;
  color: #b45309;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 83, 9, 0.1);
}

.dark-mode .info-suscripcion .fila .etiqueta i {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.info-suscripcion .fila .valor {
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  text-align: right;
}

.dark-mode .info-suscripcion .fila .valor {
  color: #fde68a;
}

/* Estado activo/vencido */
.info-suscripcion .fila.activa {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.dark-mode .info-suscripcion .fila.activa {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
  border-left-color: #10b981;
}

.info-suscripcion .fila.vencida {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.dark-mode .info-suscripcion .fila.vencida {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
  border-left-color: #ef4444;
}

/* Pie de información */
.info-suscripcion .pie-info {
  margin-top: 20px;
  padding: 16px;
  background: rgba(253, 230, 138, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(253, 230, 138, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dark-mode .info-suscripcion .pie-info {
  background: rgba(253, 230, 138, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.2);
}

.info-suscripcion .pie-info i {
  font-size: 18px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.dark-mode .info-suscripcion .pie-info i {
  color: #fbbf24;
}

.info-suscripcion .pie-info p {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}

.dark-mode .info-suscripcion .pie-info p {
  color: #fde68a;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .detalles-pago {
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 24px;
  }
  
  .detalles-pago .encabezado-detalles {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .detalles-pago .titulo-detalles h3 {
    font-size: 18px;
  }
  
  .detalles-pago .fila {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
  
  .detalles-pago .fila .valor {
    text-align: left;
    width: 100%;
  }
  
  .detalles-pago .fila.total {
    flex-direction: row;
    align-items: center;
  }
  
  .detalles-pago .fila.total .valor {
    font-size: 24px;
  }
  
  .info-suscripcion {
    padding: 20px;
  }
  
  .info-suscripcion .encabezado-suscripcion {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .info-suscripcion .fila {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .info-suscripcion .fila .valor {
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .detalles-pago {
    padding: 16px;
    border-radius: 12px;
  }
  
  .detalles-pago .titulo-detalles i {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .detalles-pago .fila.total .valor {
    font-size: 22px;
  }
  
  .info-suscripcion {
    padding: 16px;
  }
  
  .info-suscripcion .encabezado-suscripcion i {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes entradaSuave {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detalles-pago {
  animation: entradaSuave 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-suscripcion {
  animation: entradaSuave 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

/* Efecto de brillo en hover */
.detalles-pago .fila.total:hover::before {
  animation: brilloFlotante 3s ease-in-out infinite;
}

@keyframes brilloFlotante {
  0%, 100% {
    transform: translate(30px, -30px) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(40px, -40px) scale(1.1);
    opacity: 0.5;
  }
}
/* ============================================
   OPCIONES DE MESES
   ============================================ */

.opciones-meses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.opcion-mes {
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--modal-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.opcion-mes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(246, 246, 246);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dark-mode .opcion-mes::before {
  background: white;
  color: black;
}

.opcion-mes:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.opcion-mes.seleccionada {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #494949;
  font-weight: bold;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.dark-mode .opcion-mes.seleccionada {
  color: white;
}

.opcion-mes.seleccionada::before {
  opacity: 1;
  opacity: 80%;
}

.opcion-mes .meses {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.dark-mode .opcion-mes .meses {
  color: white;
}
.opcion-mes.seleccionada .meses {
  color: #494949;
}
.dark-mode .opcion-mes.seleccionada .meses {
  color: black;
}
.opcion-mes .precio {
  font-size: 16px;
  color: var(--success-color);
  margin-bottom: 4px;
  font-weight: bold;
  position: relative;
  z-index: 2;
}
.dark-mode .opcion-mes .precio {
  color: white;
}

.opcion-mes.seleccionada .precio {
  color: #494949;
}
.dark-mode .opcion-mes.seleccionada .precio {
  color: black;
}

.opcion-mes .descuento {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}
.dark-mode .opcion-mes .descuento {
  color: white;
}

.opcion-mes.seleccionada .descuento {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ============================================
   BOTONES DE MODAL
   ============================================ */

.btn-modal {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.btn-modal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modal:hover::before {
  width: 300px;
  height: 300px;
}

.btn-modal.primario {
  background: #1976d2;
  color:white;
}
.dark-mode .btn-modal.primario {
  color: white;
  background-color: #0078ff;
}

.btn-modal.primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-modal.secundario {
  background: black;
  color: white;
}

.btn-modal.secundario:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-modal:disabled::before {
  display: none;
}

/* ============================================
   CONTENIDO DINÁMICO DE MODALES
   ============================================ */

/* Info modal */
.info-modal {
  background: rgb(248, 248, 248);
  border-left: 4px solid var(--info-color);
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dark-mode .info-modal {
  background: var(--bg-tertiary);
}

.info-modal i {
  color: var(--info-color);
  font-size: 20px;
  flex-shrink: 0;
}
.dark-mode .info-modal i {
  color: white;
}
.info-modal p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.dark-mode .info-modal p {
  color: #f3f3f3;
}
/* Configuración automática */
.config-automatica .grupo-config {
  margin-bottom: 20px;
}

.config-automatica label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.config-automatica select,
.config-automatica input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--modal-bg);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.config-automatica select:focus,
.config-automatica input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.config-automatica input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* Guía de pagos */
.guia-contenido {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.guia-contenido h3 {
  color: var(--primary-color);
  margin: 0 0 20px 0;
  font-size: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.guia-contenido h4 {
  color: var(--text-primary);
  margin: 25px 0 15px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guia-contenido p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 8px 0;
}

.guia-contenido ol,
.guia-contenido ul {
  padding-left: 20px;
  margin: 15px 0;
}

.guia-contenido li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guia-contenido strong {
  color: var(--text-primary);
}

/* Resumen de suscripciones */
.resumen-contenido {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.resumen-contenido h3 {
  color: var(--primary-color);
  margin: 0 0 20px 0;
  font-size: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

/* ============================================
   ESTILOS PARA EL PANEL LATERAL
   ============================================ */

.resumen-suscripciones {
  background: linear-gradient(135deg, #4a90e2, #9d6bff);
  color: white;
  padding: 16px;
  margin: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.resumen-suscripciones::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.resumen-suscripciones:hover::before {
  opacity: 1;
}

.resumen-suscripciones.mostrar {
  display: block;
}

.resumen-suscripciones:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.resumen-suscripciones .titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.resumen-suscripciones .titulo h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dark-mode .resumen-contenido h4 {
  color: white !important;
}
.resumen-suscripciones .titulo i {
  font-size: 18px;
  transition: transform 0.3s;
}

.resumen-suscripciones:hover .titulo i {
  animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateX(0); }
  to { transform: translateX(3px); }
}

.resumen-suscripciones .total-monto {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin: 16px 0;
  position: relative;
  z-index: 2;
}

.resumen-suscripciones .total-monto small {
  font-size: 14px;
  opacity: 0.8;
  font-weight: normal;
}

.resumen-suscripciones .detalle-resumen {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  gap: 8px;
}

.resumen-suscripciones .detalle-resumen span {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.resumen-suscripciones .detalle-resumen .numero {
  font-weight: bold;
  font-size: 14px;
}

/* ============================================
   BADGES Y ESTADOS PARA MASCOTAS
   ============================================ */

.badge-suscripcion {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  border: 2px solid var(--bg-primary);
}
.dark-mode .badge-suscripcion {
  color: white;
}

.badge-suscripcion i {
  font-size: 12px;
}

.estado-suscripcion {
  display: inline-block;
  position: absolute;
  left: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.estado-suscripcion.success {
  background: #d4edda;
 color: #90ee90;
}

.dark-mode .estado-suscripcion.success {
  background: #1a472a;
  color: #90ee90;
}

.estado-suscripcion.warning {
  background: #fff3cd;
  color: #856404;
}

.dark-mode .estado-suscripcion.warning {
  background: #5d4037;
  color: #ffcc80;
}

.estado-suscripcion.danger {
  background: #f8d7da;
  color: #721c24;
}

.dark-mode .estado-suscripcion.danger {
  background: #4a1c24;
  color: #ff8a80;
}

.estado-suscripcion.trial {
  background: #cce5ff;
  color: #004085;
}

.dark-mode .estado-suscripcion.trial {
  background: #0d47a1;
  color: #bbdefb;
}

/* ============================================
   ACCIONES DE SUSCRIPCIÓN EN CARDS
   ============================================ */

.acciones-suscripcion {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-suscripcion {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-suscripcion::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-suscripcion:hover::before {
  left: 100%;
}

.btn-suscripcion.renovar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-suscripcion.configurar {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-suscripcion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-suscripcion:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-suscripcion:disabled::before {
  display: none;
}

/* ============================================
   INFORMACIÓN DE SUSCRIPCIÓN EN CARDS
   ============================================ */

.info-suscripcion {
  background: var(--bg-secondary);
  border-radius: 8px;
  
  margin-top: 16px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  width: 100%;
  
}

.dark-mode .info-suscripcion {
  background: var(--bg-tertiary);
}

.info-suscripcion .fila {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  align-items: center;
  flex-wrap: wrap;
}

.info-suscripcion .fila:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-suscripcion .etiqueta {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 120px;
  text-align: center;
  margin: 0 auto;
}

.info-suscripcion .valor {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  flex: 1;
  min-width: 100px;
}

/* ============================================
   RESPONSIVE DESIGN PARA MODALES
   ============================================ */

@media (max-width: 768px) {
  :root {
    --modal-width: 95%;
    --modal-padding: 16px;
    --modal-radius: 12px;
  }
  
  .modal-suscripcion {
    padding: 10px;
  }
  
  .modal-header {
    padding: 7px;
    min-height: 60px;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-footer {
    padding: 16px;
    flex-direction: column;
  }
  
  .btn-modal {
    width: 100%;
    min-width: 0;
  }
  .opciones-meses {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .opcion-mes {
    padding: 16px;
    min-height: 90px;
  }
  
  .opcion-mes .meses {
    font-size: 18px;
  }
  
  .opcion-mes .precio {
    font-size: 14px;
  }
  
  .detalles-pago .fila {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .detalles-pago .fila .valor {
    text-align: left;
  }
  
  .acciones-suscripcion {
    flex-direction: column;
  }
  
  .btn-suscripcion {
    min-width: 100%;
  }
  
  .resumen-suscripciones {
    margin: 10px;
    padding: 12px;
  }
  
  .resumen-suscripciones .total-monto {
    font-size: 22px;
  }
  
  .badge-suscripcion {
    font-size: 10px;
    padding: 3px 8px;
    top: 5px;
    right: 5px;
  }
}

@media (max-width: 480px) {
  .opciones-meses {
    grid-template-columns: 1fr;
  }
  
  .modal-contenido {
    max-height: 80vh;
  }
  
  .btn-suscripcion {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .estado-suscripcion {
    padding: 4px 10px;
    font-size: 10px;
  }
  
  .modal-grande .modal-contenido {
    max-height: 70vh;
  }
}

/* ============================================
   SCROLLBAR PERSONALIZADO PARA MODALES
   ============================================ */

.modal-body::-webkit-scrollbar,
.guia-contenido::-webkit-scrollbar,
.resumen-contenido::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.guia-contenido::-webkit-scrollbar-track,
.resumen-contenido::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb,
.guia-contenido::-webkit-scrollbar-thumb,
.resumen-contenido::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.guia-contenido::-webkit-scrollbar-thumb:hover,
.resumen-contenido::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ============================================
   EFECTOS ESPECIALES
   ============================================ */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Transición suave entre pasos */
.contenido-paso {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Efecto de carga */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.creando-pago h4 {
  color: #4a90e2;
}
.dark-mode .creando-pago h4 {
  color: #51a2d8;
}
.creando-pago p {
  color: #464646;
}
.dark-mode .creando-pago p {
  color: #e0e0e0;
}
/* ============================================
   UTILIDADES PARA CONTENIDO DINÁMICO
   ============================================ */

.text-success {
  color: var(--success-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-success-light {
  background: #d4edda !important;
  color: #155724 !important;
}

.dark-mode .bg-success-light {
  background: #1a472a !important;
  color: #90ee90 !important;
}

.bg-warning-light {
  background: #fff3cd !important;
  color: #856404 !important;
}

.dark-mode .bg-warning-light {
  background: #5d4037 !important;
  color: #ffcc80 !important;
}

.bg-danger-light {
  background: #f8d7da !important;
  color: #721c24 !important;
}

.dark-mode .bg-danger-light {
  background: #4a1c24 !important;
  color: #ff8a80 !important;
}

/* ============================================
   AJUSTES ESPECÍFICOS PARA DARK MODE
   ============================================ */

.dark-mode .modal-contenido {
  background: #1e1e1e;
  border-color: #404040;
}

.dark-mode .modal-header {
  background: #1976d2;
}

.dark-mode .detalles-pago,
.dark-mode .info-modal,
.dark-mode .info-suscripcion {
  background: #2d2d2d;
  border-color: #404040;
}

.dark-mode .opcion-mes:not(.seleccionada) {
  background: #2d2d2d;
  border-color: #404040;
}

.dark-mode .btn-modal.secundario {
  background: #e0e0e0;
  color: #2d2d2d;
}

.dark-mode .config-automatica select,
.dark-mode .config-automatica input[type="email"] {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.dark-mode .config-automatica select:focus,
.dark-mode .config-automatica input[type="email"]:focus {
  border-color: #4a90e2;
}

.dark-mode .guia-contenido h3,
.dark-mode .guia-contenido h4 {
  color: #e0e0e0;
}

.dark-mode .guia-contenido p,
.dark-mode .guia-contenido li {
  color: #b0b0b0;
}

.dark-mode .resumen-suscripciones {
}

.dark-mode .btn-suscripcion.configurar {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
  
}
.dark-mode .red-pago-p {
  color: rgb(246, 246, 246) !important;
}

.dark-mode .transf-exito {
  color: rgb(76, 250, 126);
}

/* ============================================
   CORRECCIÓN PARA QUE EL MODO CLARO SIGA FUNCIONANDO
   ============================================ */

/* Modo oscuro - aplica solo cuando existe la clase dark-mode */
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3),
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div {
  
  border-color: #404040 !important;
}

/* Modo oscuro - textos */
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3) strong,
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div strong {
  color: #e0e0e0 !important;
}

.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3) span:not([style*="background"]),
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div span:not([style*="background"]) {
  color: #ffffff !important;
}

/* Modo oscuro - iconos */
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3) i,
.dark-mode #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div i {
  color: #b0b0b0 !important;
}

/* CORRECCIÓN IMPORTANTE: Las reglas sin .dark-mode NO deben tener estilos oscuros */
/* Esta regla estaba mal - la eliminas o modificas: */

/* MAL - ESTO AFECTA A AMBOS MODOS: */
/* [style*="background: white;"] {
  background: #2d2d2d !important;
} */

/* BIEN - SOLO EN MODO OSCURO: */
.dark-mode [style*="background: white;"],
.dark-mode [style*="background:white;"] {
  background: #2d2d2d !important;
}

.dark-mode [style*="color: #495057;"] {
  color: #e0e0e0 !important;
}

.dark-mode [style*="color: #6c757d;"] {
  color: #b0b0b0 !important;
}

/* ============================================
   REGLAS PARA MODO CLARO (asegurar que se vea blanco)
   ============================================ */

/* Si necesitas forzar el modo claro, agrega esto: */
body:not(.dark-mode) #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3),
body:not(.dark-mode) #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div {
  background: white !important;
  border-color: #dee2e6 !important;
}

body:not(.dark-mode) #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3) strong,
body:not(.dark-mode) #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div strong {
  color: #495057 !important;
}

body:not(.dark-mode) #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(3) span,
body:not(.dark-mode) #modalResumenSuscripciones > div > div.modal-body > div > div:nth-child(5) > div > div span {
  color: #6c757d !important;
}

#UbiB {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 12px auto 0 auto;

  padding: 12px 16px;
  text-align: center;
  text-decoration: none;

  background-color: #1976d2;
  color: #ffffff;
  font-weight: 600;

  border-radius: 8px;
  box-sizing: border-box;
}

/* Hover modo claro */
#UbiB:hover {
  background-color: #125aa0;
}
