/* =============================================
   MODAL DE SEGURIDAD - ESTILOS CSS SIN TAILWIND
   ============================================= */

/* Overlay del modal */
.security-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.security-modal.is-visible {
  display: flex;
  opacity: 1;
}

@media (min-width: 768px) {
  .security-modal {
    padding: 1.5rem;
  }
}

/* Contenedor del modal */
.security-modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Botón de cierre */
.security-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.security-modal-close:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Contenido del modal */
.security-modal-content {
  padding: 1.5rem;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .security-modal-content {
    padding: 3rem;
  }
}

/* =============================================
   HEADER DEL MODAL
   ============================================= */

.security-modal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.security-modal-label {
  color: #dc2626;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.security-modal-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.25;
  color: #111827;
}

@media (min-width: 768px) {
  .security-modal-title {
    font-size: 2.25rem;
  }
}

.security-modal-date {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.security-modal-divider {
  width: 3rem;
  height: 1px;
  background-color: #0044a5;
  margin: 0 auto;
  border: none;
}

/* =============================================
   SECCIÓN DE RESUMEN (ALERTA ROJA)
   ============================================= */

.security-alert-box {
  margin-bottom: 2rem;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 1.25rem;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .security-alert-box {
    padding: 1.5rem;
  }
}

.security-alert-title {
  color: #991b1b;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.security-alert-text {
  color: #7f1d1d;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .security-alert-text {
    font-size: 1rem;
  }
}

.security-alert-text strong {
  font-weight: 600;
}

/* =============================================
   TEXTO GENERAL
   ============================================= */

.security-text-section {
  margin-bottom: 2.5rem;
}

.security-text {
  color: #4b5563;
  font-weight: 300;
  line-height: 1.625;
  font-size: 0.875rem;
  text-align: justify;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .security-text {
    font-size: 1rem;
  }
}

.security-text strong {
  font-weight: 600;
  color: #374151;
}

/* Botón de reserva segura */
.security-cta-container {
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .security-cta-container {
    text-align: left;
  }
}

.security-cta-button {
  display: inline-block;
  background-color: #0044a5;
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.security-cta-button:hover {
  background-color: #1e40af;
}

/* =============================================
   GRID DE SECCIONES (CÓMO IDENTIFICAR / QUÉ HACER)
   ============================================= */

.security-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .security-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.security-info-section {
  /* Espacio para contenido */
}

.security-info-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #1A1A1A;
  display: flex;
  align-items: center;
}

.security-info-icon {
  color: #0044a5;
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

/* Listas ordenadas con números romanos */
.security-info-list {
  list-style: upper-roman;
  color: #4b5563;
  font-weight: 300;
  font-size: 0.875rem;
  padding-left: 1.5rem;
  border-left: 1px solid #f3f4f6;
  margin-left: 1rem;
}

.security-info-list > li {
  padding-left: 0.5rem;
}

.security-info-list > li + li {
  margin-top: 0.75rem;
}

.security-info-list::marker {
  color: #0044a5;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

/* Grid de lista de 2 columnas */
.security-info-list-two-col {
  list-style: upper-roman;
  color: #4b5563;
  font-weight: 300;
  font-size: 0.875rem;
  padding-left: 1.5rem;
  border-left: 1px solid #f3f4f6;
  margin-left: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

@media (min-width: 768px) {
  .security-info-list-two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.security-info-list-two-col > li {
  padding-left: 0.5rem;
}

.security-info-list-two-col > li + li {
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .security-info-list-two-col > li + li {
    margin-top: 0;
  }
  
  .security-info-list-two-col > li {
    margin-bottom: 0.75rem;
  }
}

.security-info-list-two-col::marker {
  color: #0044a5;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

/* =============================================
   SECCIÓN DE CONTACTO (ADDRESS)
   ============================================= */

.security-contact {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-left: 4px solid #0044a5;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: normal;
  margin-top: auto;
}

@media (min-width: 768px) {
  .security-contact {
    padding: 2rem;
  }
}

.security-contact-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.security-contact-text {
  color: #4b5563;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.security-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .security-contact-info {
    flex-direction: row;
    gap: 2rem;
    font-size: 1rem;
  }
}

.security-contact-label {
  color: #1A1A1A;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.security-contact-link {
  color: #0044a5;
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s ease;
  word-break: break-all;
}

.security-contact-link:hover {
  text-decoration: underline;
}

/* =============================================
   UTILIDADES ADICIONALES
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Estilos para el scroll del modal */
.security-modal-content::-webkit-scrollbar {
  width: 6px;
}

.security-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.security-modal-content::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}