/* === General Page Structure === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #e0f7fa, #ffffff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
}

body.lecture-page {
  background: linear-gradient(to bottom right, #f9f9f9, #ffffff);
  color: #444;
  padding: 20px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2c6e49;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.menu-toggle {
  display: none;
  background-color: #2c6e49;
  color: white;
  font-size: 1.2em;
  padding: 16px 20px;
  border: none;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.navbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar a {
  color: white;
  text-align: center;
  padding: 16px 20px;
  text-decoration: none;
  font-size: 1.2em;
}

.navbar a:hover {
  background-color: #3a7d44;
}

/* === Responsive Menu for Mobile === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar a {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: left;
  }
}

/* === Main Welcome Page === */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 20px; /* 👈 Más padding-top para no quedar debajo del navbar */
  text-align: center;
}

.logo {
  font-size: 2.8em;
  font-weight: bold;
  color: #00695c;
  margin-bottom: 10px;
}

.slogan {
  font-size: 1.4em;
  color: #00796b;
  margin-bottom: 25px;
}

.welcome-text {
  font-size: 1.15em;
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.8;
  padding: 0 20px;
}

.enter-button {
  background-color: #004d40;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.enter-button:hover {
  background-color: #00332c;
}

/* === Footer === */
footer,
.site-footer {
  text-align: center;
  padding: 15px;
  font-size: 0.95em;
  color: #777;
}

.site-footer a {
  color: #2c6e49;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* === Lectures Page Layout === */
.container {
  max-width: 900px;
  margin: auto;
 padding-top: 20px; /* ✅ add this */
}

.menu-busqueda {
  background: #eef7f1;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.menu-busqueda form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.menu-busqueda label {
  font-weight: bold;
}

.menu-busqueda input,
.menu-busqueda select,
.menu-busqueda button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.05em;
}

.menu-busqueda .botones-rapidos a {
  margin: 0 10px;
  text-decoration: none;
  color: #2c6e49;
  font-weight: bold;
  font-size: 1.1em;
}

/* === Lectura Content Blocks === */
.titulo {
  text-align: center;
  color: #2c6e49;
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitulo {
  text-align: center;
  font-size: 1.5em;
  color: #3a7d44;
  margin-bottom: 10px;
  font-weight: 500;
}

.fecha {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
  font-size: 1.2em;
  font-weight: 500;
}

.imagen {
  text-align: center;
  margin-bottom: 30px;
}

.imagen img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.seccion {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  line-height: 1.8;
  font-size: 1.15em;
  color: #2a2a2a;
}

.seccion h2 {
  color: #1b5e20;
  font-size: 1.6em;
  margin-top: 0;
  border-bottom: 2px solid #c8e6c9;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.seccion p {
  font-size: 1.15em;
  line-height: 1.9;
  margin-bottom: 18px;
}

/* === Fecha Input === */
.estilo-fecha {
  margin-top: 8px;
  padding: 10px 15px;
  font-size: 1.1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background: #ffffff;
  transition: border 0.3s, box-shadow 0.3s;
}

.estilo-fecha:focus {
  border-color: #2c6e49;
  outline: none;
  box-shadow: 0 0 5px rgba(44,110,73,0.4);
}

/* === Mobile Enhancements === */
@media (max-width: 600px) {
  .seccion {
    font-size: 1.2em;
    padding: 25px;
  }

  .seccion p {
    font-size: 1.2em;
  }

  .menu-busqueda {
    padding: 15px;
  }

  .menu-busqueda label {
    font-size: 1em;
  }

  .content {
    padding-top: 5px;
  }
}

/* === Botones Lectura Voz === */
.tts-btn {
  background-color: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #2c6e49;
  margin-left: 8px;
  transition: transform 0.2s;
}

.tts-btn:hover {
  transform: scale(1.2);
  color: #1b5e20;
}

.tts-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.stop-btn {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.stop-btn:hover {
  background-color: #b71c1c;
}

.stop-inline {
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #d32f2f;
  margin-left: 5px;
}

.stop-inline:hover {
  transform: scale(1.2);
}

.voice-select {
  margin-left: 10px;
  font-size: 0.9em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
}



.page-title {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
    color: #333;
}

.liturgical-section {
    background-color: #fff;
    padding: 25px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 800px;
}

.liturgical-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #0044cc;
}

.liturgical-image {
    text-align: center;
    margin: 20px 0;
}

.liturgical-image img {
    width: 400px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.liturgical-description {
    font-size: 1em;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

.main-container {
    padding: 30px;
    max-width: 1000px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.01);
}

.card-title {
    font-size: 1.5em;
    color: #0044cc;
    margin-bottom: 10px;
}

.centered-image {
    text-align: center;
    margin: 20px 0;
}

.centered-image img {
    max-width: 500px;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}

.card-text {
    color: #444;
    line-height: 1.6;
    text-align: justify;
}
.card-title {
    text-align: center;
}
