/* ============================================================
   MENCE Transmission — reducer.wa-ya.cn
   Hoja de estilos principal (sitio estático responsivo)
   ============================================================ */

:root {
  --navy: #0d1b2a;
  --navy-2: #14283d;
  --navy-3: #1b3a57;
  --accent: #f68b1f;
  --accent-dark: #d97706;
  --text: #333a45;
  --text-light: #6b7686;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --border: #e3e8ef;
  --shadow: 0 10px 30px rgba(13, 27, 42, .08);
  --radius: 10px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration: none; transition: color .25s; }
a:hover { color: var(--navy); }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  color: var(--accent);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(13, 27, 42, .09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.logo img { height: 44px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a.active { color: var(--accent-dark); background: #fff4e8; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

.header-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px !important;
  border-radius: 6px;
  font-weight: 700;
}
.header-cta:hover { background: var(--accent-dark); color: #fff !important; }

/* ---------- Héroe ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy) url("../img/banner.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,27,42,.88) 0%, rgba(13,27,42,.62) 48%, rgba(13,27,42,.28) 100%);
}
.hero-inner { position: relative; max-width: 780px; padding: 90px 0; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 800;
}
.hero p { font-size: 1.15rem; color: #dbe4ee; max-width: 620px; margin-bottom: 32px; }

.hero-kicker {
  display: inline-block;
  background: rgba(246,139,31,.16);
  border: 1px solid rgba(246,139,31,.55);
  color: #ffb45e;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .25s;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(246,139,31,.35); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff !important; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-ghost { border-color: var(--accent); color: var(--accent-dark) !important; background: transparent; }
.btn-ghost:hover { background: var(--accent); color: #fff !important; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-light); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .85rem;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.section-head p { color: var(--text-light); }

/* ---------- Tarjetas de características ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff2e2, #ffdfbc);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: .95rem; }

/* ---------- Tarjetas de producto ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f5;
  display: flex; align-items: center; justify-content: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.product-body p { color: var(--text-light); font-size: .95rem; flex: 1; }
.product-body .link-more {
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent-dark);
}
.product-body .link-more:hover { color: var(--navy); }

.badge-tag {
  display: inline-block;
  background: #fff2e2;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Franja de datos ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stat-label { color: #b9c6d6; font-size: .95rem; margin-top: 4px; }

/* ---------- Galería fábrica ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 2;
  background: #eef1f5;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Aplicaciones ---------- */
.app-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #eef1f5; }
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.app-card:hover img { transform: scale(1.06); }
.app-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(13,27,42,.92));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Página interior (cabecera) ---------- */
.page-hero {
  background: var(--navy) linear-gradient(rgba(13,27,42,.72), rgba(13,27,42,.72)), var(--navy-3);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: #c3cfdd; max-width: 640px; margin: 0 auto; }

.breadcrumb {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 30px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ---------- Producto detalle ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail .main-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef1f5;
  aspect-ratio: 4 / 3;
}
.product-detail .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h1 { color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; margin-bottom: 12px; }
.product-detail .lead { color: var(--text-light); font-size: 1.05rem; margin-bottom: 22px; }

.spec-list { margin: 22px 0; border-top: 1px solid var(--border); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.spec-list .spec-name { color: var(--text-light); font-weight: 600; }
.spec-list .spec-val { color: var(--navy); font-weight: 700; text-align: right; }

.check-list { margin: 18px 0 26px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.content-block { max-width: 800px; }
.content-block h2 { color: var(--navy); font-size: 1.5rem; margin: 40px 0 14px; }
.content-block h3 { color: var(--navy); font-size: 1.15rem; margin: 28px 0 10px; }
.content-block p { margin-bottom: 14px; color: var(--text); }
.content-block ul { margin: 0 0 16px; padding-left: 4px; }
.content-block ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.content-block ul li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-item button::after { content: "+"; font-size: 1.5rem; color: var(--accent); line-height: 1; transition: .3s; }
.faq-item.open button::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 24px 22px; color: var(--text-light); }

/* ---------- Formulario de contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; color: var(--navy); font-size: .92rem; margin-bottom: 6px; }
.form-group label .req { color: #e03131; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd7e1;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246,139,31,.16);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: .85rem; color: var(--text-light); margin-top: 14px; }

.form-success {
  display: none;
  background: #e6f7ef;
  border: 1px solid #9ce0c3;
  color: #14724d;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 22px;
  font-weight: 600;
}
.form-success.visible { display: block; animation: fadeIn .4s ease; }
.form-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f5b5b5;
  color: #b02a2a;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 600;
}
.form-error.visible { display: block; }
.form-success h3 { margin-bottom: 6px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.contact-aside .info-item { margin-bottom: 24px; }
.contact-aside .info-item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.contact-aside .info-item p { color: var(--text-light); }

/* ---------- CTA final ---------- */
.cta-band {
  background:
    linear-gradient(105deg, rgba(13,27,42,.94) 0%, rgba(27,58,87,.9) 100%),
    var(--navy);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: #c3cfdd; max-width: 620px; margin: 0 auto 30px; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-2); color: #aebacb; font-size: .93rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 60px 0 40px;
}
.footer-grid h3 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #aebacb; }
.footer-grid a:hover { color: var(--accent); }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; background: #fff; padding: 4px 8px; border-radius: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
}

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(246,139,31,.4);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .product-detail, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 14px 24px rgba(13,27,42,.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .header-cta { border-bottom: none !important; text-align: center; margin-top: 8px; }
  .hero { min-height: 440px; }
  .hero-inner { padding: 70px 0; }
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 26px 20px; }
}
