/* =========================
   TIPOGRAFÍA GLOBAL – OPECH
========================= */

/* Importación de fuente */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700');

/* Reset mínimo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enlaces */
a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.6em 0;
}

/* Pesos recomendados */
strong,
b {
  font-weight: 600;
}

/* Texto general */
p {
  margin: 0 0 1em 0;
}

/* Listas */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Formularios */
input,
textarea,
select,
button {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

/* Contenedor base (si lo usas) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== Base ===== */
.vx-header{ width:100%; }
.vx-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  box-sizing: border-box;
}

/* ===== Top bar ===== */
.vx-topbar{
  background: linear-gradient(180deg, #241d55 0%, #19133f 100%);
  color: #fff;
  height: 44px;
}
.vx-topbar__inner{
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.vx-topbar__spacer{ width: 140px; }

.vx-topbar__contacts{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .2px;
  opacity: .95;
}
.vx-topbar__link{
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vx-topbar__link:hover{ opacity: .9; }

.vx-ico{
  width: 16px;
  height: 16px;
  display: inline-flex;
}
.vx-ico svg{ width: 16px; height: 16px; color: rgba(255,255,255,.9); }

.vx-topbar__sep{
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.25);
}

/* Socials (cuadritos a la derecha) */
.vx-topbar__social{
  display: inline-flex;
  align-items: center;
}
.vx-social{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.14);
}
.vx-social svg{ width: 16px; height: 16px; color: rgba(255,255,255,.92); }
.vx-social:hover{ background: rgba(255,255,255,.06); }

/* ===== Main bar ===== */
.vx-mainbar{
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 40px 0;
}
.vx-mainbar__inner{
  height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Brand */
.vx-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2b2258;
  min-width: 220px;
}
.vx-brand__mark{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.vx-brand__mark svg{ width: 44px; height: 44px; }
.vx-brand__text{
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 22px;
}

/* Nav centered like image */
.vx-nav{
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 26px;
}
.vx-nav__link{
  text-decoration: none;
  color: #2b2258;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
}
.vx-nav__link:hover{ opacity: .85; }
.vx-nav__link--active{ color: #1aa6ff; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .vx-topbar__spacer{ display:none; }
  .vx-nav{ justify-content: flex-end; gap: 16px; }
}
@media (max-width: 760px){
  .vx-topbar__contacts{ display:none; }
  .vx-mainbar__inner{ height: auto; padding: 14px 0; flex-direction: column; align-items: flex-start; }
  .vx-nav{ justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
  .vx-brand{ min-width: auto; }
}

/* Pega esto en assets/css/estilo.css */
.hero-slider{
  width: 100%;
}

.hero-slick,
.hero-slide{
  width: 100%;
}

.hero-slide img{
  width: 100%;
  height: 520px;          /* ajusta si quieres */
  object-fit: cover;
  display: block;
}

/* Flechas más sobrias (sin cambiar tu tipografía/colores base) */
.hero-slider .slick-prev,
.hero-slider .slick-next{
  width: 44px;
  height: 44px;
  z-index: 5;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before{
  font-size: 34px;
  opacity: .85;
}

/* Dots centrados */
.hero-slider .slick-dots{
  bottom: 16px;
}
.hero-slider .slick-dots li button:before{
  font-size: 10px;
  opacity: .45;
}
.hero-slider .slick-dots li.slick-active button:before{
  opacity: .95;
}
/* =========================
   Noticias y Novedades OPECH
========================= */

.opech-news {
  padding: 70px 0;
  
}

.opech-news__header {
  text-align: center;
  margin-bottom: 40px;
}

.opech-news__title {
  font-size: 32px;
  font-weight: 700;
}

/* Grid */
.opech-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.opech-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}

/* Imagen */
.opech-card__image {
  position: relative;
}

.opech-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Badge */
.opech-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #3a2d78;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
}

/* Body */
.opech-card__body {
  padding: 22px;
  flex: 1;
}

.opech-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.opech-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  opacity: .85;
  margin-bottom: 18px;
}

/* Link */
.opech-card__link {
  font-size: 13px;
  font-weight: 600;
  color: #3a2d78;
}

/* Meta */
.opech-card__meta {
  border-top: 1px solid #eee;
  padding: 14px 22px;
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .opech-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .opech-news__grid {
    grid-template-columns: 1fr;
  }
}
/* Grid 4 columnas */
.opech-news__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards un poco más compactas */
.opech-news--grid-8 .opech-card__image img {
  height: 190px;
}

.opech-news--grid-8 .opech-card__title {
  font-size: 16px;
}

.opech-news--grid-8 .opech-card__excerpt {
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1100px) {
  .opech-news__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .opech-news__grid--4 {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Eventos OPECH
========================= */

.opech-events {
  padding: 70px 0;
}

.opech-events__header {
  text-align: center;
  margin-bottom: 40px;
}

.opech-events__title {
  font-size: 32px;
  font-weight: 700;
}

/* Grid */
.opech-events__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card evento */
.opech-event {
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
}

.opech-event:hover {
  transform: scale(1.04);
}

.opech-event__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.opech-event__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Fecha */
.opech-event__date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #3a2d78;        /* color institucional */
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  letter-spacing: .5px;
}

/* Título */
.opech-event__name {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 1100px) {
  .opech-events__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .opech-events__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOOTER OPECH
========================= */

.opech-footer {
  background: #0f2a33;
  color: rgba(255,255,255,.85);
  position: relative;
}

/* Grid */
.opech-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.4fr;
  gap: 40px;
  padding: 70px 0 50px;
}

/* Brand */
.opech-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.opech-footer__brand img {
  width: 90px;
  height: auto;
}

.opech-footer__brand span {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

/* Titles */
.opech-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

/* About */
.opech-footer__about p {
  font-size: 14px;
  line-height: 1.7;
  opacity: .8;
}

/* Contact */
.opech-footer__contact ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.opech-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.opech-footer__contact .icon {
  font-size: 15px;
  opacity: .9;
}

/* Social */
.opech-footer__social {
  display: flex;
  gap: 10px;
}

.opech-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  transition: background .25s ease, border-color .25s ease;
}

.opech-footer__social a:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
}

/* Bottom */
.opech-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: .7;
}

