/* ==========================================================================
   guias-shared.css
   Estilos compartidos por todas las guías de barrio de UrbantecHome
   Creado: 2026-05-31
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  background: var(--uth-cream, #faf6ec);
  margin: 0;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
main { display: block; }

/* ── Header común (idéntico al resto del sitio · uth-premium.css gana por !important) ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 0.85rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: nowrap; gap: 1rem;
  /* Altura mínima fija para que SIEMPRE tenga el mismo tamaño en todas las páginas
     (50px = misma altura que .uth-topbar header de index.html principal) */
  min-height: 50px;
  box-sizing: border-box;
  /* Quitar border-bottom para que la línea sea fina como en el index de la home.
     El border-bottom de uth-premium.css se anula con este override. */
  border-bottom: none !important;
}
/* En móvil ya hay media queries más abajo que permiten wrap si hace falta */
header .logo {
  cursor: pointer; user-select: none;
  display: inline-flex; align-items: baseline;
}
header .header-right { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
header nav { display: flex; gap: 1.8rem; }
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a2a2a;
  padding: 0.4rem 0;
  transition: color 0.25s;
}
@media (max-width: 820px) {
  header { padding: 0.7rem 1.25rem; gap: 0.75rem; }
  header nav { gap: 1.2rem; flex-wrap: wrap; }
  header nav a { font-size: 0.7rem; letter-spacing: 0.12em; }
}
@media (max-width: 640px) {
  header { flex-direction: column; align-items: flex-start; }
  header .header-right { width: 100%; justify-content: space-between; }
  header nav { font-size: 0.65rem; gap: 0.9rem; }
}

