/* ════════════════════════════
   BLOG.CSS
════════════════════════════ */

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9000;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.wa-float::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── btn WA sidebar ── */
.btn-wa {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 50px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  cursor: pointer; border: none;
  background: #25d366; color: white; text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1db955; transform: translateY(-2px); }

/* ── Page hero ── */
.post-hero {
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  min-height: 340px;
  display: flex; align-items: flex-end;
}
.post-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.post-hero-bg svg { width: 100%; height: 100%; }
.post-hero-inner {
  position: relative; z-index: 2;
  width: 100%; padding: 2.5rem 0 3rem;
}
.post-breadcrumb {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .78rem; font-weight: 700; font-family: var(--font-head);
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 1rem;
}
.post-breadcrumb a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.post-breadcrumb a:hover { color: var(--accent); }
.post-meta-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.post-cat-badge {
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(0,201,255,.15);
  border: 1px solid rgba(0,201,255,.3); padding: .22rem .75rem; border-radius: 50px;
}
.post-date, .post-read { font-size: .83rem; color: rgba(255,255,255,.5); font-weight: 600; }
.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800; color: white; line-height: 1.1;
  margin-bottom: .9rem; max-width: 760px;
}
.post-intro {
  font-size: 1.05rem; color: rgba(255,255,255,.68);
  max-width: 660px; line-height: 1.7; padding-bottom: 1rem;
}

/* ── Article layout ── */
.post-article { background: var(--light); padding: 3.5rem 0 6rem; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2.5rem; align-items: start;
}
.post-content {
  background: white; border-radius: var(--radius);
  padding: 2.5rem 2.75rem; border: 1px solid #e2e8f5; min-width: 0;
}

/* ── Typography ── */
.post-lead {
  font-size: 1.1rem; color: #2a3a5c; line-height: 1.82; font-weight: 500;
  margin-bottom: 2rem; padding-bottom: 1.75rem;
  border-bottom: 2px solid #eef2fb;
}
.post-content h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  color: var(--dark); margin: 2rem 0 .7rem;
}
.post-content p {
  font-size: .98rem; color: #3a4a6a; line-height: 1.82; margin-bottom: 1.1rem;
}
.post-content strong { color: #fff; font-weight: 700; }
.post-content ul {
  padding-left: 0; list-style: none; margin: 1rem 0 1.5rem;
}
.post-content ul li {
  padding: .5rem 0 .5rem 1.5rem; position: relative;
  font-size: .97rem; color: #3a4a6a; border-bottom: 1px solid #f0f4fc; line-height: 1.65;
}
.post-content ul li:last-child { border-bottom: none; }
.post-content ul li::before {
  content: '';
  position: absolute; left: 0; top: .95rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ── Highlight box ── */
.post-highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(0,98,255,.06), rgba(0,201,255,.04));
  border: 1px solid rgba(0,98,255,.14);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 1.75rem 0;
}
.post-highlight .hi-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.3; }
.post-highlight strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.post-highlight p { font-size: .91rem; color: var(--gray); margin: 0; line-height: 1.6; }

/* ── CTA box ── */
.post-cta-box {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  border-radius: var(--radius); padding: 2rem;
  text-align: center; margin-top: 2.25rem;
}
.post-cta-box h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: white; margin-bottom: .4rem; }
.post-cta-box p { color: rgba(255,255,255,.62); font-size: .95rem; margin-bottom: 1.1rem; }
.post-cta-box .btn { margin: 0 auto; display: inline-flex; }

/* ── Sidebar ── */
.post-sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 88px; }
.sidebar-card { background: white; border-radius: var(--radius); padding: 1.4rem; border: 1px solid #e2e8f5; }
.sidebar-card h4 {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--dark); margin-bottom: .9rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--light);
}
.sidebar-contact { background: linear-gradient(135deg, var(--dark), var(--dark2)); border-color: transparent; }
.sidebar-contact h4 { color: white; border-color: rgba(255,255,255,.1); }
.sidebar-contact > p { color: rgba(255,255,255,.58); font-size: .86rem; margin-bottom: .2rem; }

.sidebar-posts { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.sidebar-posts a { display: flex; gap: .7rem; align-items: flex-start; text-decoration: none; transition: var(--transition); }
.sidebar-posts a:hover { transform: translateX(3px); }
.sidebar-posts a:hover span { color: var(--primary); }
.sp-thumb { width: 50px; height: 50px; border-radius: 8px; flex-shrink: 0; }
.sp-thumb-1 { background: linear-gradient(135deg,#0062ff,#00c9ff); }
.sp-thumb-2 { background: linear-gradient(135deg,#0045c4,#0062ff); }
.sp-thumb-3 { background: linear-gradient(135deg,#003da0,#00c9ff); }
.sidebar-posts span { font-size: .83rem; color: var(--text); line-height: 1.4; font-weight: 600; transition: color var(--transition); }

.sidebar-services { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.sidebar-services a {
  display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem;
  border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--text);
  transition: var(--transition); text-decoration: none;
}
.sidebar-services a:hover { background: rgba(0,98,255,.07); color: var(--primary); transform: translateX(3px); }

/* ── Post nav ── */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid #eef2fb;
}
.post-nav a {
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem;
  border-radius: 10px; border: 1px solid #e2e8f5; text-decoration: none;
  transition: var(--transition); color: var(--text);
}
.post-nav a:hover { border-color: var(--primary); background: rgba(0,98,255,.04); transform: translateY(-2px); }
.post-nav .pn-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.post-nav .pn-title { font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--dark); line-height: 1.3; }
.post-nav a:last-child { text-align: right; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-content { padding: 1.6rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
}
@media (max-width: 640px) {
  .post-content { padding: 1.2rem; }
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}
