/*
Theme Name: Entorno Theme
Author: Alexis
Version: 1.0
*/

/* =========================
   NAVBAR / HERO HEADER
========================= */

/* MENÚ HEADER */

.custom-menu ul {
  margin: 0;
  padding: 0;
}

.custom-menu li {
  list-style: none;
}

.custom-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: 0.3s;
}

.custom-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.custom-menu a:hover::after {
  width: 100%;
}

.custom-menu a:hover {
  opacity: 0.8;
}

.custom-navbar {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 600px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay más elegante */
.custom-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.6)
  );
}

.custom-navbar .container {
  position: relative;
  z-index: 2;
}

/* CONTENIDO CENTRAL */
.header-content {
  max-width: 700px;
}

/* LOGO */
.site-logo img {
  max-height: 120px;
  width: auto;
}

/* REDES */
.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  text-decoration: none;
}

.social-icons a i {
  font-size: 32px;
  color: #fff;
  transition: 0.3s;
}

.social-icons a:hover i {
  transform: scale(1.2);
  color: #ccc;
}

/* =========================
   MENÚ HEADER
========================= */

.custom-menu {
  margin-top: 35px;
}

.custom-menu .navbar-nav {
  display: flex;
  flex-direction: row; /* 🔥 fuerza horizontal */
  justify-content: center;
  align-items: center;
  gap: 40px;

  padding: 0;
  margin: 0;

  flex-wrap: wrap; /* 🔥 evita que se rompa raro */
}

.custom-menu .navbar-nav > li {
  display: flex;
  align-items: center;
} 

.custom-menu li {
  list-style: none;
  position: relative;
}

.custom-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s;
}

.custom-menu a:hover {
  opacity: 0.8;
}

/* DROPDOWN */

.menu-dropdown {
  position: relative;
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.95);
  min-width: 240px;
  padding: 15px 0;
  border-radius: 14px;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);

  z-index: 999;
}

.dropdown-menu-custom li {
  width: 100%;
}

.dropdown-menu-custom a {
  display: block;
  padding: 12px 22px;
  font-size: 14px;
  text-align: left;
  color: #fff;
}

.dropdown-menu-custom a:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}
/* =========================
   SIDEBAR RESPONSIVE
========================= */

@media (max-width: 991px) {

  .sidebar-sticky {
    position: relative;
    top: auto;
    margin-top: 50px;
  }

  .sidebar-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
  }

  .sidebar-description {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
  }

  .sidebar-divider {
    margin: 35px 0;
  }

}
/* =========================
   SIDEBAR MOBILE GRID
========================= */

@media (max-width: 991px) {

  .sidebar-ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .sidebar-ad {
    margin-bottom: 0;
  }

  .ad-sidebar {
    width: 100%;
    height: 180px;
    object-fit: cover;

    border-radius: 14px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

}


/* MOSTRAR DROPDOWN */

.menu-dropdown:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  top: 120%;
}

/* ICONO */

.menu-dropdown i {
  font-size: 12px;
  margin-left: 5px;
}

