/* ======================================================
   RESET Y BASE
====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

/* ======================================================
   NAV INSTITUCIONAL (ÚNICO)
====================================================== */
.ob-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000000;
  border-bottom: 1px solid #c5a200;
  z-index: 1000;
}

.ob-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ======================================================
   BRAND
====================================================== */
.ob-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ob-brand-img {
  height: 90px;
  width: auto;
  max-width: 100%;
}

.ob-brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.4px;
}

/* ======================================================
   BOTÓN MENÚ (MÓVIL)
====================================================== */
.ob-menu-btn {
  display: none;
  background: none;
  border: 1px solid #c5a200;
  color: #c5a200;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.ob-menu-btn:focus {
  outline: 2px solid #c5a200;
  outline-offset: 2px;
}

/* ======================================================
   MENÚ
====================================================== */
.ob-menu {
  display: flex;
  gap: 1.5rem;
}

.ob-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.ob-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #c5a200;
  transition: width 0.25s ease;
}

.ob-menu a:hover::after,
.ob-menu a:focus::after {
  width: 100%;
}

/* ======================================================
   BOTÓN CONTACTO
====================================================== */
.ob-contact-btn {
  margin-left: 1.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #c5a200;
  color: #c5a200;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ob-contact-btn:hover,
.ob-contact-btn:focus {
  background-color: #c5a200;
  color: #000000;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .ob-menu-btn {
    display: inline-block;
  }

  .ob-contact-btn {
    display: none;
  }

  .ob-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000000;
    flex-direction: column;
    display: none;
    border-bottom: 1px solid #c5a200;
  }

  .ob-menu a {
    padding: 0.75rem 1rem;
    border-top: 1px solid #1a1a1a;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
a:focus {
  outline: 2px solid #c5a200;
  outline-offset: 2px;
}

/* ======================================================
   SECCIÓN ENCABEZADO
====================================================== */

/* CONTENEDOR PRINCIPAL */
.ob-encabezado {
  position: relative;
  width: 100%;
  min-height: 170vh;               /* altura base visible */
  margin-top: 84px;               /* separación exacta del NAV fijo */
  background-image: url("/img/via2.png");
  background-size: cover;         /* la imagen se adapta a la sección */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* FILTRO OSCURO PARA LEGIBILIDAD */
.ob-encabezado-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55); /* regula aquí la oscuridad */
  z-index: 1;
}

/* CONTENIDO */
.ob-encabezado-contenido {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 2rem 1.5rem;
}