/* Switcher de idioma — mismo patrón que el resto del sitio */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lang-switch button {
  background: transparent;
  border: 1px solid rgba(111,29,27,0.35);
  color: #6f1d1b;
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lang-switch button:hover { background: rgba(111,29,27,0.06); }
.lang-switch button.lang-active {
  background: #6f1d1b;
  color: #faf6ec;
  border-color: #6f1d1b;
}

/* ── Article hero ── */
.article-hero {
  padding: 7rem 2rem 2.5rem;
  background: linear-gradient(135deg, #faf3e4 0%, #f0e0bc 100%);
  text-align: center;
}
.article-hero__breadcrumb {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8b6a2a; margin-bottom: 1.2rem;
}
.article-hero__breadcrumb a { color: #8b6a2a; }
.article-hero__breadcrumb a:hover { color: #6f1d1b; }
.article-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600; color: #3d2b14;
  max-width: 900px; margin: 0 auto 1rem;
  letter-spacing: -0.01em; line-height: 1.15;
}
.article-hero__lead {
  max-width: 720px; margin: 0 auto;
  font-size: 1.15rem; color: #5a4a30;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; line-height: 1.55;
}
.article-hero__meta {
  margin-top: 1.4rem;
  font-size: 0.78rem; color: #8b6a2a;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── Article body ── */
.article-body {
  max-width: 760px; margin: 0 auto;
  padding: 3rem 2rem;
  font-size: 1.04rem; color: #2d2417;
}
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem; font-weight: 600;
  color: #6f1d1b;
  margin: 3rem 0 1rem;
  letter-spacing: -0.005em; line-height: 1.25;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  color: #3d2b14;
  margin: 2rem 0 0.7rem;
}
.article-body p { margin: 0 0 1.2rem; }
.article-body ul { padding-left: 1.4rem; margin: 0 0 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: #6f1d1b; }
.article-body .pull-quote {
  border-left: 3px solid #6f1d1b;
  padding: 0.6rem 1.2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 1.15rem;
  color: #4d3514;
  margin: 1.5rem 0;
  background: rgba(139,106,42,0.05);
}

/* ── Data cards (precios, indicadores) ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.data-card {
  background: #fff;
  border: 1px solid #e6d4a4;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  text-align: center;
}
.data-card__label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8b6a2a; margin-bottom: 0.4rem;
}
.data-card__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 700; color: #3d2b14;
}
.data-card__sub {
  font-size: 0.78rem; color: #7a6a4e; margin-top: 0.2rem;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid #e6d4a4;
  padding: 1.2rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #6f1d1b;
}
.faq-item p { margin: 0; color: #4a3a26; }

/* ── CTA destacada ── */
.article-cta {
  background: #3d2b14;
  color: #faf6ec;
  padding: 3.5rem 2rem;
  text-align: center;
}
.article-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #faf6ec;
  margin: 0 0 0.8rem;
}
.article-cta p {
  max-width: 560px; margin: 0 auto 1.6rem;
  color: #e6d4a4; line-height: 1.6;
}
.btn-primary {
  display: inline-block; padding: 0.9rem 2.2rem;
  background: #6f1d1b; color: #fff; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.85rem;
  transition: filter 0.15s;
}
.btn-primary:hover { filter: brightness(1.1); }

/* ── Cross-links a otras guías ── */
.related-guides {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.related-guides h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem; color: #3d2b14;
  text-align: center; margin: 0 0 1.8rem;
}
.related-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  background: #fff;
  border: 1px solid #e6d4a4;
  border-radius: 8px;
  padding: 1.4rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(111,29,27,0.1);
}
.related-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 600; color: #6f1d1b;
  margin-bottom: 0.3rem;
}
.related-card__tagline {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8b6a2a;
}

/* ── Index de guías (grid de barrios) ── */
.guides-hero {
  padding: 8rem 2rem 3rem;
  background: linear-gradient(135deg, #faf3e4 0%, #f5ead2 100%);
  text-align: center;
}
.guides-hero__breadcrumb {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #8b6a2a;
  margin-bottom: 1rem;
}
.guides-hero__breadcrumb a { color: #8b6a2a; }
.guides-hero__breadcrumb a:hover { color: #6f1d1b; }
.guides-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600; color: #3d2b14;
  margin: 0 0 0.75rem; letter-spacing: -0.01em;
}
.guides-hero p {
  max-width: 640px; margin: 0 auto;
  font-size: 1.05rem; color: #5a4a30; line-height: 1.65;
}
.guides-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  background: #fff;
  border: 1px solid #e6d4a4;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(111,29,27,0.12);
}
.guide-card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c2ab78 0%, #8b6a2a 100%);
  position: relative; overflow: hidden;
}
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.guide-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.7rem;
  color: #fff; letter-spacing: -0.01em;
}
.guide-card__body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.guide-card__tagline {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8b6a2a;
  margin-bottom: 0.5rem;
}
.guide-card__desc {
  font-size: 0.95rem; color: #4a3a26;
  line-height: 1.55; margin: 0 0 1.1rem; flex: 1;
}
.guide-card__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  color: #6f1d1b; align-self: flex-start;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s, gap 0.2s;
}
.guide-card__cta:hover { border-bottom-color: #6f1d1b; gap: 0.7rem; }

/* ── CTA banda inferior ── */
.guides-cta-band {
  background: #3d2b14;
  color: #faf6ec;
  padding: 3.5rem 2rem;
  text-align: center;
}
.guides-cta-band h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 600; margin: 0 0 0.8rem;
}
.guides-cta-band p {
  max-width: 560px; margin: 0 auto 1.6rem;
  color: #e6d4a4;
  font-size: 1rem; line-height: 1.6;
}
.guides-cta-band .btn-primary { background: #6f1d1b; }

/* ── Footer mínimo ── */
.guias-footer {
  background: #1a1612;
  color: #a8957a;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
}
.guias-footer a { color: #c2ab78; margin: 0 0.6rem; }

/* ── Responsive ── */
@media (max-width: 720px) {
  header { padding: 0.7rem 1rem; }
  header nav { gap: 0.7rem; }
  header nav a { font-size: 0.65rem; }
  .article-hero { padding: 6rem 1rem 2rem; }
  .article-body { padding: 2rem 1rem; }
  .guides-hero { padding: 7rem 1rem 2rem; }
  .guides-grid { padding: 2rem 1rem 4rem; }
}
