/* TEKBIMED S.R.L. — rediseño editorial corporativo. CSS vanilla, sin frameworks. */
:root {
  --navy: #0A192F;
  --navy-2: #0D213A;
  --navy-3: #12365E;
  --ink: #0F172A;
  --body: #334155;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-muted: #EDF2F7;
  --border: #E2E8F0;
  --line: #CBD5E1;
  --cta: #D62839;
  --cta-dark: #B21E2D;
  --tech: #00B4D8;
  --cyan-ink: #027EA3;
  --on-dark: #FFFFFF;
  --on-dark-soft: #E2E8F0;
  --on-dark-note: #CBD5E1;
  --radius: 8px;
  --container: 1200px;
  --header-h: 72px;
  --font-head: 'Montserrat', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--body); background: var(--bg); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; }
section { scroll-margin-top: calc(var(--header-h) + 8px); }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tech); outline-offset: 2px; border-radius: 4px;
}
.btn-cta:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--cta); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.section-head h2, .about-copy h2 { font-size: clamp(1.7rem, 1.2rem + 2.5vw, 2.5rem); font-weight: 800; margin: 0.5rem 0 0.9rem; }
.lead { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.15rem); }
.index-label { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan-ink); }
.index-light { color: var(--tech); }
.about-photo picture, .experience-photo-wrap picture, .hero-media picture,
.logo picture, .service-media picture { display: contents; }

/* Botones */
.btn { display: inline-block; padding: 0.85rem 1.7rem; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.86rem; }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.65); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-mail { display: inline-flex; align-items: center; gap: 0.55rem; background: transparent; border-color: var(--tech); color: var(--tech); }
.btn-mail:hover { background: var(--tech); border-color: var(--tech); color: var(--navy); }
.btn-mail svg { width: 16px; height: 16px; flex: none; }
.header.scrolled .btn-mail { border-color: var(--cyan-ink); color: var(--cyan-ink); }
.header.scrolled .btn-mail:hover { background: var(--cyan-ink); border-color: var(--cyan-ink); color: #fff; }

/* ---------- 01. HEADER ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s ease, box-shadow 0.3s ease; background: linear-gradient(to bottom, rgba(10,25,47,0.82), rgba(10,25,47,0)); }
.header .nav a { color: #fff; }
.header .logo-text { color: #fff; }
.header .menu-btn { color: #fff; }
.header.scrolled { background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(10,25,47,0.08); }
.header.scrolled .nav a { color: var(--ink); }
.header.scrolled .logo-text { color: var(--navy); }
.header.scrolled .menu-btn { color: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: 1px; }
.logo-text span { color: var(--tech); }
.header.scrolled .logo-text span { color: var(--cyan-ink); }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.menu-btn { display: none; font-size: 1.5rem; background: none; border: 0; cursor: pointer; }

/* ---------- 02. HERO ---------- */
.hero { position: relative; background: var(--navy); padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,180,216,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,216,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 95% at 72% 18%, #000 0%, transparent 74%);
  mask-image: radial-gradient(120% 95% at 72% 18%, #000 0%, transparent 74%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; background: linear-gradient(to bottom, rgba(10,25,47,0.85), rgba(10,25,47,0)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-brand { font-family: var(--font-head); font-weight: 800; font-size: clamp(1rem, 0.9rem + 1vw, 1.3rem); letter-spacing: 3px; color: #fff; margin-bottom: 0.9rem; }
.hero-brand span { color: var(--tech); }
.hero-eyebrow { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; color: var(--tech); margin-bottom: 1.3rem; }
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--tech); flex: none; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 4.2vw, 3.9rem); font-weight: 800; line-height: 1.08; margin-bottom: 1.3rem; text-wrap: balance; }
.hero-lead { color: var(--on-dark-soft); font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.18rem); max-width: 56ch; margin-bottom: 2rem; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-coverage { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.18); color: var(--on-dark-soft); font-size: 0.92rem; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.hero-coverage-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--tech); }
.hero-media { position: relative; margin: 0; }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 24px 50px -32px rgba(0,0,0,0.65); }
.hero-media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.1rem 0.85rem; font-size: 0.78rem; letter-spacing: 0.4px; color: #fff; background: linear-gradient(to top, rgba(6,15,29,0.92), rgba(6,15,29,0)); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- 03. NOSOTROS ---------- */
.about { background: var(--bg-muted); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy p { max-width: 60ch; margin-bottom: 0.85rem; }
.about-points { list-style: none; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.about-points li { position: relative; padding: 0.85rem 0 0.85rem 1.5rem; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.about-points li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-ink); }
.about-points strong { color: var(--navy); }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.about-photo figcaption, .experience-photo-wrap figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--body); }

/* ---------- 04. SERVICIOS ---------- */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); }
.service { border-top: 3px solid var(--navy); padding-top: 1.3rem; }
.service-media { position: relative; margin: 0 0 1.2rem; }
.service-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-light); }
.service-num { position: absolute; top: 0.6rem; left: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: 1px; color: #fff; background: rgba(10,25,47,0.86); border: 1px solid rgba(255,255,255,0.18); padding: 0.25rem 0.6rem; border-radius: 4px; }
.service h3 { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem); font-weight: 800; margin-bottom: 0.6rem; }
.service p { margin-bottom: 1rem; }
.service-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px; color: var(--cyan-ink); text-decoration: none; }
.service-link::after { content: "\2192"; transition: transform 0.2s ease; }
.service-link:hover { color: var(--navy); }
.service-link:hover::after { transform: translateX(4px); }

