/* MEDIC CLEAN PANAMA — estilos propios de la demo Linort Tech */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-variable.woff2") format("woff2"),
       url("fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #07251d;
  --green-900: #0b3d30;
  --green-800: #114b3c;
  --green-700: #1a6b52;
  --green-600: #1f8a66;
  --green-500: #2aa576;
  --green-400: #4ecb96;
  --green-200: #b7e6ce;
  --green-100: #e7f7ef;
  --green-50: #f4fbf7;
  --ink: #16332b;
  --muted: #4a6159;
  --line: rgba(17, 75, 60, 0.12);
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(7, 37, 29, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.6em; color: var(--green-900); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--green-900);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(7, 37, 29, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 1.4rem), var(--wrap));
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  min-width: 0;
}
.site-header.is-solid .brand { color: var(--green-900); }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--green-800);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(7,37,29,0.18);
}
.brand-mark svg { width: 28px; height: 28px; display: block; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-name span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.site-header.is-solid .nav-toggle span { background: var(--green-900); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 auto;
  width: min(86vw, 360px);
  background: var(--white);
  box-shadow: -16px 0 40px rgba(7,37,29,0.16);
  padding: 1.2rem 1.2rem 2rem;
  transform: translateX(110%);
  transition: transform 0.28s ease;
  overflow: auto;
  z-index: 60;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--green-900);
  font-weight: 650;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.main-nav a:hover, .main-nav a:focus { color: var(--green-600); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,37,29,0.45);
  z-index: 55;
}
.nav-backdrop.is-open { display: block; }

@media (min-width: 980px) {
  .nav-toggle, .nav-backdrop { display: none !important; }
  .main-nav {
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transform: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 0.2rem 1.15rem;
  }
  .main-nav a {
    border: 0;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--white);
  }
  .site-header.is-solid .main-nav a { color: var(--green-900); }
  .main-nav a.nav-cta {
    background: var(--green-500);
    color: var(--white) !important;
    padding: 0.55rem 1rem;
    border-radius: 999px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 750;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(42, 165, 118, 0.35);
}
.btn-primary:hover { background: var(--green-600); color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-dark {
  background: var(--green-800);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-900); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 0px);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 2.4rem) 0 6.2rem;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 55%;
  z-index: -2;
}
.hero-media { background: var(--green-900); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,37,29,0.28) 0%, rgba(7,37,29,0.55) 42%, rgba(7,37,29,0.88) 100%),
    linear-gradient(90deg, rgba(7,37,29,0.45) 0%, rgba(7,37,29,0.08) 70%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green-200);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow svg { flex: 0 0 auto; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  max-width: 18ch;
  margin-bottom: 1rem;
}
.hero .lead {
  font-size: 1.05rem;
  max-width: 36em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
}

/* Trust */
.trust {
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.trust-list {
  display: grid;
  gap: 0.9rem;
}
.trust-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}
.trust-list svg { flex: 0 0 auto; margin-top: 0.15rem; color: var(--green-600); }

/* Sections */
section { padding: 3.4rem 0; scroll-margin-top: calc(var(--header-h) + 10px); }
.section-kicker {
  color: var(--green-600);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}
.section-head { margin-bottom: 1.8rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.section-head p { color: var(--muted); margin: 0; }

.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 1px 0 rgba(7,37,29,0.02);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.servicios { background: var(--white); }

/* Residuos */
.residuos { background: var(--green-50); }
.waste-grid { display: grid; gap: 0.8rem; }
.waste {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--line);
}
.waste h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.waste p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.legal-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.legal-note a { font-weight: 700; }

/* Proceso */
.pasos { display: grid; gap: 1rem; counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.paso {
  position: relative;
  padding: 1.15rem 1.15rem 1.2rem 4.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.paso::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.paso h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.paso p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Sectores */
.sectores { background: var(--green-900); color: var(--white); }
.sectores .section-kicker { color: var(--green-400); }
.sectores h2, .sectores .section-head p { color: var(--white); }
.sectores .section-head p { opacity: 0.88; }
.sector-grid {
  display: grid;
  gap: 0.8rem;
}
.sector {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.sector svg { flex: 0 0 auto; color: var(--green-400); }
.photo-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
}
.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(7,37,29,0.85));
  color: var(--white);
  font-weight: 750;
  font-size: 0.95rem;
}

/* Cumplimiento */
.cumplimiento { background: var(--white); }
.split {
  display: grid;
  gap: 1.2rem;
}
.norm-card {
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--line);
}
.norm-card h3 { font-size: 1.05rem; }
.norm-card p, .norm-card li { color: var(--muted); font-size: 0.95rem; }
.norm-card ul { display: grid; gap: 0.55rem; margin-top: 0.6rem; }
.norm-card li { padding-left: 1.1rem; position: relative; }
.norm-card li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  position: absolute;
  left: 0; top: 0.5rem;
}
.source { font-size: 0.8rem; color: var(--muted); margin-top: 0.7rem; }

/* FAQ */
.faq { background: var(--green-50); }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--green-900);
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-600);
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

/* Cotizacion */
.cotizacion { background: var(--green-900); color: var(--white); }
.cotizacion .section-kicker { color: var(--green-400); }
.cotizacion h2, .cotizacion .section-head p { color: var(--white); }
.cotizacion .section-head p { opacity: 0.9; }
.form-layout { display: grid; gap: 1.4rem; }
.contact-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.contact-box h3 { color: var(--white); font-size: 1.05rem; }
.dato {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}
.dato span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--green-200);
  margin-bottom: 0.15rem;
}
.dato strong { font-weight: 650; color: var(--white); }
.placeholder-dato { color: #f8e9a0 !important; font-weight: 700; }

form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-weight: 750;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--green-900);
}
.req { color: var(--green-600); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  background: var(--green-50);
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green-400);
  border-color: var(--green-500);
  background: var(--white);
}
.checks {
  display: grid;
  gap: 0.4rem;
}
.checks label {
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.92rem;
}
.checks input { margin-top: 0.2rem; accent-color: var(--green-700); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0.9rem; }
.form-ok, .form-warn {
  display: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}
.form-ok { background: var(--green-100); color: var(--green-900); }
.form-warn { background: #fff6d8; color: #5a4a12; }
form.is-ok .form-ok, form.is-warn .form-warn { display: block; }

/* Footer */
.site-footer {
  background: var(--green-950);
  color: rgba(255,255,255,0.86);
  padding: 2rem 0 5.5rem;
  font-size: 0.92rem;
}
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer p { margin: 0 0 0.6rem; }
.site-footer small, .credits {
  display: block;
  margin-top: 1.2rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}
.linort { margin-top: 0.8rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.linort a { color: rgba(255,255,255,0.7); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(18, 140, 64, 0.4);
}
.wa-float:hover { color: var(--white); transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

@media (min-width: 720px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .waste-grid { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-card img { height: 220px; }
  .form-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .site-footer { padding-bottom: 2.4rem; }
  section { padding: 4.2rem 0; }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .waste-grid { grid-template-columns: repeat(4, 1fr); }
  .pasos { grid-template-columns: repeat(5, 1fr); }
  .paso { padding: 4.2rem 1rem 1.2rem; text-align: left; }
  .paso::before { left: 1rem; top: 1rem; }
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .hero { align-items: center; padding-top: calc(var(--header-h) + 3rem); }
  .hero h1 { max-width: 16ch; }
}
