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

body {
  font-family: "Arial", "Helvetica", sans-serif;
  color: #2a2a2a;
  background-color: #ffffff;
}

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

.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #d9d9d9;
}

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

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

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

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

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

.btn-call .btn-icon {
  width: 24px;
  height: 24px;
}

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

.btn-whatsapp {
  background-color: #3cc048;
  border-color: #2fa33b;
}

.btn-call:hover,
.btn-whatsapp:hover {
  filter: brightness(0.96);
}

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

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

.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-%20suministro%20e%20instalacion%2F7b74d954-slider01_11nq0q61e00q604u00001o.jpg?alt=media");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: 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__title {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

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

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

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

.hero__icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__card {
  background-color: 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;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

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

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

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

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

.section {
  padding: 64px 0;
}

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

.section__header h2 {
  font-size: 34px;
  text-transform: uppercase;
}

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

.section--why {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid--why {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 36px 40px;
  align-items: start;
  text-align: left;
  justify-items: stretch;
  max-width: 1100px;
  width: 100%;
  padding: 0 16px 8px;
}

.grid--why .card--feature {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 520px;
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.feature__icon-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.grid--why h3 {
  margin: 2px 0 6px;
  text-align: center;
  font-size: 20px;
  color: #f0b51a;
}

.grid--why p {
  color: #1f2937;
  margin: 0;
  text-align: justify;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.card--aplique img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

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

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

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

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

.material__label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background-color: #111111;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 16px;
  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-%20suministro%20e%20instalacion%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(4, minmax(0, 1fr));
  gap: 24px;
}

.step {
  text-align: center;
  padding: 18px 16px;
  background-color: transparent;
  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-color: #f6c341;
}

.payment-card {
  max-width: 820px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 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: 44px;
  align-items: center;
  justify-items: center;
}

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

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

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

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

.testimonial__avatar {
  width: 84px;
  height: 84px;
  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.45;
}

.section--cta {
  position: relative;
  color: #ffffff;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20suministro%20e%20instalacion%2Fd6fa0a68-consturccion-slider_11hc0gj00000000000001o.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: 16px 0;
}

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

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

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

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

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

@media (max-width: 900px) {
  .hero {
    padding: 0 0 48px;
    background-image: none;
    color: #111111;
  }

  .hero__overlay {
    display: none;
  }

  .hero__title {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-image: url("https://firebasestorage.googleapis.com/v0/b/housenymaderas.firebasestorage.app/o/images%20-%20suministro%20e%20instalacion%2F7b74d954-slider01_11nq0q61e00q604u00001o.jpg?alt=media");
    background-size: cover;
    background-position: center;
  }

  .hero__title {
    padding: 140px 24px 20px;
    text-align: center;
  }

  .hero__headline {
    margin: 0;
    font-size: 32px;
    color: #ffffff;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .brand img {
    height: 72px;
  }

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

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

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy p,
  .hero__tags {
    color: #111111;
  }

  .hero__copy {
    display: contents;
  }

  .hero__icons-row {
    display: contents;
  }

  .hero__title {
    order: 0;
  }

  .hero__tags {
    order: 1;
    margin-top: 24px;
  }

  .hero__icons {
    order: 2;
  }

  .hero__card {
    order: 3;
  }

  .hero__intro {
    order: 4;
  }

  .hero__cta {
    order: 5;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .grid--steps {
    grid-template-columns: repeat(2, minmax(0, 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;
  }

  .footer__content {
    text-align: center;
  }

  .section--cta {
    padding: 40px 0;
  }

  .cta__content {
    padding: 0 28px;
  }
}

@media (max-width: 720px) {
  .grid--why {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .grid--why .card--feature {
    max-width: 420px;
    display: grid;
    grid-template-areas: "title" "icon" "text";
    justify-items: center;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
  }

  .grid--why h3 {
    text-align: center;
  }

  .grid--why p {
    text-align: center;
    max-width: none;
  }

  .feature__body {
    align-items: center;
    text-align: center;
  }

  .feature__icon-img {
    margin: 0 0 6px;
  }

  .grid--why .feature__body {
    display: contents;
  }

  .grid--why .feature__body h3 {
    grid-area: title;
  }

  .grid--why .feature__body p {
    grid-area: text;
  }

  .grid--why .feature__icon-img {
    grid-area: icon;
  }
}

@media (max-width: 600px) {
  .grid--materiales {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 480px) {
  .grid--materiales {
    grid-template-columns: 1fr;
  }
}
