/*
Theme Name: Biométrica Pie
Theme URI: https://biometricapie.cl
Author: Biométrica Pie
Description: Tema profesional y moderno para laboratorio de análisis biomecánico de la marcha y plantillas ortopédicas en Las Condes. Partner tecnológico SensorMedica.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: biometrica-pie
*/

:root {
  --navy: #0a2540;
  --navy-2: #123056;
  --teal: #2a9d8f;
  --teal-2: #1f7a70;
  --mint: #4ecdc4;
  --ice: #f4f8fb;
  --white: #ffffff;
  --text: #243044;
  --muted: #5b6b7c;
  --line: #d9e3ec;
  --shadow: 0 18px 50px rgba(10, 37, 64, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217,227,236,.7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: .06em; color: var(--navy); }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--navy-2); }
.nav a:hover { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 14px;
  border: 0; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #07192c; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; }

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(78,205,196,.25), transparent 60%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
  padding: 72px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-block; color: var(--teal-2); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 12px; margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; color: var(--navy); letter-spacing: -.03em; }
.lead { margin: 18px 0 28px; color: var(--muted); font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line);
}
.hero-card .video-frame {
  aspect-ratio: 16/10; background: #0a2540; position: relative;
  display: grid; place-items: center; color: #fff;
}
.play {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25);
  font-size: 28px;
}
.hero-meta { padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

.section { padding: 88px 0; }
.section.alt { background: var(--ice); }
.section-head { max-width: 680px; margin-bottom: 40px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { margin-top: 12px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 30px rgba(10,37,64,.04);
}
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(42,157,143,.12); color: var(--teal-2); font-weight: 800; margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding: 10px 0 10px 28px; position: relative; }
.checklist li:before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.frame {
  border-radius: 20px; overflow: hidden; background: #e8eef4; min-height: 220px;
  border: 1px dashed #b7c7d6; position: relative;
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.frame .label {
  position: absolute; left: 12px; bottom: 12px; background: rgba(10,37,64,.82);
  color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 999px;
}

.partner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: 28px; padding: 28px 32px;
}
.partner small { color: #9bb0c4; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.partner strong { font-size: 28px; display: block; margin-top: 4px; }
.badge { background: rgba(78,205,196,.16); border: 1px solid rgba(78,205,196,.35); color: #d7fffb; padding: 10px 16px; border-radius: 999px; font-weight: 700; }

.video-block .video-frame {
  border-radius: 28px; overflow: hidden; min-height: 420px; background: #08192c;
  display: grid; place-items: center; color: #fff; border: 1px solid #16324f;
}
.video-block iframe, .video-block video { width: 100%; height: 100%; min-height: 420px; border: 0; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote {
  background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line);
}
.quote p { font-size: 16px; }
.quote cite { display: block; margin-top: 16px; color: var(--muted); font-style: normal; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  font: inherit; background: #fff;
}
.map {
  min-height: 360px; border-radius: 24px; overflow: hidden; background: #dce6ee;
  display: grid; place-items: center; color: var(--muted); border: 1px dashed #b7c7d6;
}

.site-footer { background: #071524; color: #c9d6e2; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.copyright { border-top: 1px solid #16324f; padding-top: 16px; font-size: 13px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 82px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .hero-grid, .split, .contact-grid, .cards, .gallery, .benefits, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 36px; }
}
