
.formulario-newsletter{
  width: 450px;
  height: 250px;
  max-width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}


body.iframe {
  width: 450px !important;
  height: 250px !important;
  max-width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}


body.iframe .swal2-container {
  /* Posicionar en la esquina superior izquierda */
  top: 0px !important;    /* Ajusta según sea necesario */
  left: 0px !important;   /* Ajusta según sea necesario */
  width: 450px !important;
  height: 250px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  position: fixed !important; /* Es crucial para la posición absoluta/fija */

  /* Asegurarse de que el contenedor no esté afectando el tamaño del popup de forma inesperada */
  /* Aunque SweetAlert ya lo maneja, a veces un z-index o overflow pueden interferir. */
  z-index: 1060 !important; /* Asegura que esté por encima de otros elementos, SweetAlert usa 1060 por defecto para el container */
}

/* El cuadro de diálogo de la alerta en sí */
body.iframe .swal2-popup {
  width: 400px !important;
  height: 200px !important;
  max-width: 90% !important; /* Para responsividad */
  max-height: 90% !important; /* Para responsividad */
  box-sizing: border-box;
}


  .formulario-newsletter {
  font-family: 'Montserrat', sans-serif;
}

.formulario-newsletter #form_E {
  max-width: 400px;
  padding-top: 1rem;
  text-align: left;
}

.formulario-newsletter .input-newsletter,
.formulario-newsletter .boton-newsletter {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
}

.formulario-newsletter .input-newsletter::placeholder {
  color: #ccc;
}

.formulario-newsletter .boton-newsletter {
  background-color: orange;
  color: #fff;
  border: 3px solid #fff;
  cursor: pointer;
}

.formulario-newsletter .boton-newsletter:hover {
  opacity: 0.9;
}

.formulario-newsletter .form-group.mb-3 {
  margin-bottom: 0.5rem;
}

.formulario-newsletter .form-check-label small {
  font-size: 0.75rem;
  color: #ccc;
}

.formulario-newsletter a,
.formulario-newsletter a:visited,
.formulario-newsletter a:hover,
.formulario-newsletter a:active {
  color: #2a6f9e;
  text-decoration: underline;
}

.formulario-newsletter .checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.formulario-newsletter .checkbox-line .form-check-input {
  margin: 0;
}

.formulario-newsletter .checkbox-line .form-check-label {
  margin: 0;
  font-size: 0.75rem;
}


/* Admin panel */

/* Estilos generales para el panel de administración */
body {
    background-color: #f8f9fa; 
}

#admin-panel-container {
    max-width: 1200px; 
}

/* --- Cabecera Principal --- */
#admin-panel-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

#admin-panel-title {
    color: #343a40;
    font-weight: 600;
}

#admin-header-actions .btn {
    margin-left: 0.5rem; 
}


/* --- Tarjeta de Registros y Filtros --- */
#registros-card {
    border: none; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    border-radius: 0.5rem;
}

#card-filters-header {
    background-color: #ffffff; 
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

#card-filters-header .form-control,
#card-filters-header .btn-group,
#card-filters-header .form-select {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


/* --- Tabla de Registros --- */
#registros-table {
    margin-bottom: 0; 
}

#registros-table thead th {
    background-color: #f7f7f9;
    font-weight: 600;
    color: #555;
    border-bottom-width: 1px;
    vertical-align: middle;
}

#registros-table tbody td {
    vertical-align: middle; 
    color: #495057;
}

#registros-table tbody tr:hover {
    background-color: #e9ecef; 
}

#tabla-registros-body .text-center {
    padding: 2rem;
    color: #6c757d;
}

#btn_login_adminpanel{
  margin-top: 1rem;
}

#admin-newsletter-login{
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
}

#admin-login-container{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 28rem;
  padding-inline: 1rem;
}

@media screen and (min-width: 2049px){
  #admin-login-container{
    max-width: 32rem;
  }
  body{
    font-size: 1.2em;
  }
}

@media screen and (max-width: 2048px){
  body{
    font-size: 1.05em;
  }
}

@media screen and (max-width: 1630px){
  body{
    font-size: 1em;
  }
}

@media screen and (max-width: 991px){
  #admin-login-container{
    padding-inline: 1.25rem;
  }
  body{
    font-size: 0.95em;
  }
}

@media screen and (max-width: 720px){
  #admin-login-container{
    max-width: 100%;
    padding-inline: 0.75rem;
  }
  body{
    font-size: 0.95em;
  }
}

@media screen and (max-width: 330px){
  body{
    font-size: 0.85em;
  }
}
