/* Super Clean — landing page
   Desktop: 1rem = 10px del diseño (lienzo de 1728px), escala con el viewport.
   Móvil (<= 900px): 1rem = 10px fijo y layout apilado. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --navy: #393E72;
  --navy-dark: #2B2F57;
  --green: #81AD38;
  --white: #fff;
}

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

html {
  font-size: min(10px, calc(100vw / 172.8));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }

.wrap { position: relative; width: 100%; max-width: 172.8rem; margin: 0 auto; }
.green { color: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 105.2rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(57, 62, 114, .4), rgba(57, 62, 114, .4)),
    linear-gradient(180deg, rgba(57, 62, 114, 0) 50%, var(--navy) 100%);
}
.hero__inner { z-index: 1; height: 100%; }

.nav {
  position: absolute; top: 4.7rem; left: 6rem; right: 5.9rem; height: 8rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4.9rem 0 4.2rem;
  border-radius: 4rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(2rem);
  backdrop-filter: blur(2rem);
}
.nav__logo img { width: 27.97rem; height: auto; }
.nav__links { display: flex; gap: 3.6rem; }
.nav__links a { font-size: 1.6rem; line-height: 2.4rem; color: rgba(255, 255, 255, .5); transition: color .2s; }
.nav__links a:hover { color: var(--white); }

.hero__title {
  position: absolute; top: 23.3rem; left: 6rem;
  font-size: 12.8rem; line-height: 14rem; font-weight: 300; white-space: nowrap;
}
.hero__title strong { font-size: 11.5rem; font-weight: 700; margin-left: 1.5rem; }
.hero__sub {
  position: absolute; top: 55.6rem; left: 6rem;
  font-size: 4rem; line-height: 6rem; font-weight: 300;
}
.hero__text {
  position: absolute; top: 75.1rem; right: 6.6rem;
  font-size: 1.6rem; line-height: 2.4rem; text-align: right; white-space: nowrap;
}

/* ---------- ¿Por qué elegir? ---------- */
.why { padding-top: 10.2rem; }
.why__title { padding-left: 6rem; font-size: 6.4rem; line-height: 9.6rem; font-weight: 600; }
.why__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 9rem 2rem 0 4rem;
}
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature__icon { height: 6rem; width: auto; object-fit: contain; }
.feature__title { margin-top: 2rem; font-size: 3.2rem; line-height: 4.6rem; font-weight: 600; white-space: nowrap; }
.feature__title::before {
  content: ""; display: inline-block; width: 2rem; height: 1.7rem; margin-right: 1.3rem;
  background: url("../img/check.svg") center / contain no-repeat;
}
.feature__text {
  display: flex; align-items: center; justify-content: center;
  min-height: 8.4rem; margin-top: 2rem;
  font-size: 1.6rem; line-height: 2.8rem;
}

/* Ajustes ópticos de columnas para igualar el diseño */
.feature:nth-child(2) { transform: translateX(.4rem); }
.feature:nth-child(3) { transform: translateX(.15rem); }
.feature:nth-child(4) .feature__title { transform: translateX(-.8rem); }

/* ---------- Más que una lavandería ---------- */
.about {
  display: grid;
  grid-template-columns: 104.5rem 46.8rem;
  column-gap: 7.8rem; row-gap: 9.2rem;
  margin-top: 28.3rem; padding: 0 6.8rem 0 6.9rem;
}
.photo { position: relative; overflow: hidden; border-radius: 2rem; background: #d9d9d9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.about__photo { grid-column: 1; width: 75rem; height: 71rem; margin-left: -.5rem; }
.about__copy { position: absolute; top: -1.6rem; right: 6.75rem; text-align: right; }
.about__brand { padding-right: 2rem; font-size: 6.4rem; line-height: 9.6rem; font-weight: 300; }
.about__title { margin-top: 5.3rem; font-size: 9.6rem; line-height: 14rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.about__last { margin-right: 2.3rem; }
.about__wide, .about__tall { grid-row: 2; height: 58.9rem; }
.about__wide { grid-column: 1; }
.about__tall { grid-column: 2; }

/* ---------- Sucursales ---------- */
.branches { margin-top: 18rem; padding: 0 6.8rem 0 6.9rem; }
.branches__title { font-size: 6.4rem; line-height: 9.6rem; font-weight: 600; }
.photo--plain::after { content: none; }
.branches__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; margin-top: 4rem; }
.branches__list h3 { font-size: 3.2rem; line-height: 4.6rem; font-weight: 600; }
.branches__list h3::before {
  content: ""; display: inline-block; width: 2rem; height: 1.7rem; margin-right: 1.3rem;
  background: url("../img/check.svg") center / contain no-repeat;
}
.branches__list p { margin-top: 1.2rem; max-width: 60rem; font-size: 1.6rem; line-height: 2.8rem; }

/* ---------- Footer ---------- */
.footer {
  margin: 20.9rem 6.8rem 4.7rem 6.9rem; padding: 4.2rem 3.8rem 3.1rem 3.3rem;
  border-radius: 2rem; background: var(--navy-dark);
}
.footer__top { display: flex; justify-content: space-between; }
.footer__logo { width: 27.97rem; height: auto; }
.footer__tagline { margin-top: 3.2rem; font-size: 3.6rem; line-height: 5rem; font-weight: 300; }
.footer__links { display: flex; flex-direction: column; gap: 4.3rem; margin: .4rem 1.8rem 0 0; text-align: right; }
.footer__links a, .footer__address { font-size: 1.6rem; line-height: 2.4rem; }
.footer__address { display: flex; flex-direction: column; gap: .4rem; font-style: normal; }
.footer__address strong { font-weight: 500; }
.footer__links a:hover { color: var(--green); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 3.5rem; padding-top: 2.6rem;
  border-top: 1px solid var(--white);
}
.footer__social { position: relative; top: .3rem; display: flex; align-items: center; gap: 4rem; margin-right: 1.7rem; }
.footer__social img { height: 2rem; width: auto; }
.footer__social a { display: block; transition: opacity .2s; }
.footer__social a:hover { opacity: .7; }

/* ---------- Páginas legales ---------- */
.page-header { position: relative; height: 17.4rem; }
.page-header__inner { height: 100%; }
.legal { max-width: 120rem; padding: 6rem 6rem 0; font-size: 1.6rem; line-height: 2.8rem; }
.legal__title { font-size: 6.4rem; line-height: 9.6rem; font-weight: 600; }
.legal__lead { margin-top: 2.4rem; }
.legal h2 { margin-top: 6.4rem; font-size: 3.2rem; line-height: 4.6rem; font-weight: 600; color: var(--green); }
.legal h3 { margin-top: 4.8rem; font-size: 2.2rem; line-height: 3.4rem; font-weight: 600; }
.legal p { margin-top: 1.6rem; }
.legal strong { font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: .3rem; }
.legal__list { margin: 1.2rem 0 0; padding-left: 2.8rem; list-style: lower-alpha; }
.legal__list li { margin-top: .8rem; padding-left: .6rem; }
.legal__data { display: grid; grid-template-columns: 26rem 1fr; gap: 1.2rem 2.4rem; margin: 2.4rem 0 0; }
.legal__data dt { font-weight: 600; }
.legal__data dd { margin: 0; }
.legal__note { margin-top: 4rem !important; padding-top: 2.4rem; border-top: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .7); }
.legal + footer .footer { margin-top: 12rem; }

