:root {
  --ink: #101820;
  --ink-soft: #34424e;
  --muted: #687684;
  --line: #d9e1e8;
  --paper: #f6f8f9;
  --white: #ffffff;
  --red: #d7282f;
  --red-dark: #ad1620;
  --teal: #00a6a6;
  --steel: #60707f;
  --shadow: 0 24px 80px rgba(16, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(12, 20, 28, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.main-nav a:hover {
  color: var(--white);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-servicio-puertas.webp");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 15, 22, 0.92) 0%, rgba(8, 15, 22, 0.72) 42%, rgba(8, 15, 22, 0.18) 78%),
    linear-gradient(0deg, rgba(8, 15, 22, 0.72) 0%, rgba(8, 15, 22, 0.12) 45%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: auto 0 70px;
  padding: 150px 0 0 clamp(18px, 5vw, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--red-dark);
}

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

.btn-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-icon {
  font-size: 19px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
  margin-top: 28px;
}

.hero-proof span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.quick-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.quick-services a {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.quick-services a:last-child {
  border-right: 0;
}

.quick-services strong {
  font-size: 18px;
}

.quick-services span {
  color: var(--muted);
}

.section,
.services-grid,
.workshop,
.cta-band,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 90px);
  padding: 92px 0 46px;
}

.section > p {
  color: var(--ink-soft);
  font-size: 19px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0 72px;
}

.service-card {
  min-height: 310px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card p {
  color: var(--ink-soft);
}

.service-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 900;
}

.workshop {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(34px, 6vw, 58px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(38, 57, 72, 0.98)),
    linear-gradient(90deg, var(--red), var(--teal));
  border-radius: 8px;
}

.workshop p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.guarantee {
  padding-top: 90px;
  padding-bottom: 80px;
}

.guarantee-list {
  display: grid;
  gap: 12px;
}

.guarantee-list div {
  padding: 20px;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: 7px;
}

.guarantee-list strong,
.guarantee-list span {
  display: block;
}

.guarantee-list span {
  margin-top: 5px;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
  padding: clamp(30px, 5vw, 52px);
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.cta-band h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 96px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.mobile-contact {
  display: none;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-content {
    padding-left: 18px;
    margin-bottom: 52px;
  }

  .quick-services,
  .services-grid,
  .section,
  .workshop {
    grid-template-columns: 1fr;
  }

  .quick-services a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-services a:last-child {
    border-bottom: 0;
  }

  .services-grid {
    padding-bottom: 50px;
  }

  .service-card {
    min-height: auto;
  }

  .section {
    padding-top: 72px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-call {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 15, 22, 0.94) 0%, rgba(8, 15, 22, 0.78) 68%, rgba(8, 15, 22, 0.44) 100%),
      linear-gradient(0deg, rgba(8, 15, 22, 0.78) 0%, rgba(8, 15, 22, 0.24) 55%);
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-top: 118px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-services {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .section,
  .services-grid,
  .workshop,
  .cta-band,
  .site-footer {
    width: calc(100% - 28px);
  }

  .workshop,
  .cta-band {
    padding: 26px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 34px;
  }

  .mobile-contact {
    position: fixed;
    z-index: 40;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(16, 24, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    backdrop-filter: blur(14px);
  }

  .mobile-contact a {
    display: grid;
    min-height: 46px;
    place-items: center;
    color: var(--white);
    background: var(--red);
    border-radius: 6px;
    font-weight: 900;
  }

  .mobile-contact a:last-child {
    color: var(--ink);
    background: var(--white);
  }
}
