/* ===========================================================
   La Salud del Marketing — hoja de estilos
   Marca: azul marino + turquesa (logo Método EBA).
   Estructura de blog profesional: destacado + rejilla + lateral.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --navy:      #143a5c;   /* azul marino del logo */
  --navy-dk:   #0e2c47;
  --teal:      #159aa4;   /* turquesa del logo */
  --teal-dk:   #0f7d86;
  --teal-tint: #e7f4f5;   /* fondo suave turquesa */

  --bg:        #ffffff;
  --bg-soft:   #f4f8f9;   /* secciones alternas */
  --ink:       #1c2a34;   /* texto principal */
  --ink-soft:  #5f717c;   /* texto secundario */
  --line:      #e3eaed;
  --white:     #ffffff;

  --sans:  "Poppins", system-ui, sans-serif;
  --serif: "Lora", Georgia, serif;
  /* alias de compatibilidad */
  --display: var(--sans);
  --primary: var(--navy);
  --primary-dk: var(--navy-dk);
  --accent: var(--teal);
  --paper: var(--bg);
  --paper-2: var(--bg-soft);
  --card: var(--white);
  --lilac: var(--teal);
  --lilac-soft: var(--teal-tint);
  --pink: var(--teal);

  --wrap: 1200px;
  --radius: 16px;
  --shadow: 0 18px 44px -26px rgba(20,58,92,.28);
  --shadow-sm: 0 6px 18px -12px rgba(20,58,92,.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-ico { width: 44px; height: 44px; flex: none; }
.brand .mark { display: none; }
.brand .wm { line-height: 1; }
.brand .wm b {
  font-family: var(--sans); font-weight: 700; font-size: 21px; letter-spacing: -.02em;
  display: block; color: var(--navy);
}
.brand .wm b span { color: var(--teal); }
.brand .wm small { font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink-soft); display: block; margin-top: 3px; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav .cta {
  background: var(--teal); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.nav .cta:hover { background: var(--teal-dk); color: #fff; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ---------- destacado (hero de blog) ---------- */
.featured { padding: 46px 0 20px; }
.featured .fwrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
  background: var(--teal-tint); border-radius: 24px; padding: 46px; position: relative; overflow: hidden;
}
.featured .ftext .tag,
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-dk); background: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.featured h1 {
  font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1; letter-spacing: -.02em; color: var(--navy);
}
.featured .excerpt { margin-top: 16px; font-family: var(--serif); font-size: 1.16rem; color: #33454f; max-width: 46ch; }
.featured .meta { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.featured .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }
.featured .fbtn { margin-top: 26px; }
.featured .fimg { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.featured .fimg .art { width: 100%; height: 100%; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dk); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dk); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-pink { background: var(--teal); color: #fff; }

/* ---------- barra de categorías ---------- */
.topics { padding: 30px 0 6px; }
.topics .lbl { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink); transition: all .2s;
}
.chip:hover, .chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- secciones ---------- */
.section { padding: 40px 0 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; color: var(--navy); }
.section-head h2 .u { border-bottom: 3px solid var(--teal); padding-bottom: 2px; }
.section-head a { color: var(--teal); font-weight: 600; font-size: 15px; }
.section-head a:hover { color: var(--teal-dk); }

/* ---------- layout principal con lateral ---------- */
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

/* rejilla de artículos */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--teal-tint); }
.card .thumb span { position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  background: #fff; color: var(--teal-dk); padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card .thumb .art { width: 100%; height: 100%; transition: transform .5s; }
.card:hover .thumb .art { transform: scale(1.05); }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 9px; }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.card p { margin-top: 11px; font-family: var(--serif); color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.card .more { margin-top: 16px; font-weight: 600; color: var(--teal); font-size: 14.5px; display: inline-flex; gap: 6px; }
.card:hover .more { gap: 11px; }
.more { transition: gap .2s; }

/* tarjeta destacada dentro de rejillas de sección */
.grid .card.feature { grid-column: span 2; flex-direction: row; }
.grid .card.feature .thumb { width: 50%; aspect-ratio: auto; }
.grid .card.feature .body { justify-content: center; width: 50%; }
.grid .card.feature h3 { font-size: 1.7rem; }
.grid .card.feature .fcontent { display: contents; }
.grid .card.feature .fdate { font-size: 13px; color: var(--ink-soft); margin-bottom: 9px; }
.grid .card.feature .fart { display: none; }

/* ---------- columna lateral ---------- */
.aside { display: grid; gap: 26px; position: sticky; top: 100px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.widget h4 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; color: var(--navy); }
.widget.dark h4 { color: #fff; }
.widget p { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); }
.widget.dark p { color: #cfe0e6; }
.widget .plist { display: grid; gap: 16px; }
.widget .plist a { display: flex; gap: 12px; align-items: flex-start; }
.widget .plist .n { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--teal); line-height: 1; }
.widget .plist .t { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.widget .plist a:hover .t { color: var(--teal); }
.widget .taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.widget .taglist a { font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; }
.widget .taglist a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.widget.dark input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 0; margin: 14px 0 10px;
  font-family: var(--sans); font-size: 14px; background: #1f4a70; color: #fff; }
.widget.dark input::placeholder { color: #9db6c4; }
.widget.dark .btn { width: 100%; justify-content: center; background: var(--teal); color: #fff; }

/* ---------- banda newsletter ---------- */
.band { background: var(--navy); color: #fff; border-radius: 22px; padding: 56px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(21,154,164,.5), transparent 62%); }
.band h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.7rem,3.4vw,2.5rem); max-width: 18ch; position: relative; }
.band p { margin-top: 14px; color: #cfe0e6; max-width: 46ch; position: relative; font-family: var(--serif); }
.band form { margin-top: 26px; display: flex; gap: 12px; max-width: 500px; position: relative; flex-wrap: wrap; }
.band input { flex: 1; min-width: 230px; padding: 14px 18px; border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 15px; background: #1f4a70; color: #fff; }
.band input::placeholder { color: #9db6c4; }
.band .btn-teal, .band .btn-primary { background: var(--teal); color: #fff; }
.band .btn-teal:hover, .band .btn-primary:hover { background: var(--teal-dk); }

/* ---------- pie ---------- */
footer.site { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 70px; padding: 56px 0 34px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer.site h4 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
footer.site h4 span { color: var(--teal); }
footer.site p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; font-family: var(--serif); }
footer.site .fh { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dk); font-weight: 600; margin-bottom: 14px; }
footer.site ul { list-style: none; display: grid; gap: 10px; }
footer.site ul a { color: var(--ink-soft); font-size: 15px; }
footer.site ul a:hover { color: var(--teal); }
footer.site .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- hero simple (páginas de sección) ---------- */
.hero { padding: 56px 0 20px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dk); margin-bottom: 12px; }
.hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { margin-top: 18px; font-family: var(--serif); font-size: 1.16rem; color: var(--ink-soft); max-width: 56ch; }
.hero .actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===========================================================
   Artículo
   =========================================================== */
.article-hero { padding: 48px 0 10px; max-width: 760px; margin: 0 auto; }
.article-hero .kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dk); }
.article-hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -.02em; color: var(--navy); margin: 14px 0 18px; }
.article-hero .byline { display: flex; gap: 12px; align-items: center; color: var(--ink-soft); font-size: 15px; }
.article-hero .byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }
.article-cover { aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; margin: 30px auto 0; max-width: 960px; background: var(--teal-tint); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* imágenes dentro del texto del artículo */
.prose figure.article-img { margin: 1.7em 0; }
.prose figure.article-img img { width: 100%; border-radius: 12px; display: block; }
.prose figure.article-img figcaption { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); text-align: center; font-style: italic; }
/* miniaturas de tarjeta con imagen real */
.card .thumb img.art { width: 100%; height: 100%; object-fit: cover; }

/* espacio reservado para anuncios (Google AdSense) */
.ad-slot { max-width: 728px; margin: 38px auto; min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 12px;
  color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ad-slot::before { content: "Publicidad"; }
.ad-slot .adsbygoogle { display: block; width: 100%; }
.prose .ad-slot { max-width: 100%; }

.prose { max-width: 720px; margin: 40px auto 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.75; color: #29373f; }
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-family: var(--sans); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; color: var(--navy); margin: 1.7em 0 .5em; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; color: var(--navy); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.35em 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { border-left: 4px solid var(--teal); background: var(--teal-tint); padding: 18px 24px; border-radius: 0 12px 12px 0; margin: 1.5em 0; font-style: italic; color: var(--navy-dk); }
.prose a { color: var(--teal-dk); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose .callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 22px 24px; margin: 1.6em 0; font-size: 1.04rem; }
.prose .callout b { color: var(--teal-dk); }
.article-footer { max-width: 720px; margin: 46px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .featured .fwrap { grid-template-columns: 1fr; padding: 34px; }
  .featured .fimg { order: -1; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .grid { grid-template-columns: 1fr; }
  .grid .card.feature { flex-direction: column; }
  .grid .card.feature .thumb, .grid .card.feature .body { width: 100%; }
  .aside { grid-template-columns: 1fr; }
  .band { padding: 36px 26px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .brand .wm small { display: none; }
}
