/* =========================================================================
   APOSTOLADO MARÍA REINA DE LOS CORAZONES — NUEVA JERUSALÉN
   Hoja de estilos principal — mobile-first

   Índice:
   1. Tokens (colores, tipografía, espaciado)
   2. Reset / base
   3. Utilidades
   4. Header
   5. Carrusel de navegación
   6. Contenido principal / vistas
   7. Sección Bienvenida
   8. Placeholder "próximamente"
   9. Video responsive
   10. Redes sociales
   11. Footer
   12. Breakpoints tablet / desktop
   13. Accesibilidad / reduced motion
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS — colores oficiales de marca. NO alterar estos valores.
   ------------------------------------------------------------------------- */
:root {
  --azul: #010080;
  --dorado: #D2953A;
  --negro: #000000;
  --blanco: #FFFFFF;

  /* Derivados de los colores de marca (transparencias), no colores nuevos */
  --azul-03: rgba(1, 0, 128, 0.03);
  --azul-06: rgba(1, 0, 128, 0.06);
  --azul-10: rgba(1, 0, 128, 0.10);
  --azul-15: rgba(1, 0, 128, 0.15);
  --azul-45: rgba(1, 0, 128, 0.45);
  --dorado-15: rgba(210, 149, 58, 0.15);
  --dorado-30: rgba(210, 149, 58, 0.35);
  --dorado-60: rgba(210, 149, 58, 0.6);

  --font-body: Tahoma, Geneva, Verdana, sans-serif;
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 3px rgba(1, 0, 128, 0.08);
  --shadow-md: 0 10px 30px rgba(1, 0, 128, 0.10);

  --container: 1140px;

  --header-h: 64px;
  --nav-h: 56px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --header-h: 76px;
    --nav-h: 62px;
  }
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden; /* red de seguridad: el único scroll horizontal permitido es el carrusel */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0;
  color: var(--azul);
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   3. UTILIDADES
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--azul);
  color: var(--blanco);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
  font-size: 0.9rem;
}
.skip-link:focus { top: 0.75rem; }

.section-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  color: var(--dorado);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 700;
  margin: 0;
}

/* Divisor decorativo — inspirado en el rosario del logo: una línea fina
   dorada con pequeñas cuentas. Es el único elemento ornamental recurrente
   del sitio (la "firma" visual), usado con moderación. */
.rosary-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.1rem auto 1.5rem;
  width: min(220px, 60%);
}
.rosary-divider::before,
.rosary-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dorado-60));
}
.rosary-divider::after { transform: scaleX(-1); }
.rosary-divider span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dorado);
  flex-shrink: 0;
}
.rosary-divider--footer::before,
.rosary-divider--footer::after {
  background: linear-gradient(90deg, transparent, var(--dorado-60));
}
.rosary-divider--footer span { background: var(--dorado); }