/* Back to top */
.opech-backtop {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #0b3b44;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transition: transform .25s ease, background .25s ease;
}

.opech-backtop:hover {
  background: #11515d;
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 980px) {
  .opech-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .opech-footer__brand {
    gap: 14px;
    text-align: center;
  }

  .opech-footer__brand img {
    width: 100%;
    max-width: 220px;   /* controla el tamaño máximo del logo */
    height: auto;
  }
  
  .opech-footer__brand span {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    opacity: .9;
  }

  .opech-footer__about,
  .opech-footer__contact {
    text-align: center;
  }

  .opech-footer__contact ul li {
    justify-content: center;
  }

  .opech-footer__social {
    justify-content: center;
  }
}
.slick-slider,
.slick-list,
.slick-track {
  overflow-x: hidden;
}
/* ===== Single Post Layout ===== */
.single-post{
  padding: 46px 0 70px;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

/* ===== Post ===== */
.post{
  min-width: 0;
}

.post__hero{
  margin: 0 0 18px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.post__hero img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.post__head{
  margin-bottom: 18px;
}

.post__title{
  margin: 0 0 10px 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}

.post__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  opacity: .85;
}

.post__sep{ opacity: .6; }

.post__content{
  font-size: 15px;
  line-height: 1.85;
  opacity: .92;
}

.post__content p{
  margin: 0 0 18px 0;
}

/* ===== Relacionadas (grid de 3) ===== */
.related{
  margin-top: 34px;
  border-top: 1px solid rgba(0,0,0,.10);
  padding-top: 26px;
}

.related__title{
  margin: 0 0 18px 0;
  font-size: 20px;
  font-weight: 700;
}

.related__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card{
  border-top: 1px solid rgba(0,0,0,.10);
  padding-top: 12px;
}

.related-card__img{
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.related-card__img img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.related-card__title{
  margin: 12px 0 8px 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.related-card__title a{
  color: inherit;
  text-decoration: none;
}

.related-card__title a:hover{ text-decoration: underline; }

.related-card__excerpt{
  margin: 0;
  font-size: 13px;
  opacity: .82;
  line-height: 1.6;
}

/* ===== Sidebar ===== */
.sidebar{
  min-width: 0;
  position: sticky;
  top: 18px;
}

.side-card{
  padding-top: 14px;
  margin-bottom: 40px;
}

.side-card__title{
  margin: 0 0 16px 0;
  font-size: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
}

/* Social bar */
/* Social bar azul */
.socialbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* mismo ancho para cada icono */
  background: #1e5ca4;                   /* azul */
  border-radius: 12px;
  overflow: hidden;                      /* bordes limpios */
}

/* Botones */
.socialbar__btn {
  display: grid;
  place-items: center;
  height: 46px;
  color: #fff;                          /* iconos blancos */
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.25);
}

/* Quita borde al último */
.socialbar__btn:last-child {
  border-right: none;
}

/* Hover sutil */
.socialbar__btn:hover {
  background: rgba(255,255,255,.15);
}

/* Featured */
.featured-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-item{
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.featured-item__img{
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.featured-item__img img{
  width: 76px;
  height: 60px;
  object-fit: cover;
  display: block;
}

.featured-item__title{
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.featured-item__title a{
  color: inherit;
  text-decoration: none;
}

.featured-item__title a:hover{ text-decoration: underline; }

.featured-item__more{
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #3a2d78;
}

.featured-item__more:hover{ text-decoration: underline; }

/* Events list */
.events-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-row{
  display: grid;
  grid-template-columns: 64px 1fr 18px;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 10px;
  border-radius: 12px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.event-row:hover{
  background: rgba(0,0,0,.03);
  transform: translateY(-1px);
}

.event-row__date{
  background: #4ec7d3; /* cyan */
  color: #fff;
  border-radius: 12px;
  height: 60px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.event-row__day{
  font-weight: 800;
  font-size: 30px;
}

.event-row__mon{
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  opacity: .95;
}

.event-row__name{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.event-row__icon{
  font-size: 18px;
  opacity: .6;
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .single-layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; top: auto; }
  .related__grid{ grid-template-columns: repeat(2, 1fr); }
  .post__hero img{ height: 360px; }
}

@media (max-width: 600px){
  .related__grid{ grid-template-columns: 1fr; }
  .post__title{ font-size: 26px; }
  .post__hero img{ height: 260px; }
}

/* ===== About Page (sin sidebar) ===== */
.about-page{
  padding: 56px 0 80px;
}

.about-hero{
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.about-hero__title{
  margin: 0 0 10px 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

.about-hero__lead{
  margin: 0 auto;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.75;
  opacity: .85;
}

.about-content{
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  opacity: .92;
}

.about-content p{
  margin: 0 0 18px 0;
}

/* Cita */
.about-quote{
  margin: 26px 0;
  padding: 18px 18px;
  border-left: 4px solid #1e5ca4;
  background: rgba(30,92,164,.06);
  border-radius: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.about-quote cite{
  display: block;
  margin-top: 10px;
  font-size: 13px;
  opacity: .75;
  font-style: normal;
}

/* Títulos internos */
.about-section-title{
  margin: 26px 0 12px 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 1;
}

/* Listado */
.about-list{
  margin: 0 0 22px 0;
  padding-left: 18px; /* bullets */
  list-style: disc;
}

.about-list li{
  margin: 0 0 10px 0;
  opacity: .92;
}

/* Video responsive */
.about-video{
  margin: 12px 0 22px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  aspect-ratio: 16 / 9;
  background: #000;
}

.about-video iframe{
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 600px){
  .about-hero__title{ font-size: 28px; }
}

/* =========================
   Archivo de Noticias (igual a imagen)
========================= */

.news-archive{
  padding: 60px 0 80px;
  background: #f7f8fb;
}

.news-archive__header{
  text-align: center;
  margin-bottom: 38px;
}

.news-archive__title{
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

/* Grid 3 columnas */
.news-archive__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.na-card{
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
}

/* Imagen */
.na-card__media{
  position: relative;
  display: block;
  overflow: hidden;
}

.na-card__media img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .35s ease;
}

.na-card:hover .na-card__media img{
  transform: scale(1.04);
}

/* Tag (pastilla arriba derecha) */
.na-card__tag{
  position: absolute;
  background: #3a2d78;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 10px;
  letter-spacing: .4px;
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* Body */
.na-card__body{
  padding: 22px 22px 18px;
  flex: 1;
}

.na-card__title{
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.na-card__title a{
  color: inherit;
  text-decoration: none;
}

.na-card__title a:hover{
  text-decoration: underline;
}

/* Excerpt */
.na-card__excerpt{
  margin: 0 0 18px 0;
  font-size: 13px;
  line-height: 1.8;
  color: #6a6a8a;
}

/* Leer más */
.na-card__more{
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  color: #2b2258;
}

.na-card__more:hover{
  text-decoration: underline;
}

/* Meta inferior */
.na-card__meta{
  padding: 14px 22px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 12px;
  color: #a6a6c0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.na-dot{ opacity: .7; }

/* Responsive */
@media (max-width: 1100px){
  .news-archive__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .news-archive__grid{
    grid-template-columns: 1fr;
  }
  .na-card__media img{
    height: 210px;
  }
}
/* =========================
   Paginación Noticias
========================= */

.na-pagination{
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.na-page{
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #2b2258;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.na-page:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.28);
}

.na-page--active{
  background: #3a2d78;
  border-color: #3a2d78;
  color: #fff;
}

.na-page--prev,
.na-page--next{
  font-size: 18px;
  line-height: 1;
}

.na-page--dots{
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
  color: rgba(43,34,88,.6);
}

.na-page[aria-disabled="true"]{
  opacity: .45;
  pointer-events: none;
}