/* FurgoBur · Blog — estilos compartidos */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #164CF0;
  --blue-dark: #0F3DD6;
  --blue-light: #4B7AFF;
  --dark: #0F0F0F;
  --dark2: #1A1A1A;
  --dark3: #242424;
  --white: #FFFFFF;
  --green-wa: #25D366;
  --green-wa-dark: #1da851;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); }

/* ── NAV ── */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.nav-logo img { height: 32px; width: auto; }
.nav-ctas { display: flex; gap: 10px; align-items: center; }
.nav-link {
  color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; padding: 10px 14px; border-radius: 50px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.btn-wa-nav, .btn-tel-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-wa-nav { background: var(--green-wa); color: #fff; }
.btn-wa-nav:hover { background: var(--green-wa-dark); transform: translateY(-1px); }
.btn-tel-nav { border: 2px solid var(--blue); color: var(--blue-light); }
.btn-tel-nav:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

/* ── CABECERA ── */
.page-hero {
  padding: 140px 24px 56px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(22,76,240,0.22) 0%, transparent 60%), var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-tag {
  display: inline-block;
  background: rgba(22,76,240,0.12);
  border: 1px solid rgba(22,76,240,0.3);
  color: var(--blue-light);
  padding: 5px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px; text-decoration: none;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  font-weight: 900; line-height: 1.15; max-width: 860px; margin: 0 auto 14px;
}
.page-hero h1 span { color: var(--blue-light); }
.hero-slogan {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: rgba(255,255,255,0.85); margin-bottom: 14px;
}
.page-hero .intro {
  font-size: 1.02rem; color: rgba(255,255,255,0.62); line-height: 1.7;
  max-width: 660px; margin: 0 auto;
}

/* ── MIGAS DE PAN ── */
.breadcrumbs { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-light); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; }

/* ── ÍNDICE DEL BLOG ── */
.blog-main { padding: 60px 24px 100px; }
.container { max-width: 1100px; margin: 0 auto; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s;
}
.post-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); }
.post-card h2 { font-size: 1.15rem; font-weight: 800; line-height: 1.35; }
.post-card p { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.post-meta { margin-top: auto; font-size: 0.8rem; color: rgba(255,255,255,0.4); padding-top: 6px; }
.post-card .leer { color: var(--blue-light); font-weight: 700; font-size: 0.88rem; }

/* ── ARTÍCULO ── */
.article-hero { padding: 130px 24px 0; }
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-head h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.7rem);
  font-weight: 900; line-height: 1.18; margin-bottom: 16px;
}
.article-head .lead { font-size: 1.1rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 18px; }
.article-meta { font-size: 0.85rem; color: rgba(255,255,255,0.45); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.article-cover { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.article-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-cover figcaption { font-size: 0.8rem; color: rgba(255,255,255,0.4); padding: 10px 14px; background: var(--dark2); }

.toc {
  margin: 36px 0 8px; padding: 22px 26px; border-radius: 16px;
  background: var(--dark3); border: 1px solid rgba(22,76,240,0.25);
}
.toc p { font-weight: 800; margin-bottom: 10px; font-size: 0.95rem; }
.toc ol { padding-left: 20px; }
.toc li { margin: 6px 0; font-size: 0.93rem; }
.toc a { color: rgba(255,255,255,0.75); text-decoration: none; }
.toc a:hover { color: var(--blue-light); }

.article-body { padding: 10px 0 20px; }
.article-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.25;
  margin: 46px 0 16px;
}
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: #fff; }
.article-body p, .article-body li { font-size: 1.03rem; line-height: 1.8; color: rgba(255,255,255,0.78); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #fff; }
.article-body a { color: var(--blue-light); font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; margin: 8px 0 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
.article-body th { background: rgba(22,76,240,0.14); color: #fff; font-weight: 700; white-space: nowrap; }
.article-body td { color: rgba(255,255,255,0.75); }
.article-body tr:last-child td { border-bottom: none; }

.tip {
  margin: 22px 0; padding: 18px 20px; border-radius: 14px;
  background: rgba(22,76,240,0.1); border-left: 4px solid var(--blue-light);
}
.tip p { margin: 0; }
.tip strong { color: var(--blue-light); }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(22,76,240,0.18); color: var(--blue-light);
  font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* CTA */
.cta-box {
  margin: 38px 0; padding: 30px 30px; border-radius: 22px; text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  box-shadow: 0 12px 40px rgba(22,76,240,0.3);
}
.cta-box h2, .cta-box .cta-title { font-size: 1.4rem; font-weight: 900; margin: 0 0 8px; color: #fff; }
.cta-box p { color: rgba(255,255,255,0.9); margin: 0 auto 20px; max-width: 520px; font-size: 1rem; line-height: 1.6; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-wa, .btn-cta-tel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 800; font-size: 1rem; text-decoration: none !important;
  transition: transform 0.2s, background 0.2s;
}
.btn-cta-wa { background: #fff; color: var(--green-wa-dark) !important; }
.btn-cta-tel { border: 2px solid rgba(255,255,255,0.75); color: #fff !important; }
.btn-cta-wa:hover, .btn-cta-tel:hover { transform: translateY(-2px); }

/* FAQ */
.faq-item { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; margin-bottom: 10px; background: var(--dark3); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '▼'; font-size: 0.75rem; color: rgba(255,255,255,0.5); transition: transform 0.3s; }
.faq-item[open] summary { color: var(--blue-light); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 22px 18px; }
.faq-item .faq-a p { margin: 0; font-size: 0.97rem; }

/* Relacionados */
.related { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 50px; padding-top: 36px; }
.related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.related .posts-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.related .post-card h3 { font-size: 1rem; font-weight: 800; line-height: 1.35; }

.article-author {
  margin-top: 30px; padding: 18px 20px; border-radius: 14px;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6;
}
.article-author strong { color: #fff; }

/* ── FOOTER ── */
footer { background: #000; padding: 48px 24px; text-align: center; }
footer img { height: 36px; width: auto; margin: 0 auto 20px; }
.footer-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-light); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* ── BOTONES FLOTANTES ── */
.float-btns { position: fixed; bottom: 28px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-wa, .float-tel {
  display: flex; align-items: center; gap: 10px; color: #fff;
  padding: 14px 22px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s;
}
.float-wa { background: var(--green-wa); box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
.float-tel { background: var(--blue); box-shadow: 0 6px 24px rgba(22,76,240,0.4); }
.float-wa:hover, .float-tel:hover { transform: scale(1.05); }

/* ── MÓVIL ── */
@media (max-width: 760px) {
  nav.topnav { padding: 12px 16px; }
  .nav-logo img { height: 26px; }
  .nav-link.hide-m, .btn-wa-nav span, .btn-tel-nav span { display: none; }
  .btn-wa-nav, .btn-tel-nav { padding: 10px 13px; }
  .page-hero { padding: 115px 18px 42px; }
  .article-hero { padding: 105px 18px 0; }
  .blog-main { padding: 40px 16px 90px; }
  .article-main { padding: 0 18px; }
  .cta-box { padding: 26px 20px; }
  .toc { padding: 18px 18px; }
  .float-btns { bottom: 20px; right: 16px; }
  .float-wa span, .float-tel span { display: none; }
}

/* ── barra inferior móvil ── */
@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .float-btns {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 10px; align-items: stretch;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(12,12,14,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08); box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
  }
  .float-btns a { flex: 1; justify-content: center; padding: 14px 10px; border-radius: 14px; font-size: 1rem; min-height: 52px; box-shadow: none; }
  .float-btns a span { display: inline !important; }
  .float-btns a:hover { transform: none; }
  .btn-wa-nav, .btn-tel-nav { display: none !important; }
}

@media (max-width: 760px) {
  nav.topnav { padding: 10px 14px; }
  .nav-link { padding: 10px 12px; }
  .pp-btn { min-height: 54px; }
  .pp-row { padding: 14px 16px; }
  .pp-row .p { font-size: 1.4rem; }
  .pp-spec { padding: 4px 16px; }
  .pp-sec { margin-top: 44px; }
}
