/* =========================================================
   Tecnomecánica — Hoja de estilos
   ========================================================= */
:root {
  --navy-900: #0d1f33;
  --navy-800: #122a44;
  --navy-700: #1a3a5c;
  --orange: #e02127;
  --orange-dark: #b9141b;
  --ink: #1c2733;
  --muted: #5b6b7c;
  --bg: #f5f7fa;
  --white: #ffffff;
  --line: #e3e9f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 31, 51, 0.08);
  --shadow-lg: 0 14px 40px rgba(13, 31, 51, 0.16);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-img { height: 62px; width: auto; display: block; }
.logo-img-sm { height: 40px; }
.logo-footer-box {
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  display: inline-flex;
}

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a.nav-cta {
  color: var(--orange);
  border-bottom-color: transparent;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--muted);
}
.lang-switch button.active { background: var(--navy-800); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 24px; height: 2.5px; background: var(--navy-800); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(13, 31, 51, 0.94) 0%, rgba(13, 31, 51, 0.82) 45%, rgba(13, 31, 51, 0.45) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 110px 0 120px;
}
.eyebrow {
  display: inline-block;
  background: rgba(224, 33, 39, 0.16);
  border: 1px solid rgba(224, 33, 39, 0.55);
  color: #ff9d9d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  max-width: 720px;
  margin-bottom: 18px;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 640px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badges {
  background: var(--navy-800);
  color: #fff;
  padding: 22px 0;
  border-top: 4px solid var(--orange);
}
.badges-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.badge svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy-800); color: #fff; }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.75); }

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 12px;
}
.section-dark .section-title { color: #fff; }
.section-sub {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 40px;
  font-size: 16.5px;
}

/* ---------- Tarjetas de servicios ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(224, 33, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--orange); }
.card h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 8px; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Lista con check ---------- */
.check-list { list-style: none; margin: 0 0 26px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-dark .check-list li { color: rgba(255, 255, 255, 0.92); }

/* ---------- Venta de compresores ---------- */
.sale-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.sale-note {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 26px;
  border-left: 3px solid var(--orange);
  padding-left: 14px;
}
.sale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sale-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 20px 18px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}
.sale-item:hover { background: rgba(224, 33, 39, 0.16); border-color: rgba(224, 33, 39, 0.5); }
.sale-photo { margin-top: 44px; }
.sale-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ---------- Pruebas de presión ---------- */
.tests-card {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--orange);
}
.tests-card p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin-top: 10px; }
.tests-card .btn { flex-shrink: 0; }

/* ---------- Nosotros ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-text p { color: var(--muted); margin-bottom: 22px; font-size: 16px; }

/* ---------- Contacto ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info .section-sub { margin-bottom: 28px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.contact-list svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--orange); }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-800);
}
.form-group input,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

.form-success[hidden] { display: none !important; }
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e8f6ee;
  border: 1.5px solid #7fd4a5;
  color: #14683a;
  border-radius: 12px;
  padding: 20px;
  font-weight: 600;
}
.form-success svg { width: 26px; height: 26px; flex-shrink: 0; }

.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .95rem; }
.form-error[hidden] { display: none !important; }
button[disabled] { opacity: .65; cursor: wait; }

/* Consentimiento RGPD + textos legales */
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 8px; cursor: pointer; }
.form-consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #e02127; }
.form-consent a { color: #e02127; text-decoration: underline; }
.form-legal { font-size: .78rem; color: #6b7280; margin: 0 0 14px; line-height: 1.4; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 6px; font-size: .85rem; }
.footer-legal a { color: rgba(255,255,255,.75); }
.footer-legal a:hover { color: #fff; }

/* Páginas legales */
.legal-page { max-width: 860px; margin: 0 auto; padding: 120px 20px 60px; line-height: 1.7; color: #1f2937; }
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4em; color: #0f172a; }
.legal-page h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; color: #0f172a; }
.legal-page p, .legal-page li { font-size: .98rem; }
.legal-page ul { padding-left: 1.3em; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .8em 0; }
.legal-page th, .legal-page td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-page th { background: #f3f4f6; }
.legal-page .updated { color: #6b7280; font-size: .88rem; }
.legal-page .back { display: inline-block; margin-bottom: 18px; color: #e02127; font-weight: 600; }

/* Honeypot (oculto a humanos) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 0 30px;
  font-size: 14px;
}
.logo-footer { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.footer-note { margin-top: 6px; font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; font-size: 13px; }
.footer-copy a:hover { color: var(--orange); }

/* ---------- Franja de marca (UNIAIR) ---------- */
.brand-strip { background: #fff; padding: 30px 0; border-bottom: 1px solid var(--line); }
.brand-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-logo { height: clamp(46px, 5vw, 62px); width: auto; max-width: 86%; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .badges-inner { grid-template-columns: repeat(2, 1fr); }
  .sale-wrap, .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img, .sale-photo img { height: 260px; }
  .tests-card { flex-direction: column; align-items: flex-start; padding: 36px; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 14px; font-size: 14px; }
  .header-actions .btn { display: none; }
  .logo-img { height: 54px; }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; border-bottom: none; border-top: 1px solid var(--line); }
  .menu-toggle { display: flex; }
}

@media (max-width: 760px) {
  .logo-img { height: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .sale-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 72px 0 84px; }
  .section { padding: 56px 0; }
  .contact-form { padding: 24px; }
}

@media (max-width: 460px) {
  .badges-inner { grid-template-columns: 1fr; }
  .sale-grid { grid-template-columns: 1fr; }
}
