/* ==========================================================================
   EquilibrioPro — Hoja de estilos principal
   Paleta: #171f2b (carbón), #0d9488 (verde azulado de marca), #f6f9f8 (fondo)
   Tipografía: Plus Jakarta Sans (títulos, geométrica — combina con el logo) + Inter (texto)
   ========================================================================== */

:root {
  --primary: #171f2b;
  --primary-soft: #232e3f;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-tint: #e6f4f2;
  --bg: #ffffff;
  --bg-alt: #f6f9f8;
  --text: #1c2430;
  --text-soft: #5b6472;
  --line: #e3e8e6;
  --white: #ffffff;

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius: 16px;
  --shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 14px; }

.section-intro { max-width: 640px; margin-bottom: 48px; }
.section-intro p { color: var(--text-soft); font-size: 1.05rem; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

section { padding: 100px 0; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* safety net: never hide content if JS fails */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 12px 24px -10px rgba(13, 148, 136, 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(13, 148, 136, 0.6); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark { background: transparent; border-color: var(--line); color: var(--primary); }
.btn-outline-dark:hover { background: var(--bg-alt); }

.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); }

.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 12px 24px -10px rgba(37, 211, 102, 0.55); }
.btn-whatsapp:hover { transform: translateY(-2px); }

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

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }

.logo { display: flex; align-items: center; }
.logo img { height: 52px; width: auto; }

nav.main-nav { display: flex; gap: 30px; }
nav.main-nav a { font-size: 0.94rem; font-weight: 500; color: var(--text); padding: 4px 0; }
nav.main-nav a:hover { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 22px; font-size: 0.9rem; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; color: var(--primary); }

/* ---------- Mobile nav panel ---------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 300;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
  background: var(--white); z-index: 301; padding: 26px 26px 40px;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.mobile-nav-panel.is-open { transform: translateX(0); }
.mobile-nav-panel .mnp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav-panel .mnp-close { background: none; border: none; cursor: pointer; }
.mobile-nav-panel .mnp-close svg { width: 24px; height: 24px; color: var(--primary); }
.mobile-nav-panel a { display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--line); }
.mobile-nav-panel .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 0;
  background: radial-gradient(1100px 520px at 85% -10%, var(--accent-tint) 0%, transparent 60%), var(--bg);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

.hero-copy .eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-icon-badge {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: var(--accent-light); flex-shrink: 0;
}
.hero-icon-badge svg { width: 20px; height: 20px; }

.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: 20px; }
.hero h1 .accent-text { color: var(--accent); }

.hero-copy > p.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 520px; margin-bottom: 28px; }

.hero-quote {
  background: var(--primary); color: var(--white); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 30px; max-width: 520px; position: relative;
}
.hero-quote .quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent-light); line-height: 0.5; display: block; margin-bottom: 10px; }
.hero-quote p { font-size: 0.98rem; color: rgba(255,255,255,0.9); }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-badge { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.hero-badge svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.hero-badge span { font-size: 0.85rem; font-weight: 700; color: var(--primary); display: block; line-height: 1.25; }
.hero-badge small { font-size: 0.78rem; color: var(--text-soft); font-weight: 500; }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media .blob-1 {
  position: absolute; width: 420px; height: 420px; border-radius: 44% 56% 60% 40% / 45% 45% 55% 55%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  top: -6%; right: -6%; z-index: 0; opacity: 0.94;
}
.hero-media .blob-2 {
  position: absolute; inset: auto 6% 4% auto; width: 140px; height: 140px; border-radius: 50%;
  border: 2px solid var(--accent-light); opacity: 0.5; z-index: 0;
}
.hero-photo-frame {
  position: relative; z-index: 1; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow); width: min(400px, 84vw);
  border: 6px solid var(--white);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-float-card {
  position: absolute; z-index: 2; left: -8%; bottom: 8%;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-float-card .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hero-float-card small { display: block; font-size: 0.76rem; color: var(--text-soft); max-width: 130px; line-height: 1.25; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--primary); color: var(--white); padding: 20px 0; margin-top: 64px; }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.trust-strip strong { color: var(--accent-light); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service-card-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.service-card-body { padding: 26px 26px 30px; }

.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 0.95rem; }
.service-tag { font-size: 0.8rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 10px; }

/* ---------- Image-only banner sections (Desarrollo Organizacional / Riesgos Psicosociales) ---------- */
.banner-section { padding: 56px 0; }

