/* SALOR — estilo moderno y minimalista */

:root {
  --navy: #0a1628;        /* azul casi-negro del fondo del logo */
  --navy-soft: #182a47;   /* navy con un poco más de luz */
  --accent: #1e6dd6;      /* azul eléctrico del logo */
  --accent-soft: #4a8de0; /* azul claro */
  --silver: #c8d0dc;      /* plateado del cuerpo del equipo */
  --bg: #f7f9fc;          /* blanco azulado muy ligero */
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(10,22,40,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color .2s; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--navy);
}
.logo span { color: var(--accent); }
.logo img {
  height: 84px;
  width: auto;
  display: block;
}
.footer-brand .logo img {
  height: 140px;
  margin-bottom: 16px;
  margin-left: -8px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--navy-soft); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 14px;
  background: var(--accent);
  opacity: 0.25;
  z-index: -1;
  border-radius: 2px;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: white;
}
.btn-whatsapp {
  background: #25d366;
  color: white;
}
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-1px); }

/* Hero illustration */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 460px;
  justify-self: end;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 16px;
}
.hero-visual::after {
  content: '';
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 60%;
  height: 60%;
  background: var(--accent);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.85;
}
.hero-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 60px;
  color: var(--accent);
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all .3s;
}
.card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Machine catalog ---------- */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.machine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.machine-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.machine-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-image svg {
  width: 50%;
  height: 50%;
  color: var(--accent);
  opacity: 0.85;
}
.machine-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.machine-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.machine-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.machine-brand {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.machine-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.spec-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.machine-pricing {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.price-from {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
}
.price-period {
  font-size: 14px;
  color: var(--text-muted);
}
.machine-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ---------- Machine feature (single product detail) ---------- */
.machine-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  align-items: stretch;
}
.machine-feature-image {
  position: relative;
  background: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.machine-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.machine-feature-image .machine-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}
.machine-feature-body {
  padding: 56px 56px 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.machine-feature-body h3 {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1.1;
}
.machine-feature-body .machine-brand {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.machine-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.machine-feature-body .machine-specs {
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  padding: 24px 0;
  margin-bottom: 32px;
}
.machine-feature-body .spec-value {
  font-size: 18px;
}
.machine-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Machine note (when only one machine) */
.machine-note {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.machine-note-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.machine-note-icon svg { width: 20px; height: 20px; }
.machine-note strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.machine-note p { color: var(--text-muted); font-size: 15px; margin: 0; }
.machine-note a { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--accent); }

@media (max-width: 900px) {
  .machine-feature {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .machine-feature-image { min-height: 280px; }
  .machine-feature-body { padding: 40px 28px; }
  .machine-feature-body h3 { font-size: 30px; }
}

/* ---------- About page ---------- */
.about-hero {
  padding: 80px 0 60px;
}
.about-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 24px;
}
.about-hero .lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 720px;
}
.about-content {
  padding: 60px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.about-grid p { margin-bottom: 18px; color: var(--text-muted); font-size: 16px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.value h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.value-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 40px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: 1px solid var(--border); }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-detail .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-detail .value { font-size: 16px; font-weight: 600; color: var(--navy); }

/* Form */
.form {
  background: var(--surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  transition: all .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}
.form-status {
  margin-top: 16px;
  padding: 0;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  transition: all .3s;
}
.form-status.success {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 16px;
  border: 1px solid #a5d6a7;
}
.form-status.error {
  background: #ffebee;
  color: #b71c1c;
  padding: 16px;
  border: 1px solid #ef9a9a;
}
.form-status a { text-decoration: underline; cursor: pointer; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  border-radius: 24px;
  margin: 48px 24px;
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 17px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-banner .btn-secondary {
  border-color: white;
  color: white;
}
.cta-banner .btn-secondary:hover { background: white; color: var(--navy); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* WhatsApp floating button */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform .25s;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-self: start; max-width: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 80px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-grid { gap: 24px; }
  .stat-num { font-size: 32px; }
}