/* ---------- 05. ESPECIALIZACIÓN ---------- */
.spec { position: relative; background: var(--navy); overflow: hidden; }
.spec::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,180,216,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,216,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}
.spec .container { position: relative; z-index: 1; }
.spec .section-head h2 { color: #fff; }
.spec .section-head .lead { color: var(--on-dark-soft); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 2.5vw, 2rem); }
.spec-col { padding-top: 1.4rem; border-top: 2px solid rgba(0,180,216,0.55); }
.spec-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 2px; color: var(--tech); margin-bottom: 0.7rem; }
.spec-col h3 { color: #fff; font-size: 1.08rem; font-weight: 700; margin-bottom: 1rem; }
.spec-list { list-style: none; }
.spec-list li { position: relative; padding-left: 1rem; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--on-dark-soft); }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--tech); }

/* ---------- 06. EXPERIENCIA ---------- */
.experience { background: var(--bg-muted); border-top: 1px solid var(--border); padding-bottom: 0; }
.experience-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.experience-places { border-top: 1px solid var(--line); }
.place { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0.5rem 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.place-name { font-family: var(--font-head); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.92rem; color: var(--navy); }
.place-sub { font-size: 0.82rem; font-weight: 600; color: var(--cyan-ink); }
.place-list { list-style: none; }
.place-list li { position: relative; padding-left: 1rem; font-size: 0.92rem; margin-bottom: 0.35rem; }
.place-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-ink); }
.experience-photo-wrap { margin: 0; }
.experience-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- 07. CIFRAS ---------- */
.figures-band { background: var(--navy); margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(2.8rem, 5vw, 4.5rem) 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.figures-band .index-label { margin-bottom: 1.8rem; }
.figures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2rem; }
.figure { padding-top: 1.2rem; border-top: 2px solid rgba(0,180,216,0.55); }
.figure-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 1.8rem + 3.5vw, 4.2rem); color: #fff; line-height: 1; margin-bottom: 0.6rem; }
.figure-label { font-size: 0.82rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--on-dark-note); font-weight: 600; }
.figures-note { font-size: 0.85rem; color: var(--on-dark-note); border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.4rem; max-width: 92ch; }

/* ---------- 08. PROCESO ---------- */
.process { background: #fff; border-top: 1px solid var(--border); }
.process-line { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.5rem, 3vw, 2.8rem); }
.process-line li { position: relative; border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.process-line li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--cta); }
.process-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 2px; color: var(--cyan-ink); }
.process-line strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; color: var(--navy); margin: 0.3rem 0 0.5rem; }
.process-line span:last-child { font-size: 0.92rem; }

/* ---------- 09. CONTACTO ---------- */
.contact { background: var(--navy); }
.contact .section-head h2 { color: #fff; }
.contact-lead { color: var(--on-dark-soft); font-size: 1.05rem; max-width: 52ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.contact-grid .section-head { grid-column: 1; grid-row: 1; margin-bottom: 0; max-width: 100%; }
.contact-cta { display: grid; gap: 0.9rem; align-content: start; grid-column: 1; grid-row: 2; }
.contact-cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; }
.contact-cta .btn svg { width: 18px; height: 18px; flex: none; }
.contact-info { grid-column: 2; grid-row: 1 / span 2; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.contact-org { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; color: #fff; }
.contact-ruc { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 1px; color: var(--on-dark-note); margin-bottom: 1.5rem; }
.contact-data { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.contact-data > div { border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 1.1rem; }
.contact-data > div:last-child { grid-column: 1 / -1; }
.contact-data dt { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-note); margin-bottom: 0.25rem; }
.contact-data dd { color: #fff; margin: 0; }
.contact-data a { color: #fff; }
.contact-data a:hover { color: var(--tech); }

/* ---------- 10. FOOTER ---------- */
.footer { background: #060F1D; color: var(--on-dark-note); padding: 3.5rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 2.5rem; }
.footer-brand img { height: 48px; width: auto; display: block; margin-bottom: 0.8rem; }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 1px; color: #fff; margin-bottom: 0.7rem; }
.footer-logo span { color: var(--tech); }
.footer-ruc { font-family: var(--font-mono); font-size: 0.8rem; margin-top: 0.7rem; }
.footer-title { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { color: var(--on-dark-note); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid p { font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-contact .footer-meta span { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.2rem; font-size: 0.85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 4vw, 2.6rem); }
  .hero-media { max-width: 680px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 680px; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-photo-wrap { max-width: 680px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .section-head, .contact-cta, .contact-info { grid-column: 1; grid-row: auto; }
  .contact-info { border-top: 1px solid rgba(255,255,255,0.18); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: 0; }
  .header.scrolled .nav { background: #fff; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .header.scrolled .nav a { border-color: var(--border); }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .place { grid-template-columns: 1fr; gap: 0.35rem; }
  .process-line { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-line li { border-top: 0; border-left: 2px solid var(--navy); padding: 0 0 0 1.4rem; }
  .process-line li::before { top: 0; left: -7px; }
}
@media (max-width: 520px) {
  .contact-data { grid-template-columns: 1fr; }
  .contact-data > div:last-child { grid-column: auto; }
  .figures-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .header .btn-mail { font-size: 0; gap: 0; padding: 0.6rem 0.7rem; }
  .hero-coverage { align-items: flex-start; }
}
