/* Info Salud - Shared Styles */
:root {
  --azul: #1E4E8E;
  --verde: #3CA08C;
  --celeste: #78A8C8;
  --crema: #F8F7F2;
  --grafito: #1F2937;
  --amarillo: #FFE066;
  --verde-claro: #A8D5C8;
  --gris: #6B7280;
  --blanco: #FFFFFF;
  --sombra: 0 4px 30px rgba(30, 78, 142, 0.08);
  --sombra-card: 0 2px 20px rgba(30, 78, 142, 0.06);
  --radio: 16px;
  --radio-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--grafito);
  background: var(--crema);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: var(--azul);
  letter-spacing: -0.02em;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
.caveat {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--verde);
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  position: sticky; top: 0;
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 78, 142, 0.08);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo img { height: 44px; width: auto; }
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--azul);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--verde); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--grafito); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--azul); text-decoration: none; }
.nav-links a.active { color: var(--verde); }
.btn-wa-nav {
  background: var(--verde); color: white !important;
  padding: 10px 20px; border-radius: 100px;
  font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-wa-nav:hover { background: #2d8a77; transform: translateY(-1px); text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--azul); margin: 5px 0; transition: 0.3s; }

/* BUTTONS */
.btn-primary {
  background: var(--verde); color: white;
  padding: 16px 30px; border-radius: 100px;
  font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(60, 160, 140, 0.3);
  font-family: 'Poppins', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(60, 160, 140, 0.4); text-decoration: none; color: white; }
.btn-secondary {
  background: transparent; color: var(--azul);
  padding: 16px 30px; border-radius: 100px;
  font-weight: 500; font-size: 15px;
  border: 2px solid var(--azul); cursor: pointer;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif;
}
.btn-secondary:hover { background: var(--azul); color: white; text-decoration: none; }

/* CONTENT */
.page-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #2a5ea3 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  color: white;
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}
.page-hero .caveat { color: var(--amarillo); font-size: 32px; display: block; margin-bottom: 8px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto; }

.content-section {
  padding: 60px 0;
}
.content-section.alt {
  background: var(--blanco);
}

article.post {
  max-width: 780px;
  margin: 0 auto;
}
article.post h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 40px 0 16px; }
article.post h3 { font-size: 22px; margin: 28px 0 12px; color: var(--verde); }
article.post p { margin-bottom: 16px; color: var(--grafito); font-size: 17px; line-height: 1.8; }
article.post ul, article.post ol { margin: 14px 0 20px 24px; }
article.post li { margin-bottom: 8px; line-height: 1.7; }
article.post strong { color: var(--azul); font-weight: 600; }
article.post .lead { font-size: 19px; color: var(--gris); margin-bottom: 24px; }

.callout {
  background: var(--crema);
  border-left: 4px solid var(--verde);
  padding: 20px 24px;
  border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
  margin: 24px 0;
}
.callout strong { color: var(--azul); }
.callout.warning { border-left-color: #E8871E; background: #FFF7E8; }
.callout.info { border-left-color: var(--celeste); background: #F0F7FB; }

.cta-inline {
  background: var(--azul);
  color: white;
  padding: 32px 28px;
  border-radius: var(--radio);
  text-align: center;
  margin: 40px 0;
}
.cta-inline h3, article.post .cta-inline h3 { color: white !important; margin-bottom: 10px; font-size: 22px; }
.cta-inline p, article.post .cta-inline p { color: rgba(255,255,255,0.95) !important; margin-bottom: 18px; font-size: 17px; }
.cta-inline .btn-primary {
  background: var(--verde);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: var(--sombra-card);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(60, 160, 140, 0.14);
  color: var(--verde);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 22px; font-weight: 700;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gris); margin-bottom: 14px; flex: 1; }
.card a.card-link {
  color: var(--verde);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toc {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 24px 28px;
  box-shadow: var(--sombra-card);
  margin-bottom: 40px;
}
.toc h4 { font-family: 'Poppins',sans-serif; color: var(--azul); margin-bottom: 12px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--grafito); }
.toc a:hover { color: var(--verde); text-decoration: none; }

/* FOOTER */
footer {
  background: var(--grafito);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px; margin-bottom: 32px;
}
.footer-brand .logo-text { color: white; }
.footer-brand .logo-text span { color: var(--verde-claro); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; color: rgba(255,255,255,0.7); margin-top: 14px; }
.footer-col h4 { color: white; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* WA FLOAT */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 99;
  transition: transform 0.3s;
  animation: float-bounce 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--crema);
    flex-direction: column;
    padding: 20px; gap: 14px;
    border-bottom: 1px solid rgba(30, 78, 142, 0.08);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0 40px; }
  .content-section { padding: 40px 0; }
  article.post h2 { font-size: 26px; }
  article.post p { font-size: 16px; }
}
