/* =========================
   MAIN.CSS
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #101828;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.mdc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   NAV
   ========================= */
.mdc-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f2a3a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mdc-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mdc-nav-brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.mdc-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mdc-nav-links a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.mdc-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.mdc-nav-links a:hover::after {
  width: 100%;
}

.mdc-nav-link.is-active {
  color: #6fd3ff;
  opacity: 1;
}

.mdc-nav-link.is-active::after {
  width: 100%;
  background: #6fd3ff;
}

#inicio,
#reflexiones,
#contacto {
  scroll-margin-top: 120px;
}

/* =========================
   HERO BANNER PRINCIPAL
   ========================= */
.mdc-hero-banner {
  background: #071923;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.mdc-hero-banner-container {
  width: 100%;
  overflow: hidden;
}

.mdc-hero-banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   VIDEO + REDES
   ========================= */
.mdc-media {
  padding: 48px 24px;
  background: #f4f6f8;
}

.mdc-media-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.mdc-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mdc-video-card {
  padding: 0;
  overflow: hidden;
}

.mdc-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.mdc-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mdc-featured-downloads {
  padding: 18px;
  background: #ffffff;
  border-top: 1px solid #e6eaf0;
}

.mdc-featured-downloads h2 {
  font-size: 20px;
  line-height: 1.3;
  color: #0f2a3a;
  margin-bottom: 6px;
}

.mdc-featured-downloads p {
  font-size: 14px;
  color: #465467;
  margin-bottom: 12px;
}

.mdc-featured-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mdc-socials {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
}

.mdc-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mdc-social h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.mdc-social p {
  margin-bottom: 14px;
  font-size: 15px;
  opacity: 0.85;
}

.mdc-social a {
  text-decoration: none;
  font-weight: 700;
}

.youtube {
  border-left: 6px solid #ff0000;
}

.youtube a {
  color: #ff0000;
}

.facebook {
  border-left: 6px solid #1877f2;
}

.facebook a {
  color: #1877f2;
}

.whatsapp {
  border-left: 6px solid #25d366;
}

.whatsapp a {
  color: #25d366;
}

/* =========================
   REFLEXIONES
   ========================= */
.mdc-sermons {
  padding: 48px 24px;
  background: #ffffff;
}

.mdc-sermons-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mdc-section-title {
  font-size: 28px;
  margin-bottom: 0;
}

.mdc-sermons-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.mdc-search-wrap {
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.mdc-search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: #101828;
}

.mdc-search-input:focus {
  border-color: #143f55;
  box-shadow: 0 0 0 3px rgba(20, 63, 85, 0.12);
}

.mdc-search-status {
  margin-bottom: 14px;
  font-size: 14px;
  color: #465467;
  min-height: 20px;
}

/* GRID */
.mdc-sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* CARD */
.mdc-sermon-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  background: #f7f9fb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* THUMBNAIL */
.mdc-sermon-video {
  position: relative;
  width: 100%;
  background: #000000;
}

.mdc-sermon-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.mdc-sermon-thumb-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: #ffffff;
}

.mdc-sermon-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mdc-sermon-play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(15, 42, 58, 0.88);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* DESCARGAS */
.mdc-sermon-downloads {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mdc-sermon-downloads h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.35;
}

.mdc-sermon-downloads p {
  margin-bottom: 10px;
  font-size: 13px;
  opacity: 0.85;
}

.mdc-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mdc-btn {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #143f55;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: filter 0.2s ease;
}

.mdc-btn:hover {
  filter: brightness(1.05);
}

/* ESTADO VACÍO */
.mdc-empty-state {
  padding: 20px;
  background: #f7f9fb;
  border-radius: 10px;
  color: #465467;
  text-align: center;
}

/* CARGAR MÁS */
.mdc-loadmore-wrap {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.mdc-loadmore-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 10px;
  background: #143f55;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  transition: filter 0.2s ease;
}

.mdc-loadmore-btn:hover {
  filter: brightness(1.05);
}

.mdc-loadmore-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

/* =========================
   FOOTER
   ========================= */
.mdc-footer {
  background: #0f2a3a;
  color: #ffffff;
  padding: 18px 24px;
}

.mdc-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 14px;
}

.mdc-footer-left {
  text-align: left;
  font-weight: 600;
}

.mdc-footer-center {
  text-align: center;
  opacity: 0.85;
}

.mdc-footer-right {
  text-align: right;
  opacity: 0.9;
}