:focus-visible {
  outline: 2px solid var(--dorado);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid var(--dorado-30);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(0.9rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

/* El logo conserva SIEMPRE su relación de aspecto original (1115 x 1718) */
.brand-logo {
  height: clamp(38px, 9vw, 50px);
  width: auto;
  aspect-ratio: 512 / 512;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-2 {
  height: clamp(38px, 9vw, 50px);
  width: auto;
  aspect-ratio: 1172 / 168;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-line--main {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--azul);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text-line--sub {
  font-family: var(--font-body);
  color: var(--dorado);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--azul);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  min-height: 44px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.home-button:hover { background: var(--azul-06); }
.home-button:active { background: var(--azul-10); }
.home-button .icon { width: 22px; height: 22px; }
.home-button-label {
  font-size: 0.86rem;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   5. CARRUSEL DE NAVEGACIÓN (Bienvenida + 33 clases)
   ------------------------------------------------------------------------- */
.class-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--blanco);
  border-bottom: 1px solid var(--dorado-15);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.class-nav-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-inline: clamp(1.4rem, 4vw, 2.75rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--dorado-30) transparent;

  /* Difuminado en los bordes para indicar que hay más contenido al desplazar */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.class-nav-carousel::-webkit-scrollbar { height: 5px; }
.class-nav-carousel::-webkit-scrollbar-thumb {
  background: var(--dorado-30);
  border-radius: 999px;
}
.class-nav-carousel::-webkit-scrollbar-track { background: transparent; }

.nav-pill {
  scroll-snap-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1.4px solid var(--azul-15);
  background: var(--blanco);
  color: var(--azul);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav-pill:hover {
  border-color: var(--dorado);
  color: var(--azul);
}
.nav-pill.is-active {
  background: var(--azul);
  border-color: var(--dorado);
  color: var(--blanco);
  box-shadow: 0 0 0 1px var(--dorado);
}
.nav-pill:active { transform: scale(0.97); }

.nav-chevron {
  display: none; /* oculto en móvil: el swipe/scroll táctil es la forma principal de navegar */
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--azul);
  margin-inline: 0.35rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-chevron:hover { background: var(--azul-06); color: var(--dorado); }
.nav-chevron .icon { width: 18px; height: 18px; }

@media (min-width: 1024px) {
  .nav-chevron { display: flex; }
}

/* -------------------------------------------------------------------------
   6. CONTENIDO PRINCIPAL / TRANSICIÓN ENTRE VISTAS
   ------------------------------------------------------------------------- */
.content-area {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
  min-height: 40vh;
}

.view {
  opacity: 0;
  transform: translateY(10px);
  animation: view-in 0.45s var(--ease) forwards;
}
@keyframes view-in {
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   7. SECCIÓN BIENVENIDA
   ------------------------------------------------------------------------- */
.welcome-hero {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
}

.welcome-hero-media {
  display: flex;
  justify-content: center;
}
.welcome-hero-logo {
  width: min(230px, 55vw);
  height: auto;
  aspect-ratio: 1115 / 1718;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(1, 0, 128, 0.12));
}

.welcome-hero-text { text-align: center; }

.welcome-heading {
  font-size: clamp(1.7rem, 5.5vw, 2.85rem);
  line-height: 1.18;
  margin-top: 0.85rem;
  color: var(--azul);
}

.welcome-intro {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--negro);
  max-width: 62ch;
  margin: 1.15rem auto 0;
}

.welcome-body {
  max-width: 68ch;
  margin: clamp(2rem, 5vw, 2.75rem) auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.welcome-body p {
  font-size: 0.98rem;
  color: var(--negro);
}

.welcome-video-section {
  margin-top: clamp(0.25rem, 0.8vw, 0.5rem);
}
.welcome-video-heading {
  text-align: center;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  margin-bottom: 1.25rem;
}


/* -------------------------------------------------------------------------
   8A. ESTRUCTURA DE CLASES — ACORDEONES
   ------------------------------------------------------------------------- */
.lesson-page {
  max-width: 900px;
  margin-inline: auto;
}

.lesson-video-section {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.lesson-video-heading {
  text-align: center;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  margin: 0.35rem 0 1.25rem;
}

.lesson-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.lesson-heading {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.15;
  margin-top: 0.55rem;
}

.lesson-intro {
  max-width: 68ch;
  margin: 1.15rem auto 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.lesson-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lesson-accordion {
  border: 1px solid var(--azul-15);
  border-radius: var(--radius-md);
  background: var(--blanco);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.lesson-accordion[open] {
  border-color: var(--dorado-60);
  box-shadow: var(--shadow-md);
}

.lesson-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding: 1rem clamp(1rem, 3vw, 1.4rem);
  cursor: pointer;
  color: var(--azul);
  user-select: none;
}
.lesson-accordion summary::-webkit-details-marker { display: none; }
.lesson-accordion summary:hover { background: var(--azul-03); }

.lesson-accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.055em;
}

.lesson-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--azul-03);
  border: 1px solid var(--dorado-30);
  font-size: 1.05rem;
}

.lesson-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid var(--azul-15);
  color: var(--dorado);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.lesson-accordion[open] .lesson-accordion-chevron {
  transform: rotate(45deg);
}

.lesson-accordion-content {
  padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.4rem, 4vw, 2rem);
  color: var(--negro);
  font-size: 0.98rem;
  line-height: 1.75;
}
.lesson-accordion-content p + p { margin-top: 1rem; }
.lesson-accordion-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--azul);
  margin: 0;
}

.lesson-reading-card,
.lesson-reflection,
.lesson-action-card,
.lesson-journal {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border: 1px solid var(--dorado-30);
  border-radius: var(--radius-md);
  background: var(--azul-03);
}

.lesson-reading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lesson-reading-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.lesson-reading-label {
  color: var(--dorado);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lesson-reading-card strong {
  color: var(--azul);
  font-family: var(--font-title);
  font-size: 1.55rem;
}
.lesson-reading-card span:last-child {
  font-size: 0.86rem;
  opacity: 0.78;
}

.lesson-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--azul);
  color: var(--dorado);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lesson-download:hover {
  background: var(--azul);
  transform: translateY(-1px);
}

.lesson-reflection ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}
.lesson-reflection li + li { margin-top: 0.55rem; }

