:root {
  --red: #d91e2a;
  --red-dark: #b3141f;
  --black: #111315;
  --steel-900: #181b20;
  --steel-800: #23272e;
  --steel-700: #343a44;
  --steel-200: #e2e6ec;
  --steel-100: #f3f5f8;
  --white: #ffffff;
  --text: #1c2026;
  --text-muted: #555e6b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(17, 19, 21, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 19, 21, 0.16);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  margin: 0 0 0.75rem;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.text-accent {
  color: var(--red);
}

/* Topbar */
.topbar {
  background: var(--black);
  color: #d6dbe3;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.topbar-item,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topbar-item svg {
  color: var(--red);
}

.topbar-link:hover {
  color: var(--white);
}

.topbar-sep {
  opacity: 0.35;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-200);
}

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

.brand-badge {
  display: inline-flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  line-height: 1;
  user-select: none;
}

.brand-top {
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.9rem 0.25rem;
  text-align: center;
}

.brand-bottom {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  padding: 0.24rem 0.9rem 0.3rem;
  text-align: center;
}

.brand-badge-sm .brand-top {
  font-size: 1.15rem;
  padding: 0.28rem 0.75rem 0.2rem;
}

.brand-badge-sm .brand-bottom {
  font-size: 0.76rem;
  padding: 0.2rem 0.75rem 0.24rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--steel-700);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 1rem;
}

.btn:not(.btn-sm):not(.btn-lg) {
  padding: 0.78rem 1.3rem;
  font-size: 0.94rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 30, 42, 0.28);
}

.btn-secondary {
  background: var(--steel-900);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0f12 0%, #1b2028 60%, #24161a 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(217, 30, 42, 0.16);
  border: 1px solid rgba(217, 30, 42, 0.4);
  color: #ff8f96;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 30, 42, 0.25);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.06rem;
  color: #cfd5df;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  color: var(--white);
}

.stat span {
  font-size: 0.82rem;
  color: #aeb7c4;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  margin-bottom: 1.25rem;
}

.badge-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.hero-card h2 {
  font-size: 1.65rem;
  color: var(--white);
  margin: 0;
}

.hero-checklist {
  display: grid;
  gap: 0.95rem;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(217, 30, 42, 0.22);
  color: #ff6b75;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-checklist strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
}

.hero-checklist span {
  font-size: 0.85rem;
  color: #bcc5d2;
}

.hero-card-footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.address-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #e4e8ef;
}

.address-pill svg {
  color: var(--red);
}

/* Secciones */
.section {
  padding: 4.5rem 0;
}

.section-dark {
  background: var(--steel-900);
  color: var(--white);
}

.section-muted {
  background: var(--steel-100);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.45rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  font-weight: 800;
  text-transform: uppercase;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

.section-header-light p {
  color: #bcc5d2;
}

/* Cards de Piolas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(217, 30, 42, 0.45);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--red);
}

.card h3 {
  font-size: 1.42rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  margin-top: 0.5rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Accesorios e Hidráulica */
.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.feature-panel {
  background: var(--steel-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.feature-panel-accent {
  background: linear-gradient(155deg, #252a33 0%, #191c22 100%);
  border-color: rgba(217, 30, 42, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-panel h3 {
  font-size: 1.6rem;
  color: var(--white);
}

.feature-panel > p {
  color: #c7d0dd;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.part-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
}

.part-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.part-item span {
  font-size: 0.84rem;
  color: #aeb7c4;
}

.bullet-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.75rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  color: #dce2eb;
  font-size: 0.94rem;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* Pasos fabricación a medida */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.4rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* Cotizador */
.quote-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.25rem;
  align-items: start;
}

.quote-info h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.quote-info p {
  color: var(--text-muted);
}

.contact-methods {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-box {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-box:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-box strong {
  font-size: 1.05rem;
  color: var(--black);
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--steel-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid #cfd6e0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 30, 42, 0.14);
}

.form-actions {
  display: grid;
  gap: 0.7rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--red-dark);
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}

/* Ubicación */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.location-details h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.location-details > p {
  color: var(--text-muted);
}

.location-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 1.75rem;
}

.location-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.location-list a {
  color: var(--red);
  font-weight: 600;
}

.location-list a:hover {
  text-decoration: underline;
}

.location-card {
  background: linear-gradient(145deg, var(--steel-900) 0%, var(--black) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 1.5rem;
}

.location-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-pin {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(217, 30, 42, 0.18);
  border: 1px solid rgba(217, 30, 42, 0.45);
  color: #ff7b83;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-pin svg {
  width: 26px;
  height: 26px;
}

.location-card-top h3 {
  font-size: 1.55rem;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.location-card-top p {
  margin: 0;
  color: #bcc5d2;
  font-size: 0.95rem;
}

.location-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.location-highlight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.location-highlight strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.location-highlight span {
  font-size: 0.84rem;
  color: #aeb7c4;
}

.location-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Footer */
.footer {
  background: var(--black);
  color: #cfd5df;
  padding-top: 3.25rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #9aa4b2;
  max-width: 36ch;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 4.5rem;
  font-size: 0.82rem;
  color: #8b95a5;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--whatsapp);
  color: var(--white);
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 26px rgba(29, 168, 81, 0.36);
  transition: transform var(--transition), background var(--transition);
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
}

/* Responsivo */
@media (max-width: 960px) {
  .hero-inner,
  .split-grid,
  .quote-wrapper,
  .location-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--steel-200);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4%;
    gap: 0.9rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .cards-grid,
  .steps-grid,
  .pill-grid,
  .form-row,
  .location-highlights {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
  }
}
