/* ============================================================
   TAXI EL PERNAU — Tema Bludit
   Tipografía: Playfair Display (titulares) + Inter (cuerpo)
   Colores: rojo #9e070d · blanco · gris claro
   ============================================================ */

:root {
  --rojo: #9e070d;
  --rojo-oscuro: #7c050a;
  --verde: #25b61c;
  --verde-oscuro: #1a8a14;
  --tinta: #0f172a;
  --tinta-suave: #334155;
  --borde: #e2e8f0;
  --fondo: #ffffff;
  --fondo-gris: #f8fafc;
  --wa: #25d366;
  --dorado: #d97706;
  --sombra: 0 10px 30px rgba(15,23,42,.08);
}

/* ---- BASE ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif !important;
  background: var(--fondo) !important;
  color: var(--tinta) !important;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--tinta) !important;
  letter-spacing: -0.01em;
  font-weight: 600 !important;
}

a {
  color: var(--rojo);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--rojo-oscuro);
  text-decoration: none;
}

.contenedor { width: min(1180px, 92%); margin-inline: auto; }

/* ============================================================
   CABECERA (logo + teléfono + mascotas)
   ============================================================ */
.cabecera-pernau {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 14px 0;
}
.cabecera-fila {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,6fr) minmax(0,2fr);
  align-items: center;
  gap: 26px;
}
.cabecera-fila .logo img { height: 100px; width: auto; object-fit: contain; }
.cabecera-fila .telefono { text-align: center; }
.cabecera-fila .telefono img { width: min(668px, 100%); height: auto; margin-inline: auto; }
.cabecera-fila .mascotas { text-align: center; }
.cabecera-fila .mascotas img { width: 120px; height: auto; margin-inline: auto; }

.barra-roja { height: 8px; background: var(--rojo); }

/* ============================================================
   NAVBAR (único elemento superior: logo + menú + hamburguesa)
   ============================================================ */
.navbar-pernau {
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
  padding: 14px 0;
  z-index: 1050;
  position: sticky;
  top: 0;
  transition: all .3s ease;
}
.nav-pernau-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo siempre visible */
.nav-pernau-logo {
  flex-shrink: 0;
  display: inline-block;
}
.nav-pernau-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}
.navbar-pernau.sticky .nav-pernau-logo img {
  height: 42px;
}

/* Menú horizontal (desktop) */
.nav-pernau-menu {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-pernau-menu li a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta-suave);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 0;
  transition: color .2s;
}
.nav-pernau-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rojo);
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav-pernau-menu li a:hover { color: var(--rojo); }
.nav-pernau-menu li a:hover::after { width: 100%; }
.nav-pernau-menu li a.activo { color: var(--rojo); font-weight: 700; }
.nav-pernau-menu li a.activo::after { width: 100%; }

/* Toggle hamburguesa */
.nav-pernau-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}
.nav-pernau-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--tinta);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-pernau-toggle.activo span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-pernau-toggle.activo span:nth-child(2) { opacity: 0; }
.nav-pernau-toggle.activo span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE NAVBAR
   ============================================================ */
@media (max-width: 992px) {
  .nav-pernau-toggle { display: flex; }
  .nav-pernau-container { justify-content: space-between; }
  .nav-pernau-logo img { height: 46px; }
  .nav-pernau-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--borde);
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    z-index: 1060;
  }
  .nav-pernau-menu.open { display: flex; }
}

/* ============================================================
   BLOG WRAPPER
   ============================================================ */
.blog-wrapper {
  padding: 3.5rem 0 5rem;
  min-height: calc(100vh - 200px);
  background: var(--fondo-gris);
}

/* ============================================================
   TARJETAS DE POST
   ============================================================ */
.post-card {
  background: var(--fondo);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--sombra);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(158,7,13,.15);
}
.post-cover img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.post-body { padding: 2rem 2.5rem 2.5rem; }
.post-title-link { color: var(--tinta); }
.post-title-link:hover { color: var(--rojo); }
.post-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem !important;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.post-meta i { margin-right: 0.4rem; color: var(--rojo); }
.post-excerpt {
  color: var(--tinta-suave);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.post-excerpt p { margin-bottom: 1rem; }

/* Botón Leer más */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rojo);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.btn-read-more:hover {
  background: var(--rojo-oscuro);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(158,7,13,.3);
}

