/* Grupo Terranova — sitio web
   Marino + acento por unidad (turquesa laboratorio, verde salud ocupacional, naranja capacitación). */

:root {
  --navy: #0B1A3A;
  --ink: #0E1B2C;
  --ink-2: #3E4752;
  --muted: #5A6472;
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --line: #E3E6E1;
  --line-2: #D9DDD6;
  --dark: #0E1420;
  --teal: #0B7F8A;
  --teal-dark: #075E66;
  --teal-soft: #E4F4F5;
  --teal-bright: #12C2CF;
  --green: #1E6B4E;
  --green-dark: #155239;
  --green-soft: #E3F0EA;
  --orange: #B4501A;
  --orange-dark: #8F3D12;
  --orange-soft: #FBEDE4;
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-soft: var(--teal-soft);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --wrap: 1240px;
}
.u-salud { --accent: var(--green); --accent-dark: var(--green-dark); --accent-soft: var(--green-soft); }
.u-consulting { --accent: var(--orange); --accent-dark: var(--orange-dark); --accent-soft: var(--orange-soft); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografía */
h1, h2, h3 { margin: 0; color: inherit; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.65rem); line-height: 1.1; letter-spacing: -0.015em; }
.display em, .title em { font-style: italic; color: var(--accent); }
.underline { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.eyebrow { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 600px; margin: 0; }
.muted { color: var(--muted); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-line { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #14264F; color: #fff; }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: #BFC5BC; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 500; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Encabezado */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 500; }
.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; }
  .site-header.open .header-actions { display: flex; flex-wrap: wrap; }
  .nav a { padding: 12px; }
}

/* Secciones */
.section { padding: 72px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs span:last-child { color: var(--accent); font-weight: 500; }

.hero { padding: 64px 0 56px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.photo { border-radius: 24px; min-height: 420px; background: repeating-linear-gradient(135deg, #E6EAE4 0 14px, #EDF0EB 14px 28px); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 14px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; }
.chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.float-card { position: absolute; left: -20px; bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 40px rgba(11,26,58,.12); display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
@media (max-width: 640px) { .float-card { position: static; margin-top: 12px; } .photo { min-height: 260px; } }
.info-pair { display: flex; gap: 14px; margin-top: 14px; }
.info-pair > div { flex: 1; border-radius: 16px; padding: 16px 18px; }
.info-light { background: var(--surface); border: 1px solid var(--line); }
.info-dark { background: var(--navy); color: #fff; }
.info-pair small { display: block; font-size: 12px; color: var(--muted); }
.info-dark small { color: #A9B4CC; }

/* Tarjetas */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 22px; height: 22px; }

.unit { padding: 0; overflow: hidden; }
.unit-bar { height: 6px; background: var(--accent); }
.unit-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.unit-top { display: flex; justify-content: space-between; align-items: center; }
.unit-for { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.unit h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.unit-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; font-weight: 600; }

/* Paquetes */
.pkg .price { font-size: 36px; font-weight: 500; letter-spacing: -.02em; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pkg li::before { content: "— "; opacity: .55; }
.pkg .btn { margin-top: auto; }
.pkg-featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.pkg-featured .badge { background: var(--teal-bright); color: var(--navy); }
.pkg-featured .btn-accent { background: var(--teal-bright); color: var(--navy); }
.badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.pkg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Franjas oscuras */
.band-dark { background: var(--dark); color: #fff; }
.band-navy { background: var(--navy); color: #fff; }
.band-dark .title, .band-navy .title { color: #fff; }
.band-dark .title span, .band-navy .title span { color: var(--teal-bright); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; gap: 14px; }
.stat b { font-size: clamp(3rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--teal-bright); }
.stat hr { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 0; }
.stat strong { font-size: 18px; font-weight: 500; }
.stat span { font-size: 14px; color: #8E9AB5; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature span { color: #A9B4CC; font-size: 14px; }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--accent); line-height: 1; }
.steps strong { font-size: 18px; }
.steps span { color: var(--ink-2); }

/* 01 02 03 */
.numbered { display: flex; flex-direction: column; gap: 56px; margin-top: 48px; }
.numbered-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.numbered-row > div { flex: 1 1 400px; min-width: 0; }
.numbered-row .n { font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.numbered-row h3 { font-size: 28px; font-weight: 500; line-height: 1.2; margin: 14px 0; }
.numbered-row h3 em { font-style: normal; color: var(--accent); }
.mini-list { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mini-list div { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.mini-list span { color: var(--muted); font-size: 13px; }

/* Pestañas de catálogo */
.tabs { display: flex; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { min-height: 46px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.course { gap: 12px; padding: 22px; }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.course h3 { font-size: 18px; line-height: 1.3; }

/* Formularios */
.form { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea { min-height: 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 400 !important; flex-direction: row !important; }
.pill input { accent-color: var(--accent); }
.form .full { grid-column: 1 / -1; }
.form small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.band-accent { background: var(--accent); color: #fff; }
.band-accent .title { color: #fff; }
.band-accent p { color: rgba(255,255,255,.82); }

/* Clientes y testimonios */
.logos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.logos div { height: 72px; border-radius: 14px; border: 1px dashed #C9CEC6; display: flex; align-items: center; justify-content: center; color: #8A929C; font-size: 13px; filter: grayscale(1); }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.quote figcaption { font-size: 13px; color: var(--muted); }

/* Contacto */
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.contact-card b { font-size: 20px; font-weight: 500; }
.map { border: 0; width: 100%; min-height: 320px; border-radius: 22px; }

/* Pie */
.site-footer { background: var(--navy); color: #A9B4CC; font-size: 14px; }
.site-footer a { color: #A9B4CC; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding: 44px 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols strong { color: #fff; }
.footer-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 10px; align-self: flex-start; }
.footer-logo img { height: 30px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; }

/* Texto legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }

/* Fotos y logos de clientes */
.photo { position: relative; }
.photo.has-img { padding: 0; background: var(--line); }
.photo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logos div:has(img) { border: 1px solid var(--line); background: var(--surface); padding: 14px 18px; }
.logos img { max-height: 40px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logos div:hover img { filter: none; opacity: 1; }
