/* ============================================
   Blog Posts - Electricista en Córdoba
   Diseño HTML5 / CSS3 — v1.0
   ============================================ */

:root {
  --color-primary:   #f97316;
  --color-dark:      #1a1a2e;
  --color-text:      #374151;
  --color-muted:     #6b7280;
  --color-light:     #f9fafb;
  --color-border:    #e5e7eb;
  --color-white:     #ffffff;
  --font-sans:       'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:          12px;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:       0 10px 40px rgba(0,0,0,.14);
  --max-width:       780px;
  --transition:      .25s ease;
}

/* ── Reset blog area ── */
.ec-post-wrapper * { box-sizing: border-box; }
.ec-post-wrapper { font-family: var(--font-sans); color: var(--color-text); line-height: 1.75; }

/* ── HERO imagen destacada ── */
.ec-hero {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}
.ec-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.ec-hero:hover img { transform: scale(1.02); }

.ec-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem;
}

.ec-hero-category {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: .85rem;
  width: fit-content;
}
.ec-hero-category svg { width: 13px; height: 13px; }

.ec-hero-title {
  color: #fff !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── META bar ── */
.ec-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  font-size: .82rem;
  color: var(--color-muted);
}
.ec-meta-item { display: flex; align-items: center; gap: .35rem; }
.ec-meta svg  { width: 15px; height: 15px; flex-shrink: 0; }

/* ── LAYOUT principal ── */
.ec-layout {
  max-width: calc(var(--max-width) + 3rem);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── CONTENIDO del post ── */
.ec-content {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
}

/* Tipografía del contenido */
.ec-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 2.2rem 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ec-content h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 1.4rem;
  background: var(--color-primary);
  border-radius: 3px;
  flex-shrink: 0;
}
.ec-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 1.8rem 0 .7rem;
}
.ec-content p {
  font-size: 1.025rem;
  margin: 0 0 1.2rem;
  color: var(--color-text);
}
.ec-content ul, .ec-content ol {
  margin: .5rem 0 1.4rem 0;
  padding-left: 1.5rem;
}
.ec-content li {
  margin-bottom: .6rem;
  font-size: 1rem;
  line-height: 1.6;
}
.ec-content ul li::marker { color: var(--color-primary); font-size: 1.1em; }
.ec-content strong { color: var(--color-dark); font-weight: 700; }

/* Links internos dentro del contenido */
.ec-content a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition);
}
.ec-content a:hover { border-bottom-color: var(--color-primary); }

/* ── TARJETAS de info (listas con strong como primera línea) ── */
.ec-content ul li strong:first-child {
  display: block;
  color: var(--color-primary);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}

/* ── Intro párrafo destacado ── */
.ec-content > p:first-of-type {
  font-size: 1.12rem;
  color: var(--color-dark);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 80%);
  border-left: 4px solid var(--color-primary);
  padding: 1.1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

/* ── FAQ section styling ── */
.ec-content h2:has(+ h3) { border-color: var(--color-dark); }

/* ── CTA WhatsApp ── */
.ec-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius);
  padding: 2.2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.ec-cta-text h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 .35rem;
}
.ec-cta-text p {
  color: #9ca3af;
  font-size: .92rem;
  margin: 0;
}
.ec-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(37,211,102,.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ec-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  color: #fff;
  border: none;
}
.ec-cta-btn svg { width: 22px; height: 22px; }

/* ── Breadcrumb ── */
.ec-breadcrumb {
  font-size: .82rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.ec-breadcrumb a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.ec-breadcrumb a:hover { text-decoration: underline; }
.ec-breadcrumb-sep { color: var(--color-border); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ec-hero img          { height: 280px; }
  .ec-hero-overlay      { padding: 1.25rem 1.25rem; }
  .ec-content           { padding: 1.5rem 1.25rem; }
  .ec-meta              { padding: .8rem 1.25rem; gap: .7rem; }
  .ec-layout            { padding: 1.5rem 1rem 3rem; }
  .ec-cta               { padding: 1.5rem 1.25rem; flex-direction: column; text-align: center; }
  .ec-cta-btn           { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .ec-hero img          { height: 220px; }
  .ec-content h2        { font-size: 1.2rem; }
}
