/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #00AE9E;
  --espiritual: #652D89;
  --intelectual: #005A6F;
  --social: #E20077;
  --profesional: #B1005C;
  --teal-dark: #003D53;
  --orange: #F58025;
  --orange-dark: #c96515;
  --white: #ffffff;
  --light-gray: #F1F2F2;
  --medium-gray: #E6E7E8;
  --dark-gray: #003D53;
  --text-color: #658999;
  --font-main: 'Open Sans', sans-serif;

}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: #b0bec5;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ===========================
   HEADER
   =========================== */
.main-header {
  background: #003D53;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 0 0 16px;
  height: 48px;
}

.header-brand-end {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px 0 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.header-brand-end-image {
  width: 90px;
  height: auto;
  display: block;
  opacity: 0.96;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 0;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding: 0 20px 0 0;
}

.logo-icon {
  width: 22px;
  height: 30px;
  flex-shrink: 0;
  margin-top: -2px;
}

.logo-image {
  width: 90px;
  height: auto;
  display: block;
}

.footer-logo-img {
  width: 160px;
  height: auto;
  display: block;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* NAV */
.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  height: 100%;
  gap: 0;
  width: 100%;
}

.main-nav ul li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: center;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.main-nav ul li:first-child a {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.main-nav ul li a:hover::after,
.main-nav ul li a:focus::after {
  transform: scaleX(1);
}

.main-nav ul li.active > a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.main-nav ul li.active > a::after {
  transform: scaleX(1);
}

/* Colores especiales de ítems del menú */
.main-nav ul li.nav-vive-fissep > a {
  color: #e91e8c;
}
.main-nav ul li.nav-vive-fissep > a:hover {
  color: #ff4db8;
}
.main-nav ul li.nav-suenometro > a {
  color: var(--orange);
}
.main-nav ul li.nav-suenometro > a:hover {
  color: var(--orange-dark);
}

/* Dropdown */
.has-dropdown > a i {
  margin-left: 5px;
  font-size: 0.7rem;
  opacity: 0.7;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #003D53;
  min-width: 190px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-top: 2px solid var(--teal);
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.has-dropdown .dropdown li {
  height: auto;
  display: block;
  background: #003D53;
}

.has-dropdown .dropdown li a {
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #003D53;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2px;
  text-transform: none;
  white-space: nowrap;
}

.has-dropdown .dropdown li a::after {
  display: none;
}

.has-dropdown .dropdown li:last-child a {
  border-bottom: none;
}

.has-dropdown .dropdown li a:hover {
  background: #658999;
  color: var(--white);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 20px;
  margin-left: auto;
}

/* ===========================
   PAGE WRAPPER & BANDAS
   =========================== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 250px);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* Cada banda es una fila horizontal con columna izquierda y derecha */
.band {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e8e8e8;
}

/* Evitar que las bandas estiren las columnas al tamaño de la más alta
   para eliminar espacio vacío debajo de las tarjetas */
.band-familia,
.band-home-categories,
.band-espiritual {
  align-items: flex-start;
}

/* Aplicar fondo del body a band-left para ocultar espacio vacío cuando
   la columna derecha es más alta */
.band-familia .band-left,
.band-home-categories .band-left,
.band-espiritual .band-left {
  background: #b0bec5;
}

.band:last-child {
  border-bottom: none;
}

.band-left {
  flex: 1;
  min-width: 0;
}

.band-right {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid #e8e8e8;
  background: var(--white);
}

/* ===========================
   HERO SECTION
   =========================== */
/* ── Carrusel hero ───────────────────────────────────────────────────── */
.hero-carousel {
  height: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  min-height: 400px;
  aspect-ratio: 600 / 400;
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #003D53;
  display: flex;
  align-items: center;
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Flechas */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.hero-arrow:hover { background: rgba(0,0,0,0.6); }
.hero-arrow-prev { left: 10px; }
.hero-arrow-next { right: 10px; }

/* Puntos */
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero-dot.active {
  background: #fff;
  border-color: #fff;
}

/* Mantener overlay y contenido heredados */
.hero-banner {
  height: 100%;
  min-height: 280px;
  position: relative;
  background: url('https://placehold.co/800x400/1a2a3a/white?text=') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: var(--white);
}

.hero-content h2 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-content h2 strong {
  font-size: 1.98rem;
}

.play-logo {
  display: inline-block;
  width: 85px;
  height: 21px;
  max-width: 100%;
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-content h2 i {
  color: var(--orange);
  margin-left: 6px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-cta {
  border-left: 3px solid var(--orange);
  padding-left: 12px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* FISSEP Play Sidebar */
.fissep-play-sidebar {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid #e8e8e8;
}

/* Calendar widget */
.calendar-widget {
  padding: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #d9d9d9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f2f2f2;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #dedede;
}

.cal-today {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #8d8d8d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cal-today i {
  color: #9a9a9a;
  font-size: 0.75rem;
}

.cal-nav {
  display: flex;
  gap: 2px;
}

.cal-arrow {
  background: none;
  border: none;
  color: #b5b5b5;
  cursor: pointer;
  font-size: 0.78rem;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.cal-arrow:hover {
  color: #6f6f6f;
  background: rgba(0, 0, 0, 0.04);
}

.cal-grid {
  display: flex;
  justify-content: space-between;
  padding: 5px 3px 7px;
  background: #f5f5f5;
  border-bottom: 1px solid #d9d9d9;
}

.cal-col {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  position: relative;
  padding: 0;
}

/* Videos carousel */
.video-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.video-filter-bar label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-gray);
}

.video-filter-bar select {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: var(--dark-gray);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.video-filter-bar select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 174, 158, 0.12);
}

.videos-category {
  margin-bottom: 36px;
}

.videos-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.videos-category-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
  padding: 16px 20px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.videos-category-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
  flex-shrink: 0;
}

.video-carousel-arrow:hover,
.video-carousel-arrow:focus {
  background: var(--teal-dark);
  transform: scale(1.1);
}

.videos-carousel {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.videos-carousel-track {
  display: flex;
  gap: 18px;
  padding-bottom: 6px;
}

.video-card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.video-card-badge {
  position: relative;
  width: 100%;
  padding: 16px 12px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.video-card-media {
  position: relative;
  overflow: hidden;
  background: #000;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card-media video {
  width: 100%;
  display: block;
  height: auto;
  min-height: 160px;
}

.video-card-body {
  padding: 14px 16px 16px;
  flex-shrink: 0;
}

.video-card-body p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .video-card {
    min-width: 240px;
  }
}

@media (max-width: 720px) {
  .videos-category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-carousel-arrow {
    width: 34px;
    height: 34px;
  }
}

.cal-dow {
  font-size: 0.53rem;
  font-weight: 600;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.cal-day {
  width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #8b8b8b;
  border-radius: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cal-col:hover .cal-day {
  color: #5f5f5f;
  border-bottom-color: #bdbdbd;
}

.cal-day.active {
  color: #333;
  border-bottom-color: #787878;
  font-weight: 700;
}

.cal-marker {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f58025;
  margin-top: 1px;
}

.cal-events {
  background: #ececec;
  max-height: 236px;
  overflow-y: auto;
}

.cal-empty {
  padding: 12px 10px;
  font-size: 0.75rem;
  color: #8a8a8a;
}

.cal-event {
  position: relative;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid #d8d8d8;
  background: #efefef;
  transition: background 0.2s;
  width: 100%;
  border-left: 0;
  border-right: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
}

.cal-event:hover {
  background: #f6f6f6;
}

.cal-event:focus-visible {
  outline: 2px solid rgba(0, 174, 158, 0.55);
  outline-offset: -2px;
}

.cal-event:last-child {
  border-bottom: none;
}

.cal-event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--event-color, #00AE9E);
}

.cal-event h4 {
  font-size: 0.88rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: #202020;
  font-weight: 800;
  margin: 0 0 2px;
  letter-spacing: 0.15px;
}

.cal-event p {
  font-size: 0.73rem;
  line-height: 1.3;
  color: #8a8a8a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-modal-open {
  overflow: hidden;
}

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.calendar-modal[hidden] {
  display: none;
}

.calendar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 25, 34, 0.55);
  backdrop-filter: blur(2px);
}

.calendar-modal-dialog {
  position: relative;
  width: min(560px, 94vw);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(160deg, #ffffff 0%, #f5fbfb 100%);
  border: 1px solid #d3ece8;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.calendar-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 61, 83, 0.08);
  color: #003D53;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-modal-close:hover {
  background: rgba(0, 61, 83, 0.18);
}

.calendar-modal-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #658999;
  margin: 0 0 4px;
  font-weight: 700;
}

.calendar-modal-dialog h4 {
  margin: 0;
  color: #003D53;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  padding-right: 34px;
}

.calendar-modal-meta {
  margin: 12px 0 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-modal-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf5f3;
  color: #2f5967;
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3e5963;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .calendar-modal-dialog {
    border-radius: 10px;
    padding: 14px;
  }

  .calendar-modal-dialog h4 {
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .cal-events {
    max-height: none;
  }
}

.play-title {
  text-align: center;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  margin: 10px 16px 10px;
}

.play-thumb img {
  border-radius: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.play-thumb,
.play-desc,
.play-link {
  padding: 0 16px;
  display: block;
}

.play-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.play-link {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
}

/* ===========================
   CONTENT AREA
   =========================== */
.content-area {
  flex: 1;
  min-width: 0;
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  padding: 10px 20px;
  color: var(--white);
  display: flex;
  align-items: center;
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 i {
  margin-right: 8px;
}

.familia-header {
  background: var(--orange);
}

.espiritual-header {
  background: var(--espiritual);
}

.salud-header {
  background: var(--teal);
}

.intelectual-header {
  background: var(--intelectual);
}

.social-header {
  background: var(--social);
}

.profesional-header {
  background: var(--profesional);
}

/* ===========================
   CARDS GRID (FAMILIA)
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
}

.card {
  border-right: 1px solid #eee;
  overflow: hidden;
}

.card:last-child {
  border-right: none;
}

.card-img {
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-body p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.read-more {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--orange-dark);
}

/* ===========================
   POSTS LIST (ESPIRITUAL)
   =========================== */
.posts-list {
  background: var(--white);
}

.post-row {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.post-row:hover {
  background: #fafafa;
}

.post-row:last-child {
  border-bottom: none;
}

.post-img {
  flex-shrink: 0;
  width: 240px;
  overflow: hidden;
  border-radius: 4px;
}

.post-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s;
}

.post-row:hover .post-img img {
  transform: scale(1.05);
}

.post-body {
  flex: 1;
}

.post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.post-body p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-widget {
  margin-bottom: 0;
  background: var(--white);
  overflow: hidden;
}

.widget-header {
  background: rgb(0, 61, 83);
  color: var(--white);
  padding: 10px 16px;
}

.widget-header.orange-header {
  background: rgb(0, 61, 83);
}

.widget-header h3 {
  font-size: 0.935rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-body {
  padding: 16px;
}

/* Search */
.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-main);
}

.search-form button {
  padding: 0 14px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-form button:hover {
  background: var(--teal-dark);
}

/* Recent Posts */
.recent-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-list li img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.recent-list li a {
  font-size: 0.82rem;
  color: var(--dark-gray);
  font-weight: 600;
  transition: color 0.2s;
}

.recent-list li a:hover {
  color: var(--teal);
}

/* Video Widget */
.video-thumb {
  position: relative;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.video-player {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: #000;
  margin-bottom: 12px;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-thumb:hover .video-play {
  opacity: 1;
}

.video-play i {
  font-size: 3rem;
  color: var(--white);
}

.apoyo-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.apoyo-btn:hover {
  background: var(--teal-dark);
}

/* Comentarios */
.comentarios-widget .widget-body p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
}

.comentarios-widget .widget-body p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Recursos */
.recursos-list li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.recursos-list li:last-child {
  border-bottom: none;
}

.recursos-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-weight: 600;
  transition: color 0.2s;
  width: 100%;
}

.recursos-list li a:hover {
  color: var(--teal);
}

.recursos-list li a i {
  font-size: 1rem;
  color: var(--teal);
  flex-shrink: 0;
}

.recursos-list li a:hover i {
  color: var(--teal-dark);
}

/* Subscribe */
.suscribete-widget .widget-header h3 {
  text-align: center;
  line-height: 1.5;
  font-size: 0.82rem;
}

.subscribe-form {
  display: flex;
  gap: 0;
}

.subscribe-feedback {
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.subscribe-feedback-success {
  background: #e9f8ef;
  color: #155724;
  border: 1px solid #bce3c8;
}

.subscribe-feedback-info {
  background: #e8f6fb;
  color: #0b5468;
  border: 1px solid #bce2ef;
}

.subscribe-feedback-error {
  background: #fdecec;
  color: #7b1f29;
  border: 1px solid #f2c1c7;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--dark-gray);
  border-right: none;
  font-size: 0.82rem;
  font-family: var(--font-main);
}

.subscribe-form button {
  padding: 10px 16px;
  background: var(--dark-gray);
  color: var(--white);
  border: 2px solid var(--dark-gray);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.subscribe-form button:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* ===========================
   FOOTER
   =========================== */
.main-footer {
  background: var(--teal-dark);
  color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
}

/* Logo block */
.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo-text {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1;
}

.footer-year {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  margin-top: 2px;
}

.footer-leaf {
  width: 52px;
  height: 70px;
  flex-shrink: 0;
}

/* Redes sociales */
.footer-social h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: right;
  color: rgba(255,255,255,0.85);
}

.social-icons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.social-icons a:nth-child(1) { background: #6b7280; }
.social-icons a:nth-child(2) { background: #9ca3af; }
.social-icons a:nth-child(3) { background: #6b7280; }
.social-icons a:nth-child(4) { background: #9ca3af; }

.social-icons a:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* Copyright bar */
.footer-copy {
  text-align: right;
  padding: 10px 32px;
  background: rgba(0, 0, 0, 0.20);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.7);
}

/* ===========================
   CONTENIDO CENTRADO
   =========================== */
.band-centered {
  justify-content: center;
  padding: 0 20px;
}

.section-centered {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.section-centered .section-header {
  justify-content: center;
  text-align: center;
}

.section-centered .section-header h1,
.section-centered .section-header h2 {
  text-align: center;
  margin: 0;
}

.section-centered .content-box {
  text-align: center;
}

.denuncia-content {
  text-align: center;
}

/* Videos Gallery */
.videos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-item video {
  border-radius: 6px;
  margin-bottom: 10px;
}

.video-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Archivos List */
.archivos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.archivo-item {
  display: flex;
  align-items: stretch;
}

.archivo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px 20px;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.archivo-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.archivo-link:hover {
  background: linear-gradient(135deg, #efefef 0%, #f9f9f9 100%);
  border-color: #d9534f;
  box-shadow: 0 6px 16px rgba(217, 83, 79, 0.15);
  transform: translateY(-4px);
}

.archivo-link:hover::before {
  left: 100%;
}

.archivo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 10px;
  border-radius: 12px;
  background: #d9534f;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(217, 83, 79, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archivo-link:hover .archivo-badge {
  transform: scale(1.06);
  box-shadow: 0 6px 14px rgba(217, 83, 79, 0.36);
}

.archivo-text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
  transition: color 0.3s ease;
}

.archivo-link:hover .archivo-text {
  color: #d9534f;
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .band {
    flex-direction: column;
  }

  .band-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e8e8e8;
  }

  .fissep-play-sidebar {
    border-bottom: 1px solid #e8e8e8;
  }

  .calendar-strip {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .page-wrapper {
    display: flex;
    flex-direction: column;
  }

  .band {
    display: contents;
  }

  .band-left {
    display: contents;
  }

  .band-right {
    display: contents;
  }

  /* 1. Banner */
  .band-hero .band-left {
    order: 1;
  }

  /* 2. Calendario */
  .calendar-widget {
    order: 2;
  }

  /* 3. Búsqueda */
  .search-widget {
    order: 3;
  }

  /* 4. FISSEP Play */
  .band-home-categories .band-right .video-widget {
    order: 4;
  }

  /* 5. Recientes (primeros) */
  .band-familia .band-right > .recientes-widget {
    order: 5;
  }

  /* 6. Artículos por categoría */
  .band-familia .band-left > .section-block,
  .band-home-categories .band-left > .section-block,
  .band-espiritual .band-left > .section-block {
    order: 6;
  }

  /* 7. Comentarios */
  .comentarios-widget {
    order: 7;
  }

  /* 8. Últimos vistos */
  .band-espiritual .band-right > .recientes-widget {
    order: 8;
  }

  /* 9. Recursos */
  .recursos-widget {
    order: 9;
  }

  /* 10. Contacto de apoyo */
  .apoyo-emocional-widget {
    order: 10;
  }

  .main-nav {
    display: none;
  }

  /* ── Menú abierto ────────────────────────────────── */
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #003D53;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-top: 2px solid var(--teal);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .main-nav.open > ul {
    flex-direction: column;
    height: auto;
  }

  .main-nav.open > ul > li {
    height: auto;
    flex: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.open > ul > li:last-child {
    border-bottom: none;
  }

  .main-nav.open > ul > li > a {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-right: none;
    border-left: none;
    justify-content: space-between;
    width: 100%;
  }

  /* Deshabilitar hover en móvil, usar solo JS */
  .main-nav.open .has-dropdown:hover .dropdown,
  .main-nav.open .has-dropdown:focus-within .dropdown {
    display: none;
  }

  /* Submenús acordeón controlados por JS (.open en el li) */
  .main-nav.open .has-dropdown > .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    min-width: 0;
    background: rgba(0, 0, 0, 0.25);
  }

  .main-nav.open .has-dropdown.open > .dropdown {
    display: block;
  }

  .main-nav.open .dropdown li a {
    padding-left: 36px;
    font-size: 0.82rem;
  }

  /* Ícono de flecha en items con submenú */
  .main-nav.open .has-dropdown > a i.fa-caret-down {
    transition: transform 0.25s;
  }

  .main-nav.open .has-dropdown.open > a i.fa-caret-down {
    transform: rotate(180deg);
  }

  .mobile-toggle {
    display: block;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .post-row {
    flex-direction: column;
  }

  .post-img {
    width: 100%;
  }

  .post-img img {
    height: 200px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content h2 strong {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }

  .hero-content {
    padding: 24px;
  }

  .post-row {
    padding: 14px;
  }

  .card-body {
    padding: 12px;
  }
}

/* ===========================
   BREADCRUMB
   =========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--light-gray);
  border-bottom: 1px solid var(--medium-gray);
  font-size: 0.78rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--teal);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--medium-gray);
  font-size: 0.65rem;
}

.breadcrumb-current {
  color: var(--text-color);
}

/* ===========================
   SECTION BANNER (articles.html)
   =========================== */
.section-banner {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.familia-banner {
  background: url('https://placehold.co/800x300/F58025/white?text=') center/cover no-repeat;
}

.espiritual-banner {
  background: url('https://placehold.co/800x300/652D89/white?text=') center/cover no-repeat;
}

.section-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 128, 37, 0.88) 0%, rgba(0, 61, 83, 0.75) 100%);
}

.espiritual-banner .section-banner-overlay {
  background: linear-gradient(135deg, rgba(101, 45, 137, 0.88) 0%, rgba(0, 61, 83, 0.75) 100%);
}

.section-banner-content {
  position: relative;
  z-index: 2;
  padding: 32px 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-banner-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.section-banner-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.section-banner-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===========================
   ARTICLES TOOLBAR
   =========================== */
.articles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  gap: 12px;
  flex-wrap: wrap;
}

.articles-count {
  font-size: 0.82rem;
  color: var(--text-color);
}

.articles-count strong {
  color: var(--teal);
}

.articles-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-main);
  color: var(--dark-gray);
  background: var(--white);
  cursor: pointer;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--medium-gray);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn.active,
.view-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ===========================
   ARTICLES GRID (articles.html)
   =========================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--white);
}

.article-card {
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card:nth-child(2n) {
  border-right: none;
}

.article-card-img-link {
  display: block;
  overflow: hidden;
}

.article-card-img {
  position: relative;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s;
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

.article-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.article-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--text-color);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-card-meta i {
  color: var(--teal);
  margin-right: 4px;
}

.article-card-body h2 {
  font-size: 1.012rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 8px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-card-body h2 a {
  color: inherit;
  transition: color 0.2s;
}

.article-card-body h2 a:hover {
  color: var(--teal);
}

.article-card-body p {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 14px;
  line-height: 1.6;
  flex: 1;
}

.article-card-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
  align-self: flex-start;
}

.article-card-link:hover {
  color: var(--orange-dark);
  gap: 10px;
}

/* ===========================
   CATEGORIES SIDEBAR WIDGET
   =========================== */
.categories-list li {
  border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
  border-bottom: none;
}

.categories-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: color 0.2s;
}

.categories-list li a i {
  color: var(--teal);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.categories-list li a span {
  background: var(--light-gray);
  color: var(--text-color);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.categories-list li a:hover {
  color: var(--teal);
}

.categories-list li a:hover span {
  background: var(--teal);
  color: var(--white);
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  background: var(--white);
  border-top: 1px solid #eee;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
  padding: 0 10px;
  transition: all 0.2s;
}

.page-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.page-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.page-dots {
  color: var(--text-color);
  font-size: 0.85rem;
  padding: 0 4px;
}

/* ===========================
   SINGLE ARTICLE (article.html)
   =========================== */
.single-article {
  background: var(--white);
  padding: 32px 36px;
}

/* Article Header */
.article-header {
  margin-bottom: 24px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.familia-badge {
  background: rgba(245, 128, 37, 0.12);
  color: var(--orange);
}

.espiritual-badge {
  background: rgba(101, 45, 137, 0.12);
  color: var(--espiritual);
}

.intelectual-badge {
  background: rgba(0, 90, 111, 0.12);
  color: var(--intelectual);
}

.social-badge {
  background: rgba(226, 1, 118, 0.12);
  color: var(--social);
}

.profesional-badge {
  background: rgba(177, 0, 92, 0.12);
  color: var(--profesional);
}

.article-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-color);
}

.meta-item i {
  color: var(--teal);
}

.meta-item a {
  color: var(--teal);
  font-weight: 600;
}

.meta-item a:hover {
  text-decoration: underline;
}

/* Featured Image */
.article-featured-img {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
}

.article-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.article-featured-img figcaption,
.article-inline-img figcaption {
  font-size: 0.75rem;
  color: #999;
  padding: 8px 0 0;
  font-style: italic;
  text-align: center;
}

/* Article Body */
.article-body {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.85;
}

.article-intro {
  font-size: 1rem;
  color: var(--dark-gray);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.article-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-quote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--light-gray);
  border-left: 4px solid var(--teal);
  border-radius: 0 6px 6px 0;
}

.article-quote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 8px !important;
}

.article-quote cite {
  font-size: 0.8rem;
  color: var(--text-color);
  font-style: normal;
}

.article-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: #555;
}

.article-list li i {
  color: var(--teal);
  margin-top: 3px;
  flex-shrink: 0;
}

.article-inline-img {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
}

.article-inline-img img {
  width: 100%;
  border-radius: 6px;
}

/* Article Footer */
.article-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
}

.tags-label i {
  margin-right: 4px;
  color: var(--teal);
}

.tag {
  padding: 4px 12px;
  background: var(--light-gray);
  border: 1px solid var(--medium-gray);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: all 0.2s;
}

.tag:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
}

.share-buttons {
  display: flex;
  gap: 6px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
  transform: scale(1.12);
  opacity: 0.9;
}

.share-facebook  { background: #3b5998; }
.share-twitter   { background: #1da1f2; }
.share-whatsapp  { background: #25d366; }
.share-link      { background: var(--teal); }

/* Author Card */
.article-author-card {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  background: var(--light-gray);
  border-radius: 8px;
  border: 1px solid var(--medium-gray);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--teal);
}

.author-info {
  flex: 1;
}

.author-label {
  font-size: 0.72rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 4px;
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.author-social {
  display: flex;
  gap: 8px;
}

.author-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--white);
  background: var(--teal);
  transition: background 0.2s;
}

.author-social a:hover {
  background: var(--teal-dark);
}

/* Article Nav */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-top: 1px solid #eee;
}

.article-nav-prev,
.article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  transition: background 0.2s;
  border-bottom: 1px solid #eee;
}

.article-nav-next {
  text-align: right;
  border-left: 1px solid #eee;
}

.article-nav-prev:hover,
.article-nav-next:hover {
  background: var(--light-gray);
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-label i {
  font-size: 0.65rem;
}

.nav-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
  line-height: 1.4;
}

/* Downloads Section */
.article-downloads {
  background: var(--white);
  margin: 24px 0;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  overflow: hidden;
}

.downloads-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(0, 174, 158, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid #eee;
}

.downloads-header i {
  font-size: 1.1rem;
  color: var(--teal);
}

.downloads-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin: 0;
}

