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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2b2b2b;
  background: #ffffff;
}

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

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cta-call {
  background: #f6c342;
  color: #ffffff;
  border-color: #e2ad1e;
  box-shadow: 0 2px 0 #d39b12;
}

.cta-whatsapp {
  background: #45c356;
  color: #ffffff;
  border-color: #2ea742;
  box-shadow: 0 2px 0 #228b37;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20casas%20y%20cabanas%20maderas%2F3cfbf7ad-imagenes-de-casas-de-adobe-bonitas_100000000000000000001o.jpg?alt=media");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 60px 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 28, 44, 0.55);
}

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

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

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

.hero__tags {
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}

.hero__mobile-title,
.hero__tags--mobile,
.hero__details {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: #f3c741;
  color: #ffffff;
  box-shadow: 0 2px 0 #d7ab20;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn--wide {
  width: 100%;
}

.hero__card {
  background: rgba(255, 255, 255, 0.88);
  color: #2b2b2b;
  padding: 20px 22px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero__card h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.hero__card p {
  font-size: 14px;
  margin-bottom: 14px;
  color: #3c3c3c;
}

.hero__card label {
  display: block;
  margin-bottom: 12px;
}

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

.bar {
  background: #f3c741;
  color: #1d1d1d;
}

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

.section {
  padding: 60px 0;
}

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

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

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

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

.card--feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 28px 26px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.feature__icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.feature__title {
  font-size: 20px;
  margin: 0;
  color: #f1b500;
  text-align: center;
}

.feature__text {
  font-size: 15px;
  color: #4b4b4b;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

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

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

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

.work-card span {
  margin: 14px auto 0;
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 10px 22px;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.section--preview {
  background: #f3c741;
}

.section--preview .section__header h2 {
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.grid--preview {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.preview-card {
  text-align: center;
  color: #1f1f1f;
}

.preview-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.preview-card span {
  margin: 14px auto 10px;
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.preview-card p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.5;
}

.grid--materiales {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  justify-items: center;
}

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

.card--material img {
  width: 100%;
  max-width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.material__label {
  margin-top: 10px;
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 14px;
  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-%20casas%20y%20cabanas%20maderas%2F9c0ec9ea-fondo-formulario2_100000000000000000001o.jpg?alt=media");
  background-size: cover;
  background-position: center;
}

.steps__overlay {
  position: absolute;
  inset: 0;
  background-color: transparent;
}

.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(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step {
  text-align: center;
  padding: 24px 18px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
}

.step img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

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

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

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

.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: 32px;
  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;
}

.section--testimonios {
  background: #ffffff;
}

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

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

.testimonial-card {
  width: 100%;
  max-width: 320px;
  padding: 24px 20px;
  border-radius: 26px;
  text-align: center;
}

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

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

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

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

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

.testimonial-card p {
  font-size: 14px;
  line-height: 1.5;
}

.section--cta {
  position: relative;
  color: #ffffff;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20casas%20y%20cabanas%20maderas%2F5c224ea2-finca-el-diamante-hot-swimming-pool_100000017r0ev00007501o.jpg?alt=media");
  background-size: cover;
  background-position: center;
  text-align: center;
}

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

.cta__content {
  position: relative;
  z-index: 1;
  padding: 28px 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;
}

.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;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.service-card__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card__label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
}

.form-status {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}

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

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

.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: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .cta {
    justify-content: center;
  }

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

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

  .hero__overlay {
    display: none;
  }

  .hero__copy {
    display: none;
  }

  .hero__details {
    display: block;
    text-align: center;
  }

  .hero__details p {
    margin-bottom: 18px;
  }

  .hero__mobile-title {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    padding: 28px 20px;
    border-radius: 0;
    text-align: center;
    color: #ffffff;
    background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20casas%20y%20cabanas%20maderas%2F3cfbf7ad-imagenes-de-casas-de-adobe-bonitas_100000000000000000001o.jpg?alt=media");
    background-size: cover;
    background-position: center;
    overflow: hidden;
    grid-area: mobile-title;
  }

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

  .hero__mobile-title h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 24px;
  }

  .hero__tags--mobile {
    display: block;
    grid-area: mobile-tags;
    text-align: center;
    margin: 16px auto 0;
    padding: 0 20px;
  }

  .hero__details .btn {
    margin-bottom: 24px;
  }

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

  .card--feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .feature__icon-img {
    margin: 0 auto;
  }

  .service-card__image {
    height: 200px;
  }

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

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

  .cta__actions {
    width: 100%;
  }

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

  .cta__content {
    padding: 28px 20px;
  }

  .payment-card {
    flex-direction: column;
    text-align: center;
    max-width: 320px;
    padding: 20px 24px;
    gap: 12px;
  }

  .payment-card img {
    height: 48px;
  }

  .payment-card p {
    font-size: 18px;
  }

  .footer__content {
    text-align: center;
  }
}