/* =========================
   BOTON SUBIR ARRIBA
   ========================= */
.mdc-scroll-top {
  position: fixed;
  right: 28px;
  bottom: 100px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d6fa5, #0f4c75);
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 999;
}

.mdc-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mdc-scroll-top:hover {
  filter: brightness(1.15);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.mdc-scroll-top:active {
  transform: scale(0.95);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1400px) {
  .mdc-sermons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px;
  }

  .mdc-nav-container {
    flex-direction: column;
    gap: 10px;
  }

  .mdc-nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mdc-nav-links a {
    font-size: 14px;
  }

  .mdc-media {
    padding: 32px 14px;
  }

  .mdc-media-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mdc-featured-downloads h2 {
    font-size: 18px;
    text-align: center;
  }

  .mdc-featured-downloads p {
    text-align: center;
  }

  .mdc-sermons {
    padding: 40px 14px;
  }

  .mdc-sermons-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mdc-search-wrap {
    max-width: 100%;
    min-width: 100%;
  }

  .mdc-sermons-grid {
    grid-template-columns: 1fr;
  }

  .mdc-sermon-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mdc-featured-btns {
    grid-template-columns: 1fr;
  }

  .mdc-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mdc-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .mdc-social {
    min-height: 170px;
    text-align: center;
  }

  .mdc-social h3 {
    font-size: 24px;
  }

  .mdc-social p {
    font-size: 17px;
  }

  .mdc-social a {
    font-size: 18px;
  }

  .mdc-footer-container {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .mdc-footer-left,
  .mdc-footer-center,
  .mdc-footer-right {
    text-align: center;
  }

  .mdc-scroll-top {
    right: 18px;
    bottom: 70px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}

/* =========================
   DROPDOWN REDES SOCIALES
   ========================= */
.mdc-nav-dropdown {
  position: relative;
}

.mdc-dropdown-btn {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.mdc-dropdown-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.mdc-dropdown-btn:hover::before,
.mdc-nav-dropdown:focus-within .mdc-dropdown-btn::before {
  width: 100%;
}

.mdc-dropdown-btn::after {
  content: " ▾";
  font-size: 11px;
}

.mdc-dropdown-menu {
  position: absolute;
  top: 34px;
  right: 0;
  min-width: 170px;
  background: #0f2a3a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: none;
  z-index: 1200;
}

.mdc-dropdown-menu a {
  display: block;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.95;
}

.mdc-dropdown-menu a::after {
  display: none;
}

.mdc-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.09);
}

.mdc-nav-dropdown.is-open .mdc-dropdown-menu {
  display: block;
}

/* =========================
   INTRO / VIDEOS PRINCIPALES
   ========================= */
.mdc-intro {
  padding: 48px 24px;
  background: #f4f6f8;
}

.mdc-intro-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mdc-intro-header {
  margin-bottom: 24px;
}

.mdc-intro-header h2 {
  font-size: 30px;
  color: #0f2a3a;
  margin-bottom: 8px;
}

.mdc-intro-header p {
  max-width: 760px;
  color: #465467;
  font-size: 16px;
}

.mdc-intro-main-card {
  margin-bottom: 28px;
}

.mdc-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mdc-intro-video-card {
  padding: 0;
  overflow: hidden;
}

.mdc-intro-video-card .mdc-featured-downloads h3 {
  font-size: 17px;
  color: #0f2a3a;
  margin-bottom: 6px;
}

/* =========================
   WHATSAPP FLOTANTE
   ========================= */
.mdc-whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 18px;
  z-index: 1001;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;

  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);

  transition: transform 0.2s ease, filter 0.2s ease;
}

.mdc-whatsapp-float img {
  width: 34px;
  height: 34px;
}

.mdc-whatsapp-float span {
  line-height: 1;
}

.mdc-whatsapp-float:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}


/* =========================
   AJUSTES RESPONSIVE INTRO
   ========================= */
@media (max-width: 900px) {
  .mdc-intro {
    padding: 36px 14px;
  }

  .mdc-intro-header {
    text-align: center;
  }

  .mdc-intro-header p {
    margin: 0 auto;
  }

  .mdc-intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mdc-dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .mdc-intro-grid {
    grid-template-columns: 1fr;
  }

.mdc-whatsapp-float {
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  padding: 0;
}

.mdc-whatsapp-float img {
  width: 30px;
  height: 30px;
}

.mdc-scroll-top {
  right: 18px;
  bottom: 92px;
}
}