/* ---------- Blog / Centro de Conocimiento ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.blog-card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 22px 26px; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card-body p { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 16px; }
.blog-card-link { font-size: 0.88rem; font-weight: 700; color: var(--accent); }

/* ---------- Split feature sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.split-text .eyebrow-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; }
.split-text .eyebrow-icon svg { width: 26px; height: 26px; }

.split-text p { color: var(--text-soft); margin-bottom: 22px; font-size: 1.02rem; }

.check-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: var(--text); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 12px; }
.check-list { margin-bottom: 26px; }

/* ---------- Pillars / photo banner ---------- */
.photo-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-banner img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 48px; text-align: center; }
.pillar { padding: 0 28px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: none; }
.pillar-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h4 { font-size: 1.2rem; margin-bottom: 10px; }
.pillar p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Pricing / membresías ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }

.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; display: flex; flex-direction: column; position: relative; }

.price-card.featured { background: var(--primary); color: var(--white); border-color: var(--primary); transform: scale(1.03); box-shadow: var(--shadow); }
.price-card.featured h3, .price-card.featured .price-target { color: var(--white); }
.price-card.featured p { color: rgba(255,255,255,0.75); }
.price-card.featured .check-list li { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.92); }
.price-card.featured .check-list li::before { background-color: rgba(13,148,136,0.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

.price-badge { position: absolute; top: -14px; right: 30px; background: var(--accent); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: 0.04em; }

.price-target { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 22px; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.price-tag { font-size: 0.95rem; color: var(--accent); font-weight: 600; margin-bottom: 22px; }
.price-card.featured .price-tag { color: var(--accent-light); }

.price-card .check-list { flex: 1; margin-bottom: 30px; }
.price-card .check-list li { font-size: 0.92rem; padding: 10px 0; }

.price-benefit { font-size: 0.88rem; font-style: italic; color: var(--text-soft); margin-bottom: 22px; }
.price-card.featured .price-benefit { color: rgba(255,255,255,0.7); }

.pricing-note { text-align: center; margin-top: 40px; color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Complementary services ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill { background: var(--accent-tint); color: var(--primary); font-size: 0.9rem; font-weight: 500; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(13,148,136,0.18); }

/* ---------- Agendar cita ---------- */
.booking-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.booking-info { background: linear-gradient(150deg, var(--primary) 0%, #123a45 100%); color: var(--white); padding: 52px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.booking-info h2 { color: var(--white); }
.booking-info > p { color: rgba(255,255,255,0.78); margin-bottom: 30px; }

.booking-modes { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.booking-mode { display: flex; gap: 14px; align-items: flex-start; }
.booking-mode .bm-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent-light); flex-shrink: 0; }
.booking-mode .bm-icon svg { width: 20px; height: 20px; }
.booking-mode strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.booking-mode span { font-size: 0.86rem; color: rgba(255,255,255,0.7); }

.booking-contact-line { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.85); margin-top: 10px; }
.booking-contact-line svg { width: 18px; height: 18px; color: var(--accent-light); flex-shrink: 0; }

.booking-form { background: var(--white); padding: 52px 44px; }
.booking-form h3 { font-size: 1.2rem; margin-bottom: 22px; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg-alt);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 84px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mode-toggle { display: flex; gap: 10px; }
.mode-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mode-toggle label {
  flex: 1; text-align: center; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.92rem; font-weight: 600; color: var(--text-soft); cursor: pointer; background: var(--bg-alt);
  transition: all 0.2s ease;
}
.mode-toggle input:checked + label { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }

.form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 14px; text-align: center; }
.form-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Footer ---------- */
footer { background: var(--primary); color: rgba(255,255,255,0.78); padding: 72px 0 28px; }

.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; margin-bottom: 18px; background: var(--white); padding: 10px 16px; border-radius: 12px; }
.footer-logo img { height: 40px; }
.footer-col p { font-size: 0.92rem; max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px; background: #25D366; color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6); z-index: 400; transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid, .pricing-grid { grid-template-columns: 1fr; }
  .services-grid-6, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media, .split.reverse .split-text { order: unset; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .pillar:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 20px; }
  .hero-photo-frame { width: min(340px, 70vw); margin: 0 auto; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .booking-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  nav.main-nav, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  section { padding: 64px 0; }
  .banner-section { padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .booking-info, .booking-form { padding: 36px 26px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-float-card { left: 4%; }
  .services-grid-6, .blog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
