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

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  color: #1f1f1f;
  background: #ffffff;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.header-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand img {
  display: block;
  width: 70px;
  height: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.btn--primary {
  background: #f1c232;
  border-color: #e0a81b;
  color: #ffffff;
}

.btn--wide {
  width: 100%;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.cta-call {
  background: #f1c232;
  color: #ffffff;
}

.cta-icon {
  font-size: 16px;
  line-height: 1;
}

.cta-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cta-whatsapp {
  background: #6cc04a;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: 560px;
  padding: 64px 0 72px;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20mantenimiento%20y%20reparacion%2F1a6d8d84-reaparaciion-escaleras_11hc0zk1hc0zi00000101o.jpg?alt=media");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
  z-index: 1;
}

.hero__copy h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero__copy p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero__tags {
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__mobile-title,
.hero__mobile-tags,
.hero__mobile-icons,
.hero__mobile-text,
.hero__mobile-button {
  display: none;
}

.hero__icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__icons {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.hero__icons img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hero__icons-row .btn--primary {
  padding: 14px 30px;
  font-size: 17px;
}

.hero__card {
  background: rgba(255, 255, 255, 0.95);
  color: #2a2a2a;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 12px;
}

.hero__card h2 {
  font-size: 18px;
  margin-bottom: 4px;
  text-align: center;
}

.hero__card p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
}

.hero__card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d3d3d3;
  font-size: 14px;
}

.form-status {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  color: #555555;
}

.form-status[data-state="success"] {
  color: #2f8a3f;
}

.form-status[data-state="error"] {
  color: #c0392b;
}

.bar {
  background: #f1c232;
  color: #1d1d1d;
  font-weight: 700;
}

.bar__content {
  text-align: center;
  padding: 18px 24px;
  font-size: 20px;
}

.section {
  padding: 70px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__header h2 {
  font-size: 30px;
  color: #2a2a2a;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 32px;
}

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

.grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.service-card {
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  margin: 16px auto 0;
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 12px 26px;
  font-size: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.grid--apliques {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
}

.aplique-card {
  text-align: center;
}

.aplique-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.aplique-card h3 {
  margin: 16px auto 0;
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 10px 24px;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.grid--materiales {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px;
}

.card--material {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card--material img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.material__label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: #111111;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section--steps {
  position: relative;
  color: #ffffff;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20mantenimiento%20y%20reparacion%2F9c0ec9ea-fondo-formulario2_100000000000000000001o.jpg?alt=media");
  background-size: cover;
  background-position: center;
}

.steps__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.steps__content {
  position: relative;
  z-index: 1;
}

.section__header--light h2,
.section__header--light p {
  color: #ffffff;
}

.section__header--light p {
  margin-top: 8px;
  font-size: 17px;
}

.grid--steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.step img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  color: #f1c232;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.step {
  padding: 24px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(1px);
}

.step p {
  font-size: 16px;
  line-height: 1.5;
  color: #f2f2f2;
}

.section--payment {
  background: #f1c232;
}

.payment-card {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.payment-card img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.payment-card p {
  font-size: 24px;
  font-weight: 700;
  color: #2a2a2a;
}

.grid--testimonios {
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.testimonios__title h2 {
  font-size: 26px;
  text-transform: uppercase;
  color: #2a2a2a;
  margin: 0;
  text-align: center;
}

.testimonial-card {
  width: 100%;
  max-width: 340px;
  padding: 30px 24px;
  border-radius: 28px;
  text-align: center;
}

.testimonial-card--yellow {
  background: #f1c232;
  color: #ffffff;
}

.testimonial-card--dark {
  background: #1f1f1f;
  color: #ffffff;
}

.testimonial__avatar {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 14px;
}

.testimonial-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.testimonial-card span {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-card p {
  font-size: 16px;
  line-height: 1.55;
}

.section--cta {
  position: relative;
  color: #ffffff;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20mantenimiento%20y%20reparacion%2F46506c3f-colorado-springs-deck-stairs-scaled_11hc0z41hc0k800000001o.jpeg?alt=media");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cta__content {
  position: relative;
  z-index: 1;
  padding: 16px 0;
}

.cta__content h2 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.cta__content p {
  font-size: 22px;
  margin-bottom: 20px;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta__actions .btn {
  min-width: 260px;
  justify-content: center;
}

.btn-call {
  background: #f1c232;
  border-color: #e0a81b;
  color: #ffffff;
}

.btn-whatsapp {
  background: #6cc04a;
  border-color: #3ea83f;
  color: #ffffff;
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer {
  background: #1f1f1f;
  color: #a7a7a7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__content {
  padding: 20px 24px;
  text-align: right;
  font-size: 13px;
}

.card--feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
}

.feature__icon-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature__body h3 {
  margin: 0 0 10px;
  color: #f1c232;
  font-size: 20px;
}

.feature__body {
  text-align: center;
}

.feature__body p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    flex-direction: column;
  }

  .header-actions {
    justify-content: center;
  }

  .hero__content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mobile-title"
      "mobile-tags"
      "mobile-icons"
      "form"
      "mobile-text"
      "mobile-button";
    padding: 0;
  }

  .hero {
    background-image: none;
    color: #2a2a2a;
    padding: 0;
  }

  .hero__overlay {
    display: none;
  }

  .hero__copy {
    display: none;
  }

  .hero__mobile-title,
  .hero__mobile-tags,
  .hero__mobile-icons,
  .hero__mobile-text,
  .hero__mobile-button {
    display: block;
  }

  .hero__mobile-title {
    grid-area: mobile-title;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 240px;
    padding: 24px 18px;
    text-align: center;
    color: #ffffff;
    background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20mantenimiento%20y%20reparacion%2F1a6d8d84-reaparaciion-escaleras_11hc0zk1hc0zi00000101o.jpg?alt=media");
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }

  .hero__mobile-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 35%,
      rgba(0, 0, 0, 0.65) 100%
    );
  }

  .hero__mobile-title h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .hero__mobile-tags {
    grid-area: mobile-tags;
    margin: 16px auto 0;
    padding: 0 20px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #2a2a2a;
  }

  .hero__mobile-icons {
    grid-area: mobile-icons;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 8px 20px 0;
  }

  .hero__mobile-icons img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

  .hero__card {
    grid-area: form;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero__mobile-text {
    grid-area: mobile-text;
    margin: 16px auto 0;
    padding: 0 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #2a2a2a;
  }

  .hero__mobile-button {
    grid-area: mobile-button;
    margin: 16px auto 24px;
  }

  .hero__icons-row {
    justify-content: center;
  }

  .grid--why {
    grid-template-columns: 1fr;
  }

  .grid--services {
    grid-template-columns: 1fr;
  }

  .grid--apliques {
    grid-template-columns: 1fr;
  }

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

  .grid--steps {
    grid-template-columns: 1fr;
  }

  .payment-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .grid--testimonios {
    grid-template-columns: 1fr;
  }

  .cta__actions {
    width: 100%;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta__content {
    padding: 24px 20px;
  }

  .footer__content {
    text-align: center;
  }

  .card--feature {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .feature__body {
    display: contents;
  }

  .feature__body h3 {
    order: 1;
  }

  .feature__icon-img {
    order: 2;
  }

  .feature__body p {
    order: 3;
  }
}
