﻿:root {
  /* ===== COLORS (puedes mantener los tuyos) ===== */
  --primary-color: #f4d58d; /* dorado cálido */
  --secondary-color: #a7c7e7; /* azul suave */
  --accent-color: #d88c60; /* terracota */
  --gh-dark-color: #333333;
  --gh-light-color: #e2e5e7;
  --gh-white-color: #ffffff;
  /* ===== TYPOGRAPHY ===== */
  --gh-title-font: "Nunito", sans-serif;
  --gh-body-font: "Roboto", sans-serif;
  /* ===== FONT SIZES ===== */
  /* Typography scale */
  --gh-font-size: 1.2rem;
  --gh-font-weight: 400;
  --gh-line-height: 1.7rem;
  --gh-title-color: var(--gh-dark-color);
}

/* html {
        position: relative;
        min-height: 100%;
    } */

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden !important;
}

body {
  font-family: var(--gh-body-font);
  font-size: var(--gh-font-size);
  font-weight: var(--gh-font-weight);
  line-height: var(--gh-line-height);
  color: var(--gh-dark-color);
  background: var(--gh-white-color);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}

/* Div Centering */
section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: visible;
  margin-top: -3rem;
}

a {
  color: var(--gh-white-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gh-title-font);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gh-title-color);
  letter-spacing: 0.1rem;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* =====================================================
   🔹 BOTONES PERSONALIZADOS (Tinta & Gracia)
===================================================== */

/* === BOTÓN PRIMARIO (dorado cálido) === */
.btn-primary {
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-color: #000;
  --bs-btn-hover-bg: #eecb75;
  --bs-btn-hover-border-color: #eecb75;
  --bs-btn-active-bg: #e3bc63;
  --bs-btn-active-border-color: #e3bc63;
  transition: all 0.3s ease;
  padding-inline: 1.2rem;
}

.btn-primary:hover {
  box-shadow: 0 4px 10px rgba(244, 213, 141, 0.4);
  transform: translateY(-2px);
}

/* === BOTÓN SECUNDARIO (azul suave) === */
.btn-secondary {
  --bs-btn-bg: var(--secondary-color);
  --bs-btn-border-color: var(--secondary-color);
  --bs-btn-color: #000;
  --bs-btn-hover-bg: #96b9dc;
  --bs-btn-hover-border-color: #96b9dc;
  --bs-btn-active-bg: #87add5;
  --bs-btn-active-border-color: #87add5;
  transition: all 0.3s ease;
  padding-inline: 1.2rem;
}

.btn-secondary:hover {
  box-shadow: 0 4px 10px rgba(167, 199, 231, 0.4);
  transform: translateY(-2px);
}

/* === BOTÓN DE ÉNFASIS / DESTACADO (terracota) === */
.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #c27855;
  border-color: #c27855;
  box-shadow: 0 4px 10px rgba(216, 140, 96, 0.4);
  transform: translateY(-2px);
}

/* === VERSIÓN OUTLINE (limpia y moderna) === */
.btn-blogs {
  color: var(--primary-color);

  transition: all 0.3s ease;
  padding-inline: 1.2rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-blogs:hover {
  background-color: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
  box-shadow: 0 3px 8px rgba(244, 213, 141, 0.4);
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: #000;
  box-shadow: 0 3px 8px rgba(167, 199, 231, 0.4);
}

/* === SOMBRA SUTIL (extra utilidad) === */
.btn-shadow:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* === Transiciones uniformes para todos los botones === */
.btn {
  border-radius: 2rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Chips de etiquetas */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  color: #212529 !important;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tag-chip:hover {
  background: var(--primary-color);
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.tag-chip.active {
  background: var(--primary-color);
  color: #000 !important;
  font-weight: 600;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
/* Opcional: animación de entrada suave para los chips */
@keyframes fadeInTag {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tag-chip {
  animation: fadeInTag 0.3s ease both;
}

.avatar {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border: 2px solid #f4d58d;
}

.author-name {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
}

.date {
  font-size: 0.9rem;
  line-height: 1.25;
  color: #6c757d;
}

/* Quitar azul al hacer clic en el dropdown toggle */
.nav-link.dropdown-toggle:focus,
.nav-link.dropdown-toggle:active,
.nav-link.dropdown-toggle.show {
  color: inherit !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Evitar azul al hacer clic en los items */
.dropdown-item:active,
.dropdown-item:focus {
  background-color: transparent !important;
  color: inherit !important;
}

/* Hover limpio */
.dropdown-item:hover {
  background-color: var(--primary-color);
  color: inherit;
  border-radius: 16px;
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.7;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color, #f4d58d);
  opacity: 1;
  transform: scale(1.2);
}

/* === FOOTER === */
.footer {
  background-color: #333333;
  color: #ffffff;
}

/* === ENLACES DEL FOOTER (Inicio, Mensajes, Nosotros, etc.) === */
.footer-link {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Línea animada debajo */
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-link:hover::after {
  width: 100%;
}

/* === ENLACE DEL AUTOR (name-title) === */
.name-title {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.name-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.name-title:hover {
  color: var(--primary-color);
}

.name-title:hover::after {
  width: 100%;
}

/* ================================
   🌗 DARK / LIGHT MODE
================================ */

/* Tema claro (por defecto) */
/* :root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --primary-color: #f4d58d; 
  --secondary-color: #a7c7e7; 
} */

/* Tema oscuro */
/* .dark-theme {
  --bg-color: #1a1a1a;
  --text-color: #f5f5f5;
} */

/* Aplica colores principales */
/* body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
} */

/* Botón flotante */
/* #themeToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: background-color 0.3s ease;
} */

/* #themeToggle:hover {
  background-color: var(--secondary-color);
} */

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  /* margin: 0; */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gh-dark-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title div {
  color: var(--gh-dark-color);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.7;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color, #f4d58d);
  opacity: 1;
  transform: scale(1.2);
}