.downloads-body {
  padding: 16px 20px;
}

.downloads-body p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 12px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--teal);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.download-btn:hover {
  background: var(--teal-dark);
}

.download-btn i {
  font-size: 0.95rem;
}

.download-label {
  display: inline;
}

/* Related Articles */
.related-articles {
  background: var(--white);
}

/* ===========================
   COMMENTS SECTION
   =========================== */
.comments-section {
  background: var(--white);
  margin-top: 0;
}

.comments-list {
  padding: 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.comment:last-child {
  border-bottom: none;
}

.comment-reply {
  margin-left: 48px;
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--medium-gray);
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 0.88rem;
  color: var(--dark-gray);
}

.author-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--teal);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comment-date {
  font-size: 0.72rem;
  color: #aaa;
  margin-left: auto;
}

.comment-content p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  padding: 0;
}

.comment-reply-btn:hover {
  color: var(--teal-dark);
}

/* Comment Form */
.comment-form-wrap {
  padding: 28px 36px 36px;
  border-top: 1px solid #eee;
}

.comment-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group label span {
  color: var(--orange);
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-main);
  color: var(--dark-gray);
  background: var(--white);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.comment-submit:hover {
  background: var(--teal-dark);
}

/* ===========================
   RESPONSIVE — NUEVAS PÁGINAS
   =========================== */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-banner-content h1 {
    font-size: 1.6rem;
  }
}

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

  .article-card:nth-child(2n) {
    border-right: 1px solid #eee;
  }

  .article-card {
    border-right: none;
  }

  .single-article {
    padding: 20px 18px;
  }

  .article-title {
    font-size: 1.3rem;
  }

  .article-featured-img img {
    height: 220px;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-next {
    text-align: left;
    border-left: none;
    border-top: 1px solid #eee;
  }

  .article-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-social {
    justify-content: center;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .comments-list {
    padding: 16px 18px;
  }

  .comment-form-wrap {
    padding: 20px 18px 24px;
  }

  .comment-reply {
    margin-left: 16px;
  }

  .section-banner-content {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
  }

  .articles-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   HIDE VIDEO CONTEXT MENU
   =========================== */
/* Ocultar controles específicos del video en Chrome/Edge */
video::-webkit-media-controls-overflow-menu-button {
  display: none !important;
}

video::-webkit-media-controls-overflow-menu-list {
  display: none !important;
}

video::-webkit-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}

/* Ocultar el menú contextual del video */
video::cue {
  display: none !important;
}