/* ---------- Tablet / móvil ---------- */
@media (max-width: 900px) {
  html { font-size: 10px; }
  br.d { display: none; }

  .hero { height: auto; min-height: 64rem; }
  .hero__inner { display: flex; flex-direction: column; padding: 2rem 2rem 6rem; }
  .nav { position: static; height: 6rem; padding: 0 2.4rem; border-radius: 3rem; }
  .nav__logo img { width: 19rem; }
  .nav__links { display: none; }
  .hero__title, .hero__sub, .hero__text { position: static; white-space: normal; }
  .hero__title strong { font-size: .9em; margin: 0; }
  .feature:nth-child(n), .feature:nth-child(4) .feature__title { transform: none; }
  .hero__title { margin-top: 7rem; font-size: clamp(4rem, 11.5vw, 7.2rem); line-height: 1.15; }
  .hero__sub { margin-top: 1.6rem; font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.4; }
  .hero__text { margin-top: auto; padding-top: 12rem; text-align: left; max-width: 46rem; }

  .why { padding: 4rem 2rem 0; }
  .why__title { padding: 0; font-size: clamp(3rem, 8vw, 4.8rem); line-height: 1.3; }
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 5.6rem 2.4rem; margin: 5.6rem 0 0; }
  .feature__icon { height: 5rem; }
  .feature__title { font-size: 2.2rem; line-height: 3.2rem; white-space: normal; }
  .feature__title::before { width: 1.6rem; height: 1.4rem; margin-right: .8rem; }
  .feature__text { min-height: 0; margin-top: 1.2rem; line-height: 2.6rem; }

  .about { grid-template-columns: 1.6fr 1fr; gap: 2rem; margin-top: 9rem; padding: 0 2rem; }
  .about__photo { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 750 / 710; margin: 0; }
  .about__copy { position: static; grid-column: 1 / -1; margin: 2rem 0; }
  .about__brand { padding: 0; font-size: 3.2rem; line-height: 1.5; }
  .about__title { margin-top: 1.2rem; font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: 1.3; white-space: normal; }
  .about__last { margin: 0; }
  .about__wide, .about__tall { grid-row: auto; grid-column: auto; height: 32rem; }

  .branches { margin-top: 9rem; padding: 0 2rem; }
  .branches__title { font-size: clamp(3rem, 8vw, 4.8rem); line-height: 1.3; }
    .branches__list { grid-template-columns: 1fr; gap: 3.2rem; margin-top: 4rem; }
  .branches__list h3 { font-size: 2.2rem; line-height: 3.2rem; }
  .branches__list h3::before { width: 1.6rem; height: 1.4rem; margin-right: .8rem; }

  .footer { margin: 8rem 2rem 2rem; padding: 3.2rem 2.4rem 2.4rem; }
  .footer__top { flex-direction: column; gap: 3.2rem; }
  .footer__logo { width: 22rem; }
  .footer__tagline { margin-top: 2.4rem; font-size: 2.4rem; line-height: 3.4rem; }
  .footer__links { gap: 1.6rem; margin: 0; text-align: left; }
  .footer__social { gap: 2.8rem; margin: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 2.4rem; }
  .footer__social { top: 0; }

  .page-header { height: auto; padding: 2rem; }
  .legal { padding: 2.4rem 2rem 0; line-height: 2.6rem; }
  .legal__title { font-size: clamp(3rem, 8vw, 4.8rem); line-height: 1.3; }
  .legal h2 { margin-top: 4.8rem; font-size: 2.4rem; line-height: 3.4rem; }
  .legal h3 { font-size: 1.9rem; line-height: 2.8rem; }
  .legal__data { grid-template-columns: 1fr; gap: .2rem; }
  .legal__data dd { margin-bottom: 1.4rem; }
  .legal + footer .footer { margin-top: 8rem; }
}

@media (max-width: 560px) {
  .why__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__wide, .about__tall { height: auto; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