/* DOMINIO */
.header-domain {
  font-size: 18px;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* LÍNEA */
.header-divider {
  width: 80px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  margin: 15px auto;
}

/* TÍTULO */
.header-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* SLOGAN */
.header-text {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.9;
}


/* =========================
   HERO NUEVO
========================= */

.hero-main,
.hero-medium,
.hero-wide {
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;

  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* TAMAÑOS */
.hero-main {
  height: 420px;
  padding: 30px;
}

.hero-medium {
  height: 190px; /* 🔥 mucho más usable */
  padding: 20px;
}

.hero-wide {
  height: 350px;
  padding: 25px;
}

/* HOVER */
.hero-main:hover,
.hero-medium:hover,
.hero-wide:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* OVERLAY */
.hero-main::before,
.hero-medium::before,
.hero-wide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}

/* CONTENIDO */
.hero-content {
  position: relative;
  z-index: 2;
}

/* TIPOGRAFÍA */
.hero-main h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-medium h5 {
  font-size: 18px;
  margin: 0;
}

.hero-wide h4 {
  font-size: 22px;
  margin: 0;
}

.hero-content p {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.9;
}
/* =========================
   CATEGORÍAS
========================= */

.category-block {
  margin-top: 40px;
}

/* HEADER */
.category-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.category-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.category-description {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  max-width: 600px;
}

/* BOTÓN VER MÁS */
.btn-ver-mas {
  background: black;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-ver-mas:hover {
  background: #333;
  color: #fff;
}

/* TARJETA */
.category-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

/* IMAGEN */
.category-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENIDO */
.category-content {
  padding: 15px;
}

/* FECHA */
.category-date {
  font-size: 12px;
  color: #999;
  display: block;
  margin-bottom: 5px;
}

/* TÍTULO */
.category-post-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;

  display: -webkit-box;
  -webkit-line-clamp: 3; /* 🔥 más líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TEXTO */
.category-excerpt {
  font-size: 14px;
  color: #555;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* LINK COMPLETO */
.category-link {
  text-decoration: none;
  color: inherit;
}

/* =========================
   BANNERS
========================= */

.ad-horizontal {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}




/* SIDEBAR */

.ad-sidebar {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.sidebar-ad {
  margin-bottom: 35px; /* 🔥 más separación real */
}

/* opcional: último sin espacio */
.sidebar-ad:last-child {
  margin-bottom: 70px;
}

.sidebar-sticky {
  position: sticky;
  top: 20px;
}

/* =========================
   PAGINACIÓN
========================= */

.pagination {
  justify-content: center;
}

/* =========================
   TARJETAS
========================= */

.card-text {
  font-size: 14px;
  color: #555;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   SINGLE
========================= */

.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: 20px;
}

.card h6 {
  font-size: 16px;
  font-weight: 600;
}

/* =========================
   FOOTER ESTILO MODERNO
========================= */

.site-footer {
  background: #0b0f14;
  color: #fff;
  padding: 60px 0 30px;
  text-align: center;
}

/* LOGO */
.footer-logo img {
  max-height: 80px;
  width: 80px;
}

/* TEXTO SUPERIOR */
.footer-top-text p {
  font-size: 13px;
  color: #aaa;
  letter-spacing: 1px;
}

/* MENÚ */
.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  display: inline-block;
}

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-menu a:hover {
  color: #fff;
}

/* REDES */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #1a1f26;
  border-radius: 10px;
  transition: 0.3s;
}

.footer-social i {
  font-size: 20px;
  color: #fff;
}

.footer-social a:hover {
  background: #2a2f36;
  transform: translateY(-3px);
}

/* LEGALES */
.footer-legal {
  font-size: 12px;
  color: #777;
}

.footer-legal a {
  color: #777;
  text-decoration: none;
  margin: 0 5px;
}

.footer-legal a:hover {
  color: #fff;
}

/* COPYRIGHT */
.footer-copy p {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}
/* =========================
   INTRO / BLOQUE EDITORIAL
========================= */

.intro-block {
  padding: 50px 0 30px;
  background: #efefef; /* ligero contraste con header */
}

.intro-content {
  max-width: 800px;
}

/* ETIQUETA */
.intro-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
}

/* TÍTULO */
.intro-title {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0;
  color: #111;
}

/* SUBTÍTULO */
.intro-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* LÍNEA DECORATIVA */
.intro-divider {
  width: 60px;
  height: 3px;
  background: #000;
  margin-top: 15px;
}

/* =========================
   SECTION HEADER
========================= */

.section-latest {
  padding: 30px 0 10px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* IZQUIERDA */
.section-left {
  display: flex;
  flex-direction: column;
}

/* TAG */
.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  letter-spacing: 1px;
}

/* TÍTULO */
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin: 5px 0 0;
  color: #111;
}

/* LINK */
.section-link {
  font-size: 14px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: 0.3s;
}

.section-link:hover {
  text-decoration: underline;
  opacity: 0.7;
}

/* =========================
   CATEGORIES INTRO
========================= */

.section-categories {
  padding: 40px 0 20px;
}

/* CONTENEDOR */
.categories-header {
  max-width: 700px;
}

/* TAG */
.categories-tag {
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  letter-spacing: 1px;
}

/* TÍTULO */
.categories-title {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
  color: #111;
}

/* SUBTÍTULO */
.categories-subtitle {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* LÍNEA DECORATIVA */
.categories-header::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #000;
  margin-top: 15px;
}

/* =========================
   CATEGORÍAS DESCRIPCIÓN
========================= */

/* TÍTULO DE CATEGORÍA */
.category-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

/* DESCRIPCIÓN */
.category-description {
  font-size: 15px;
  color: #666;
  margin-top: 5px;
  max-width: 600px;
  line-height: 1.5;
}