/* ==========================================================================
   Grupo @lfatec — estilos de las secciones (se carga después de styles.css)
   ========================================================================== */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--sm { min-height: 44px; padding: 0 20px; }

/* ---------- Header y menú ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-name {
  display: grid;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.brand-name small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand--light .brand-name { color: #fff; }
.brand--light .brand-name small { color: rgb(255 255 255 / 0.75); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--brand-soft); color: var(--brand); }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 10px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .js .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 16px; border-radius: var(--r-sm); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
  /* Sin JavaScript el menú se muestra en fila con salto de línea */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav-list { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Inicio ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 112px);
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-mid) 130%);
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgb(230 233 43 / 0.12);
  border: 1px solid rgb(230 233 43 / 0.4);
  border-radius: 999px;
}
.hero h1 { color: #fff; margin-top: 20px; }
.hero-copy > p {
  margin-top: 22px;
  max-width: 52ch;
  font-size: var(--fs-lg);
  color: rgb(255 255 255 / 0.84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media {
  margin: 0;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  aspect-ratio: 11 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px -24px rgb(0 0 0 / 0.55);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-text { color: var(--muted); max-width: 62ch; }
.about-founders { font-size: var(--fs-sm); color: var(--muted); }
.about-founders strong { color: var(--brand); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 16px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--r-md);
}
.stat strong {
  justify-self: center;
  padding-inline: 4px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--brand);
  background: linear-gradient(transparent 62%, var(--accent) 62%);
}
.stat span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}
.feature {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.feature p { color: var(--muted); font-size: var(--fs-sm); }
.feature .feature-tag { font-weight: 600; color: var(--brand); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--brand-soft);
  border-radius: 14px;
}

.vm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
}
.vm-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 4vw, 36px);
  background: var(--bg-alt);
  border-radius: var(--r-lg);
}
.vm-card p { color: var(--muted); font-size: var(--fs-sm); max-width: 68ch; }

.values-block { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 24px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.value {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.value h4 { font-size: 1rem; font-weight: 600; color: var(--brand); line-height: 1.35; }
.value p { font-size: var(--fs-sm); color: var(--muted); }

.quality {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-alt);
  border-radius: var(--r-lg);
}
@media (min-width: 900px) { .quality { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.quality-intro { display: grid; gap: 14px; align-content: start; }
.quality-intro p { color: var(--muted); font-size: var(--fs-sm); }
.quality-body { display: grid; gap: 24px; align-content: start; }
.quality-goal {
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-weight: 600;
  color: var(--brand) !important;
}
.quality-list { display: grid; gap: 14px; align-content: start; }
.quality-list li { position: relative; padding-left: 28px; font-size: var(--fs-sm); color: var(--muted); }
.quality-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}
.quality-list b { color: var(--brand); font-weight: 600; }

/* ---------- Manifiesto ---------- */
.manifesto { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%); }
.manifesto-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .manifesto-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.manifesto-head { display: grid; gap: 14px; }
.manifesto-copy { display: grid; gap: 18px; }
.manifesto-copy p { font-size: var(--fs-lg); color: rgb(255 255 255 / 0.86); max-width: 60ch; }
.manifesto-copy .manifesto-sign {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Servicios ---------- */
.tabs-nav { display: none; }
.js .tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.tab[aria-selected="true"] img { filter: brightness(0) invert(1); }

/* Sin JavaScript se ven las tres categorías, una debajo de otra */
.tabpanel + .tabpanel { margin-top: 56px; }
.tabpanel-title { text-align: center; }
.tabpanel-desc { margin: 8px auto 28px; text-align: center; color: var(--muted); }
.js .tabpanel + .tabpanel { margin-top: 0; }
.js .tabpanel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.js .tabpanel-desc { margin-top: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.product {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--brand-soft);
}
.product-media img { width: 56px; height: 56px; }
.product-body {
  display: grid;
  gap: 14px;
  align-content: space-between;
  justify-items: start;
  padding: 20px;
}
.product-body h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--brand); }
.product-note { margin-top: -8px; font-size: var(--fs-xs); color: var(--muted); }
.services-note { margin-top: 40px; text-align: center; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Empresas ---------- */
.biz-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .biz-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.biz-copy { display: grid; gap: 20px; justify-items: start; }
.checklist { display: grid; gap: 14px; margin-block: 6px 10px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-lg);
  font-weight: 500;
}
.checklist .icon {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 6px;
  color: var(--brand);
  background: var(--accent);
  border-radius: 50%;
  stroke-width: 3;
}
.biz-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  color: var(--ink);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.5);
}
.biz-card h3 { color: var(--brand); }
.terms { display: grid; gap: 10px; margin-bottom: 10px; }
.terms li { position: relative; padding-left: 26px; color: var(--muted); }
.terms li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.contact-card {
  display: grid;
  gap: 22px;
  align-content: start;
  justify-items: start;
  padding: clamp(24px, 4vw, 36px);
  background: var(--bg-alt);
  border-radius: var(--r-lg);
}
.contact-card--brand { color: #fff; background: var(--brand); }
.contact-card--brand h3 { color: #fff; }
.info-list { display: grid; gap: 18px; width: 100%; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list div { display: grid; gap: 2px; min-width: 0; }
.info-list b { font-weight: 600; font-size: var(--fs-sm); }
.info-list div > span, .info-list a { overflow-wrap: anywhere; color: var(--muted); }
.contact-card--brand .info-list div > span,
.contact-card--brand .info-list a { color: rgb(255 255 255 / 0.85); }
.info-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--brand);
  background: #fff;
  border-radius: 12px;
}
.contact-card--brand .info-icon { background: var(--accent); }

/* ---------- Preguntas frecuentes ---------- */
.faq-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.seo-text { display: grid; gap: 16px; }
.seo-text p { color: var(--muted); max-width: 62ch; }
.faq { display: grid; gap: 12px; }
.faq-title { margin-bottom: 8px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Pie ---------- */
.site-footer { padding-top: clamp(48px, 7vw, 72px); color: rgb(255 255 255 / 0.82); background: var(--brand-deep); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { max-width: 36ch; font-size: var(--fs-sm); }
.footer-title {
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-links { display: grid; gap: 10px; font-size: var(--fs-sm); }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-block: 24px;
  font-size: var(--fs-xs);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.wa-float:hover { background: var(--wa-hover); transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .product:hover, .wa-float:hover { transform: none; }
}

/* ---------- Páginas legales ---------- */
.legal { display: grid; gap: 14px; max-width: 760px; }
.legal h1 { margin-top: 4px; }
.legal h2 { margin-top: 22px; font-size: var(--fs-h3); }
.legal p, .legal li { color: var(--muted); }
.legal ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.legal a { color: var(--brand); text-underline-offset: 3px; }
.legal-date { font-size: var(--fs-sm); }
.site-footer .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
