/* 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; }


/* IG FLOAT */
.ig-float {
  position: fixed;
  bottom: 24px; left: 24px;
  height: 58px;
  padding: 0 22px 0 16px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 100px;
  display: flex; align-items: center; gap: 10px;
  color: white !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
  z-index: 99;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: float-bounce 3s ease-in-out infinite;
  text-decoration: none !important;
}
.ig-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(220, 39, 67, 0.6);
}
.ig-float svg { width: 28px; height: 28px; fill: white; flex-shrink: 0; }
.ig-float-text { white-space: nowrap; line-height: 1; }
@media (max-width: 500px) {
  .ig-float { padding: 0; width: 58px; justify-content: center; }
  .ig-float-text { display: none; }
}


/* BRAND BAR (logos en grayscale arriba del trust-bar) */
.brand-bar {
  background: var(--blanco);
  padding: 36px 0;
  border-bottom: 1px solid rgba(30, 78, 142, 0.06);
}
.brand-bar-label {
  text-align: center;
  color: var(--gris);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}
.brand-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.brand-logos img {
  max-height: 38px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s, transform 0.3s;
}
.brand-logos img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}
@media (max-width: 900px) {
  .brand-logos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .brand-logos img { max-height: 30px; }
}
@media (max-width: 500px) {
  .brand-logos { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* COMO TRABAJO */
.como-trabajo {
  background: var(--crema);
  padding: 90px 0;
  position: relative;
}
.como-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.como-card {
  background: white;
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 6px 24px rgba(30, 78, 142, 0.06);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.como-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 78, 142, 0.1);
}
.como-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--azul));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(60, 160, 140, 0.3);
}
.como-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--azul);
  font-size: 22px;
  margin-bottom: 12px;
}
.como-card p {
  color: var(--gris);
  font-size: 15px;
  line-height: 1.55;
}
.como-card .como-time {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--verde);
  background: rgba(60, 160, 140, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
}
@media (max-width: 900px) {
  .como-grid { grid-template-columns: 1fr; gap: 20px; }
  .como-trabajo { padding: 60px 0; }
}

/* 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; }
}


.btn-ig-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white !important;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.btn-ig-nav:hover { transform: translateY(-1px) scale(1.05); text-decoration: none !important; }

.trust-bar {
  background: var(--crema);
  padding: 70px 0;
  position: relative;
}
.trust-inner {
  background: white;
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 10px 40px rgba(30, 78, 142, 0.08);
  display: grid;
  grid-template-columns: 280px 1px 1fr;
  gap: 56px;
  align-items: center;
}
.trust-headline { text-align: center; }
.trust-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--azul);
  letter-spacing: -2px;
}
.trust-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gris);
  margin-top: 8px;
  font-weight: 500;
}
.trust-divider {
  width: 1px;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(30, 78, 142, 0.15), transparent);
}
.trust-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.trust-feat { display: flex; align-items: flex-start; gap: 14px; }
.trust-feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(60, 160, 140, 0.12);
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-feat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--azul);
  font-size: 15px;
  margin-bottom: 2px;
}
.trust-feat span {
  display: block;
  font-size: 13.5px;
  color: var(--gris);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .trust-inner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }
  .trust-divider { display: none; }
  .trust-features { grid-template-columns: 1fr; gap: 18px; }
  .trust-number { font-size: 56px; }
}