/* Tags y categorías */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borde);
}
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  background: var(--fondo-gris);
  border: 1px solid var(--borde);
  color: var(--tinta-suave);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.tag-item:hover {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
.tag-category {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
.tag-category:hover {
  background: var(--rojo-oscuro);
}

/* ============================================================
   POST SINGLE
   ============================================================ */
.post-single .single-title {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 1.5rem !important;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--tinta-suave);
  font-weight: 300;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content h2, .post-content h3 {
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  color: var(--tinta) !important;
}
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.35rem; }
.post-content a {
  color: var(--rojo);
  border-bottom: 1px solid var(--borde);
  transition: all 0.3s;
}
.post-content a:hover {
  color: var(--rojo-oscuro);
  border-bottom-color: var(--rojo);
}
.post-content blockquote {
  border-left: 3px solid var(--rojo);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(158,7,13,.05);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { border-radius: 8px; max-width: 100%; margin: 1em 0; }

.volver-blog { margin-top: 1.5rem; }
.volver-blog a {
  color: var(--rojo);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s;
}
.volver-blog a:hover { color: var(--rojo-oscuro); }

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination-wrapper { margin: 3rem 0; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: var(--fondo);
  border: 1px solid var(--borde);
  color: var(--tinta-suave);
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.page-link:hover {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
  transform: translateY(-2px);
}
.page-item.active .page-link {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-pernau { margin-top: 1rem; }

.sidebar-card {
  background: var(--fondo);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--sombra);
}
.sidebar-title {
  font-size: 1.1rem !important;
  margin-bottom: 1rem !important;
  color: var(--tinta) !important;
  border-bottom: 2px solid var(--rojo);
  padding-bottom: 8px;
}
.sidebar-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tinta-suave);
  margin-bottom: 1.5rem;
}

/* Categorías */
.sidebar-categories { list-style: none; padding: 0; margin: 0; }
.sidebar-categories li { margin-bottom: 0.5rem; }
.sidebar-categories li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--fondo-gris);
  border: 1px solid var(--borde);
  border-radius: 0.5rem;
  color: var(--tinta-suave);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.sidebar-categories li a:hover {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
.sidebar-categories li a i { color: var(--rojo); }
.sidebar-categories li a:hover i { color: #fff; }

/* CTA */
.sidebar-cta {
  background: linear-gradient(145deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  border: none;
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.sidebar-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}
.sidebar-cta-icon i { font-size: 1.6rem; color: #fff; }
.sidebar-cta-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.6rem !important;
  color: #fff !important;
  margin-bottom: 0.75rem !important;
}
.sidebar-cta-text {
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.btn-sidebar-cta {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--rojo) !important;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.btn-sidebar-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
  color: var(--rojo-oscuro) !important;
}
.btn-sidebar-wa {
  background: var(--wa);
  color: #fff !important;
}
.btn-sidebar-wa:hover { color: #fff !important; }
.sidebar-cta-note {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
}
.sidebar-cta-note i { color: rgba(255,255,255,.8); margin-right: 0.25rem; }

/* ============================================================
   FOOTER (ROJO CORPORATIVO)
   ============================================================ */
.pie-principal {
  background: #9E070D;
  color: #fff;
  padding-top: 40px;
  font-size: 15px;
}
.pie-rejilla {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.pie-principal h3 {
  color: #fff !important;
  font-size: 19px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,.3);
  padding-bottom: 8px;
  display: inline-block;
}
.pie-principal ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.pie-principal li { margin-bottom: 8px; }
.pie-principal a {
  color: #fff;
  font-weight: 300;
  transition: font-weight .2s ease;
}
.pie-principal a:hover { font-weight: 700; }
.pie-col-contacto { text-align: center; }
.pie-tel a {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 15px;
  transition: transform .2s;
}
.pie-tel a:hover { transform: scale(1.03); }
.pie-social { display: flex; gap: 15px; justify-content: center; margin-top: 18px; }
.pie-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  transition: all .2s ease;
}
.pie-social a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.30);
}
.pie-social img { width: 30px; height: 30px; object-fit: contain; }
.pie-barra-inferior {
  background: #7c050a;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
}
.pie-barra-inferior a { color: #fff; font-weight: 300; transition: font-weight .2s; }
.pie-barra-inferior a:hover { font-weight: 700; }
.pie-barra-final { height: 8px; background: #7c050a; }

/* ============================================================
   ESTADO VACÍO
   ============================================================ */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--fondo);
  border-radius: 1rem;
  border: 1px solid var(--borde);
  color: var(--tinta-suave);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .cabecera-fila { grid-template-columns: 1fr auto; }
  .cabecera-fila .logo img { height: 64px; }
  .cabecera-fila .mascotas img { width: 78px; }
  .cabecera-fila .telefono { grid-column: 1 / -1; grid-row: 2; }

  .nav-pernau-toggle { display: flex; }
  .nav-pernau-container { justify-content: space-between; }
  .nav-pernau-logo { opacity: 1; width: auto; }
  .nav-pernau-logo img { height: 46px; }
  .nav-pernau-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--borde);
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .nav-pernau-menu.open { display: flex; }

  .pie-rejilla { grid-template-columns: 1fr; text-align: center; }
  .pie-principal h3 { border-bottom: none; }
  .pie-social { justify-content: center; }
}

@media (max-width: 768px) {
  .blog-wrapper { padding: 2rem 0 4rem; }
  .post-title { font-size: 1.5rem; }
  .post-body { padding: 1.5rem; }
  .post-cover img { height: 220px; }
  .post-single .single-title { font-size: 1.8rem; }
}