: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;
  scroll-padding-top: 134px;
}

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: sticky;
  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: #0c141c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 260px;
}

.reptex-brand {
  min-height: 96px;
  gap: 10px;
}

.reptex-logo-img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.reptex-wordmark {
  color: #9ebecc;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.main-nav a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 66px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu nav {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 158px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.language-menu nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 14px;
}

.language-menu nav a:hover,
.language-menu nav a[aria-current="page"] {
  background: var(--paper);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  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-v2.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: 58px 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(30px, 3.25vw, 48px);
  line-height: 1.04;
  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: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.55vw, 20px);
}
.hero-lead strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-weight: 900;
}

.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);
}

.hero-actions .btn-primary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-actions .btn-whatsapp {
  color: var(--white);
  background: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.55);
}

.hero-actions .btn-whatsapp:hover {
  background: #1ebe5d;
}

.whatsapp-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
}
.btn-icon {
  font-size: 19px;
}

.quick-services {
  display: grid;
  grid-template-columns: repeat(4, 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,
.contact-section,
.request-section,
.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);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  margin-bottom: 56px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  max-width: 660px;
  margin-bottom: 18px;
}

.contact-copy p {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 19px;
}

.contact-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-notes li {
  padding: 9px 12px;
  color: var(--ink);
  background: #eef4f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.contact-request-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-phone,
.contact-whatsapp {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 18px 20px;
  border-radius: 8px;
  font-weight: 900;
}

.contact-phone {
  color: var(--white);
  background: var(--ink);
}

.contact-phone span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.contact-phone strong {
  font-size: 26px;
  line-height: 1.1;
}

.contact-whatsapp {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--white);
  background: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.55);
  font-size: 18px;
}

.contact-whatsapp:hover {
  background: #1ebe5d;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 24px 0 80px;
}

.request-intro h2 {
  max-width: 520px;
}

.request-intro p:last-child {
  max-width: 470px;
  color: var(--ink-soft);
  font-size: 18px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.request-form fieldset {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.request-form legend,
.request-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.request-form legend {
  margin-bottom: 8px;
}

.request-form .choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.request-form .choice:has(input:checked) {
  border-color: var(--teal);
  background: #e9f7f7;
}

.request-form input[type="radio"] {
  accent-color: var(--teal);
}

.request-form .field {
  display: grid;
  gap: 7px;
}

.request-form .field-wide,
.request-form .form-actions {
  grid-column: 1 / -1;
}

.request-form input:not([type="radio"]),
.request-form select,
.request-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #b9c6ce;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.request-form textarea {
  min-height: 112px;
  resize: vertical;
}

.request-form :is(input, select, textarea, button):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

.form-actions button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-actions button:hover {
  background: var(--ink-soft);
}

.form-actions p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.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;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .request-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 140px;
  }

  body {
    padding-bottom: 72px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 14px;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .language-menu summary {
    min-height: 36px;
  }

  .brand {
    min-width: 0;
  }

  .reptex-brand {
    min-height: 62px;
  }

  .reptex-logo-img {
    width: 62px;
    height: 62px;
  }
  .reptex-wordmark {
    font-size: 18px;
  }

  .header-call {
    min-height: 36px;
    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: 56px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-services {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .section,
  .services-grid,
  .workshop,
  .contact-section,
  .request-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .workshop,
  .contact-section {
    padding: 26px;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .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);
  }
}
