/* ==========================================
    1. ESTILOS GENERALES Y BASE DEL BODY
    ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: rgb(9, 100, 9);
  display: flex;
  justify-content: center;
  text-align: center;
  align-content: center;
  margin: 0;
  padding-top: 10px;
  padding-left: 40px;
  min-height: 100vh; /* Descomentado para asegurar que ocupe al menos la pantalla */
}

/* ==========================================
    2. ESTRUCTURA PRINCIPAL (LÍNEA CONTINUA EN PC)
    ========================================== */
.tresc {
  display: grid;
  width: 100%;
  max-width: 1200px;
  grid-template-columns: 850px ;
  align-items: start; /* Evita que las columnas se estiren forzosamente a la misma altura */
}

.tresc div {
  height: auto;
}

.colce {
  padding-top: 0px;
  color: rgb(245, 214, 35);
  justify-content: center;
  text-align: center;
  align-content: normal;
}

.ligas {
  padding-left: 10px;
  letter-spacing: 2px;
}

h1, h2, h3 {
  font-family: "Times New Roman";
  letter-spacing: 6px; 
  color: rgb(246, 241, 214); 
  text-align: center;
  margin-top: 5px;
  text-shadow: 2px 2px 3px #03310e, 0px 0px 36px #e3ebdf;
}

h3 {
  text-align: left;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: ghostwhite;
  letter-spacing: 2px;
}

.home {
  text-decoration: none;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 15px; }

.form-group { display: flex; flex-direction: row; gap: 5px; position: relative; }

.form-group1 { display: flex; flex-direction: row; gap: 10px; position: relative; }

/* Botón que simula el select */
.dropdown-btn { 
  padding: 5px; 
  font-size: 15px; 
  border: 1px solid #e1e4e8; 
  border-radius: 6px; 
  background: #fff; 
  color: black;
  cursor: pointer; 
  text-align: left; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  box-sizing: border-box; 
}
.dropdown-btn:after { content: "▼"; font-size: 10px; color: #666; }

/* Contenedor flotante en dos columnas (Oculto por defecto) */
.dropdown-content { 
  display: none; 
  position: absolute; 
  top: 110%; 
  left: 0; 
  width: 100%; 
  min-width: 290px; 
  background: #fff; 
  border: 2px solid #e1e4e8; 
  border-radius: 6px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
  z-index: 100; 
  padding: 0px; 
  grid-template-columns: 1fr 1fr; 
  gap: 2px; 
  max-height: 470px; 
  overflow-y: auto; 
  box-sizing: border-box; 
  text-align: left;
}

.dropdown-content.show { display: grid; } 

/* Opciones compactas */
.dropdown-content div { height: 20px; background-color: rgb(22, 118, 5); color: ghostwhite; padding: 3px 0px; font-size: 11px; cursor: pointer; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dropdown-content div:hover { background: #f0f2f5; color: black; font-weight: bold; }

button.consultar-btn { 
  width: 22%; 
  padding: 5px; 
  margin-top: 0px;
  font-size: 16px; 
  background: #943b1a; 
  color: white; 
  border: 2px solid rgb(249, 72, 72); 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: background 0.5s; 
}

button.consultar-btn:hover { background: #dd1919; }

.inum {
  width: 150px;
  border: 1px solid rgb(3, 31, 2);
  border-radius: 6px;
}

/* ==========================================
    AJUSTES CLAVE PARA EL PANEL DE RESULTADOS
    ========================================== */
.resultado { 
  border-top: 3px solid #e1e4e8; 
  margin-left: 5px;
  margin-top: 8px;      /* Separación respecto al título "Pasajes" */
  padding: 12px 10px;   /* Aumentamos el padding superior e inferior para que el texto no pegue con los bordes */
  max-height: 70vh; 
  overflow-y: auto; 
}

/* ==========================================
    ESTILOS PARA LOS VERSÍCULOS EN EL RESULTADO
    ========================================== */
.texto { 
  font-size: 14px; 
  line-height: 1.0; /* Espacio moderado y cómodo entre líneas de un mismo versículo */
  text-align: justify;
  color: ghostwhite;
}

/* Estilo limpio para cada párrafo/versículo generado */
.texto p { 
  margin-top: 0;
  margin-bottom: 5px; 
  text-align: justify;
  color: ghostwhite;
}

b {
  color: rgb(247, 198, 2);
  font-weight: bold;
  font-size: 16px;
}

.error { color: #d93025; font-weight: bold; text-align: center; }