.lesson-action-card {
  border-left: 3px solid var(--dorado);
}
.lesson-action-card h3 { margin-bottom: 0.65rem; }

.lesson-prayer-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0;
}
.lesson-prayer-list div {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--azul-03);
}
.lesson-prayer-list strong { color: var(--azul); }
.lesson-prayer-list span { font-size: 0.9rem; }

.lesson-journal {
  display: grid;
  gap: 0.45rem;
}
.lesson-journal label {
  color: var(--azul);
  font-weight: 700;
  margin-top: 0.45rem;
}
.journal-line {
  min-height: 42px;
  border-bottom: 1px solid var(--azul-15);
}

.lesson-note {
  font-size: 0.9rem;
  color: var(--azul-45);
}

.lesson-closing {
  max-width: 720px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  text-align: center;
}
.lesson-closing .rosary-divider { margin-bottom: 1.1rem; }
.lesson-closing p {
  color: var(--azul);
  font-size: 0.98rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .lesson-reading-card {
    flex-direction: column;
    align-items: stretch;
  }
  .lesson-download { width: 100%; }
  .lesson-accordion summary { min-height: 64px; }
}

/* -------------------------------------------------------------------------
   8. PLACEHOLDER "CONTENIDO PRÓXIMAMENTE"
   ------------------------------------------------------------------------- */
.placeholder-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 2vw, 5rem) 1rem;
  border: 1px solid var(--dorado-15);
  border-radius: var(--radius-lg);
  background: var(--azul-03);
}
.placeholder-icon {
  width: 46px;
  height: 46px;
  color: var(--dorado);
  margin-bottom: 0.25rem;
}
.placeholder-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--azul);
}
.placeholder-text {
  margin-top: 0.65rem;
  color: var(--azul-45);
  font-size: 0.98rem;
  max-width: 42ch;
}

/* -------------------------------------------------------------------------
   9. VIDEO RESPONSIVE (16:9)
   ------------------------------------------------------------------------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--azul);
  box-shadow: var(--shadow-md);
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Facade: miniatura + botón de reproducción, evita cargar YouTube hasta el clic (rendimiento) */
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 20%, var(--azul) 0%, #000060 100%);
  color: var(--blanco);
}
.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-play {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease);
}
.video-facade:hover .video-play { transform: scale(1.06); }
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }

.video-pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--blanco);
  background: radial-gradient(120% 120% at 50% 15%, var(--azul) 0%, #000045 100%);
  text-align: center;
  padding: 1.5rem;
}
.video-pending .icon { width: 34px; height: 34px; color: var(--dorado); }
.video-pending p { font-size: 0.95rem; opacity: 0.9; max-width: 32ch; }