.ob-encabezado-contenido h1 {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

/* BARRA DORADA SEPARADORA (ALTURA REGULABLE) */
.ob-encabezado-separador {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;                    /* ← regula aquí la altura */
  background-color: #c5a200;
  z-index: 2;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .ob-encabezado {
    min-height: 60vh;
  }

  .ob-encabezado-contenido h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .ob-encabezado {
    min-height: 55vh;
  }

  .ob-encabezado-contenido h1 {
    font-size: 1.5rem;
    line-height: 1.35;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* ======================================================
   SECCIÓN REDES
====================================================== */

.ob-redes {
  width: 100%;
  background-color: #000000;
  padding: 3rem 1rem;
}

.ob-redes-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas */
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

/* ITEM */
.ob-redes-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.ob-redes-item img {
  width: 120px;
  max-width: 100%;
  height: auto;
}

/* BOTÓN "SÍGUENOS" */
.ob-redes-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid #c5a200;
  color: #ffffff;                 /* texto blanco legible */
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ob-redes-btn:hover,
.ob-redes-btn:focus {
  background-color: #c5a200;
  color: #000000;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .ob-redes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .ob-redes-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .ob-redes-item img {
    width: 100px;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
.ob-redes-btn:focus {
  outline: 2px solid #c5a200;
  outline-offset: 3px;
}

/* ======================================================
   SECCIÓN PÁGINAS AMIGAS (SIMETRÍA GARANTIZADA)
====================================================== */

.ob-paginas {
  width: 100%;
  background-color: #000000;
  padding: 3rem 1rem;
}

.ob-paginas-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

/* GRID 4 COLUMNAS SIMÉTRICAS */
.ob-paginas-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  align-items: stretch; /* CLAVE */
}

/* COLUMNA */
.ob-paginas-item {
  display: grid;
  grid-template-rows: 160px 1fr; /* imagen / botones */
  align-items: start;
  justify-items: center;
  text-align: center;
}

/* IMAGEN (MISMO ESPACIO PARA TODAS) */
.ob-paginas-item img {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* CONTENEDOR DE BOTONES */
.ob-paginas-item a {
  width: 100%;
}

/* BOTONES UNIFORMES */
.ob-paginas-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid #c5a200;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  margin-bottom: 0.6rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ob-paginas-btn:last-child {
  margin-bottom: 0;
}

.ob-paginas-btn:hover,
.ob-paginas-btn:focus {
  background-color: #c5a200;
  color: #000000;
}

/* ======================================================
   RESPONSIVE (MANTIENE SIMETRÍA)
====================================================== */
@media (max-width: 1024px) {
  .ob-paginas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ob-paginas-grid {
    grid-template-columns: 1fr;
  }

  .ob-paginas-item {
    grid-template-rows: 140px 1fr;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
.ob-paginas-btn:focus {
  outline: 2px solid #c5a200;
  outline-offset: 3px;
}

/* ======================================================
   SECCIÓN TRANSMISIÓN (IFRAME + TEXTO)
====================================================== */

.ob-transmision {
  width: 100%;
  background-color: #000000;
  padding: 3.5rem 1rem;
}

.ob-transmision-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas */
  gap: 2.5rem;
  align-items: center;
}

/* ------------------------------------------------------
   COLUMNA VIDEO
------------------------------------------------------ */
.ob-transmision-video {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.ob-transmision-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------
   COLUMNA TEXTO
------------------------------------------------------ */
.ob-transmision-texto {
  color: #ffffff;
}

.ob-transmision-texto h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.ob-transmision-texto p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .ob-transmision-container {
    grid-template-columns: 1fr; /* una columna */
  }

  .ob-transmision-texto {
    order: 2;
    text-align: left;
  }

  .ob-transmision-video {
    order: 1;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
/* ======================================================
   SEPARADOR INSTITUCIONAL
====================================================== */
.ob-separador {
  width: 100%;
  height: 5px;              /* ← regula aquí la altura */
  background-color: #c5a200;
}

/* ======================================================
   SECCIÓN LITURGIA DIARIA
====================================================== */

.ob-liturgia {
  width: 100%;
  background-color: #000000;
  padding: 3.5rem 1rem;
  text-align: center;
}

.ob-liturgia-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* CONTENEDOR CENTRADO */
.ob-liturgia-contenedor {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-top: 56.25%; /* relación 16:9 */
}

/* IFRAME */
.ob-liturgia-contenedor iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000000;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .ob-liturgia {
    padding: 2.5rem 1rem;
  }

  .ob-liturgia-title {
    font-size: 1.4rem;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
.ob-liturgia-contenedor iframe:focus {
  outline: 2px solid #c5a200;
  outline-offset: 3px;
}

/* ======================================================
   SECCIÓN EVANGELIO DEL DÍA Y SANTO ROSARIO
====================================================== */

.ob-evangelio {
  width: 100%;
  background-color: #000000;
  padding: 3.5rem 1rem;
}

.ob-evangelio-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* video izquierda / texto derecha */
  gap: 2.5rem;
  align-items: center;
}

/* ------------------------------------------------------
   COLUMNA VIDEO
------------------------------------------------------ */
.ob-evangelio-video {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.ob-evangelio-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------
   COLUMNA TEXTO
------------------------------------------------------ */
.ob-evangelio-texto {
  color: #ffffff;
}

.ob-evangelio-texto h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.ob-evangelio-texto p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .ob-evangelio-container {
    grid-template-columns: 1fr; /* una columna */
  }

  .ob-evangelio-video {
    order: 1;
  }

  .ob-evangelio-texto {
    order: 2;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
/* ======================================================
   FOOTER INSTITUCIONAL — 4 COLUMNAS
====================================================== */

.ob-footer {
  width: 100%;
  background-color: #000000;
  border-top: 1px solid #c5a200;
}

.ob-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas */
  gap: 2.5rem;
  align-items: stretch; /* todas las columnas misma altura */
}

/* ------------------------------------------------------
   BLOQUES GENERALES
------------------------------------------------------ */
.ob-footer-block {
  color: #ffffff;
}

.ob-footer-block h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.ob-footer-block ul {
  list-style: none;
}

.ob-footer-block ul li {
  margin-bottom: 0.5rem;
}

.ob-footer-block a {
  color: #ffffff;
  text-decoration: none;
}

.ob-footer-block a:hover,
.ob-footer-block a:focus {
  color: #c5a200;
}

/* ------------------------------------------------------
   COLUMNA LOGO (CENTRADO VERTICAL REAL)
------------------------------------------------------ */
.ob-footer-logo-block {
  display: flex;
  align-items: center;     /* centrado vertical */
  justify-content: center; /* centrado horizontal */
}

.ob-footer-logo {
  max-width: 140px;
  height: auto;
}

/* ------------------------------------------------------
   CONTACTO
------------------------------------------------------ */
.ob-footer-block p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1024px) {
  .ob-footer-container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }

  .ob-footer-logo-block {
    grid-column: span 2; /* logo ocupa fila completa */
  }
}

@media (max-width: 480px) {
  .ob-footer-container {
    grid-template-columns: 1fr;
  }

  .ob-footer-logo-block {
    grid-column: span 1;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */
.ob-footer a:focus {
  outline: 2px solid #c5a200;
  outline-offset: 3px;
}

/* ======================================================
   TÍTULO SECCIÓN REDES
====================================================== */

.ob-redes-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ======================================================
   COPYRIGHT FOOTER
====================================================== */

.ob-footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #c5a200;
  letter-spacing: 0.3px;
}
/* =========================================================
   SECCIÓN IFRAME WEB EXTERNA
========================================================= */

.ob-iframe-web {
    background: #000000;
    padding: 80px 20px;
    border: 1px solid #c5a200;
    border-radius: 6px;
    margin: 40px 20px 0 20px;
}

.ob-iframe-web h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.ob-iframe-web p {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* CONTENEDOR RESPONSIVE */
.ob-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;              /* altura visible del sitio */
    min-height: 500px;
    border: 1px solid #c5a200;
    border-radius: 6px;
    overflow: hidden;
    background: #000000;
}

/* IFRAME */
.ob-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000000;
}
