* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f2f6ff;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

footer {
  margin-top: auto;
  font-size: 0.9em;
  color: #666;
  text-align: center;
  padding: 10px;
}

footer p {
  margin: 5px 0;
}

/* Encabezado */
.encabezado {
  background: linear-gradient(to right, #004aad, #0088ff);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Logo principal en encabezado */
.logo-principal {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
  border: none;
}

/* Menú principal */
.menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Siempre dos columnas */
  gap: 20px;
  max-width: 520px;
  margin: 40px auto;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  padding: 15px;
  text-decoration: none;
  color: #113366;
  transition: transform 0.2s;
}

.item:hover {
  transform: translateY(-5px);
}

.item img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.item p {
  font-size: 1em;
}

.item .sub {
  font-size: 0.8em;
  color: #0077cc;
}

/* Versículo al final */
.versiculo-final {
  font-style: italic;
  font-size: 1em;
  color: #004aad;
  text-align: center;
  margin: 30px 0 15px 0;
}

.versiculo-final span {
  font-weight: bold;
  display: block;
  margin-top: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: left;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #113366;
}

.modal-content ul {
  list-style: none;
}

.modal-content li {
  margin-bottom: 10px;
}

.modal-content a {
  color: #0077cc;
  text-decoration: none;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Predica – Domingo */
.predica-contenido {
  padding: 30px;
  max-width: 800px;
  margin: auto;
  text-align: left;
  line-height: 1.7;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-top: 40px;
  margin-bottom: 40px;
}

.predica-contenido h2 {
  color: #004aad;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.predica-contenido h3, .predica-contenido h4 {
  color: #006699;
  margin-top: 25px;
}

.predica-contenido p, .predica-contenido li, .predica-contenido blockquote {
  font-size: 1em;
  color: #333;
  margin-bottom: 15px;
}

.predica-contenido ul, .predica-contenido ol {
  padding-left: 20px;
}

.predica-contenido blockquote {
  background: #e8f0ff;
  border-left: 5px solid #004aad;
  padding: 10px 15px;
  font-style: italic;
  color: #003366;
  border-radius: 6px;
}

.btn-descarga {
  display: inline-block;
  background-color: #004aad;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn-descarga:hover {
  background-color: #0077ff;
}

.calendario {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.card-dia {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card-dia:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card-dia h3 {
  color: #004aad;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.card-dia p {
  font-size: 0.95em;
  color: #333;
}

.nuevo-encabezado {
  background: linear-gradient(to right, #002f5e, #006bb3);
  padding: 25px 10px;
  text-align: center;
  color: white;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contenedor-logo-titulo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-encabezado {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.contenedor-logo-titulo h1 {
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.4;
  color: white;
}

.contenedor-logo-titulo h1 span {
  display: block;
  font-size: 0.95em;
  color: #a4ffce;
  font-weight: 400;
}