@media (max-width: 768px) {
  .video-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-frame video {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   10. REDES SOCIALES
   ------------------------------------------------------------------------- */
.social-section {
  background: var(--azul-03);
  border-top: 1px solid var(--dorado-15);
  border-bottom: 1px solid var(--dorado-15);
  padding-block: clamp(2.25rem, 6vw, 3rem);
  text-align: center;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.4px solid var(--azul-15);
  background: var(--blanco);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-link:hover {
  background: var(--azul);
  border-color: var(--dorado);
  color: var(--blanco);
  transform: translateY(-2px);
}
.social-link[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.social-link .icon { width: 21px; height: 21px; }

/* -------------------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--azul);
  color: var(--blanco);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 2.5rem);
  grid-template-columns: 1fr;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.footer-logo {
  width: 46px;
  height: auto;
  aspect-ratio: 1115 / 1718;
  object-fit: contain;
  border-radius: 6px;
  background: var(--blanco);
  padding: 3px;
}
.footer-brand-text {
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--blanco);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dorado);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blanco);
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.footer-link:hover { color: var(--dorado); }
.footer-link .icon { color: var(--dorado); }
.footer-link-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.footer-link-value {
  display: block;
  font-size: 0.92rem;
  word-break: break-word;
}
.footer-link--static { cursor: default; }

.footer-text-link {
  font-size: 0.92rem;
  color: var(--blanco);
  opacity: 0.9;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer-text-link:hover { color: var(--dorado); opacity: 1; }

.footer-bottom {
  margin-top: clamp(2rem, 5vw, 2.5rem);
  padding-block: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom .rosary-divider { margin-top: 0; margin-bottom: 1rem; }

/* -------------------------------------------------------------------------
   12. BREAKPOINTS — TABLET (≥768px) Y DESKTOP (≥1024px)
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .welcome-hero { grid-template-columns: auto 1fr; text-align: left; }
  .welcome-hero-media { justify-content: flex-start; }
  .welcome-hero-text { text-align: left; }
  .welcome-intro { margin-inline: 0; }
  .welcome-body { margin-inline: 0; }

  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; text-align: left; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
}

@media (min-width: 1024px) {
  .header-inner { padding-inline: 2.5rem; }
  .nav-pill { padding: 0 1.15rem; font-size: 0.9rem; }
  .content-area { padding-top: 3.5rem; }
  .welcome-hero-logo { width: 260px; }
}

/* -------------------------------------------------------------------------
   13. ACCESIBILIDAD — reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view { animation: none; opacity: 1; transform: none; }
  .nav-pill, .home-button, .social-link, .video-play, .footer-link, .footer-text-link {
    transition: none;
  }
}



@media screen and (max-width: 479px) {
  .site-header .brand-logo-2 {
    width: 190px;
    height: auto;
    max-width: 190px;
    min-width: 0;
    aspect-ratio: auto;
    object-fit: contain;
    flex: 0 0 190px;
  }
}
/* -------------------------------------------------------------------------
   Ajustes Clase 01 — recursos de oración, Rosario y regreso al recorrido
   ------------------------------------------------------------------------- */
.lesson-return-card,
.lesson-rosary-card {
  margin-top: 1.1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--azul-10);
  border-radius: 16px;
  background: var(--azul-03);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.lesson-return-card strong,
.lesson-rosary-card strong {
  color: var(--azul, #000080);
}

.lesson-return-card span {
  font-size: .92rem;
}

.lesson-youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: fit-content;
  margin-top: .35rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--azul, #000080);
  color: #fff;
  font-weight: 600;
  transition: transform .2s ease, opacity .2s ease;
}

.lesson-youtube-button:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.lesson-accordion-content a {
  color: var(--blanco, #ffffff);
  font-weight: 600;
}

.whatsapp-boton{
  color: #000080 !important;
}
