/* ==========================================================================
   Contador Salud — Hoja de estilos global
   ========================================================================== */

:root {
  --navy: #021e3a;
  --blue: #005399;
  --blue-light: #1b6db3;
  --gray: #e1e1e1;
  --gray-soft: #f4f6f8;
  --white: #ffffff;
  --text: #1c2b3a;
  --text-muted: #5a6b7a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 30, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(2, 30, 58, 0.14);
  --max-width: 1180px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--gray-soft); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(0, 83, 153, 0.3); }
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 12px 26px rgba(0, 83, 153, 0.38); }

.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }
.btn-whatsapp:hover { background: #1fb955; }

.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 52px; width: auto; }
.nav-logo span { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.05rem; display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.96rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #052a4f 55%, var(--blue) 130%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,83,153,0.5) 0%, transparent 70%);
  top: -200px; right: -150px;
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 90px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--white); }
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .card-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.hero-visual img { max-width: 230px; margin: 0 auto 18px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); }
.hero-visual .card-badge p { color: rgba(255,255,255,0.85); font-weight: 500; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 140%);
  color: var(--white);
  padding: 70px 24px 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0, 83, 153, 0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card ul { margin-top: 14px; }
.card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.card ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img, .split .img-frame {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.img-frame {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  padding: 40px;
  text-align: center;
}
.img-frame img { max-width: 180px; }

.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Values / Why us ---------- */
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue);
  min-width: 48px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gray);
  line-height: 1;
  margin-bottom: 10px;
}
.testimonial-card p.quote { color: var(--text); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gray-soft);
  border: 1px solid var(--gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-weight: 700;
  font-family: var(--font-heading);
}
.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-placeholder-note {
  font-size: 0.78rem;
  color: var(--blue);
  background: rgba(0,83,153,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 14px;
  display: inline-block;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; color: var(--navy); }
.stats-strip span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
input, textarea, select {
  font-family: var(--font-body);
  padding: 13px 16px;
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.form-status { font-size: 0.88rem; margin-top: 12px; display: none; padding: 10px 14px; border-radius: 8px; }
.form-status.show { display: block; }
.form-status.success { background: rgba(37,211,102,0.12); color: #1a8f4c; }
.form-status.error { background: rgba(220,53,69,0.1); color: #c0392b; }

/* ---------- Contact info cards ---------- */
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .card-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.92rem; }
.contact-info-card a { color: var(--blue); font-weight: 600; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo img { height: 48px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.72); transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.social-links a:hover { background: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.2s ease;
  color: var(--white);
  font-size: 1.6rem;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Stars & Google review badge ---------- */
.stars { color: #f5a623; font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-soft);
  border-radius: 20px;
  padding: 4px 10px;
  margin-top: 14px;
}
.testimonial-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Photo gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.photo-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 3/4;
}
.photo-gallery figure.wide { grid-column: span 2; aspect-ratio: 3/2; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(2,30,58,0.88), transparent);
  color: var(--white);
  font-size: 0.8rem;
  padding: 24px 14px 10px;
}

/* ---------- Video gallery (formato vertical / reels) ---------- */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  position: relative;
}
.video-card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-card .video-label {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(2,30,58,0.75);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  pointer-events: none;
}
.video-featured {
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .img-frame { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery figure.wide { grid-column: span 2; }
  .video-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 82px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline-navy { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 40px 24px; }
  .section { padding: 60px 0; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .photo-gallery figure.wide { grid-column: span 2; }
  .video-gallery { grid-template-columns: 1fr 1fr; }
  .video-gallery.cols-2 { grid-template-columns: 1fr; max-width: 260px; }
}
