/* =========================================================
   Tesela Reformas · Estilos
   ========================================================= */

:root {
  --dark: #13221b;
  --darker: #101915;
  --green: #1f4636;
  --green-card: #2d5444;
  --green-accent: #2f6b4f;
  --green-soft: #e4eee8;
  --green-brand: #9fd3b5;
  --yellow: #f0b429;
  --yellow-hover: #e3a516;
  --bg: #f6f6f4;
  --white: #ffffff;
  --ink: #13221b;
  --ink-soft: #4b5550;
  --line: #d9dcd9;
  --input-border: #8a938e;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.section-title--narrow { max-width: 560px; }
.section-title--light { color: var(--white); }

.card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card-title--light { color: var(--white); }

.text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.text--light { color: #d4ddd8; }
.text--lg { font-size: 16px; max-width: 470px; }
.text--sm { font-size: 13px; }

.contact-list { display: grid; gap: 8px; margin-bottom: 18px; }
.contact-list__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.contact-list__link:hover { color: var(--white); }
.contact-list__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--yellow-hover); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--upper { text-transform: uppercase; letter-spacing: 0.04em; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; }

/* ---------- Pill / badge ---------- */
.pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid #5f8f77;
  border-radius: 999px;
  color: #e4eee8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 2px;
}
.logo__sq { width: 8px; height: 8px; border-radius: 2px; }
.logo__sq--y { background: var(--yellow); }
.logo__sq--g { background: #5e9a7c; }
.logo__sq--d { background: #2f6b4f; }
.logo__sq--l { background: var(--green-brand); }
.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.logo__accent { color: var(--green-brand); }

/* ---------- Cabecera ---------- */
.hero-wrap {
  background: linear-gradient(to bottom, var(--dark) calc(100% - 365px), var(--bg) calc(100% - 365px));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav { display: flex; gap: 24px; }
.nav__link {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 535px;
  gap: 48px;
  padding-top: 50px;
  padding-bottom: 38px;
}

.hero__text { padding-top: 16px; }

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero__lead {
  color: #d4ddd8;
  font-size: 18px;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 20px;
}

.hero__check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 26px;
}
.hero__check-icon { width: 19px; height: 19px; color: var(--yellow); flex-shrink: 0; }

/* ---------- Formularios ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 38px 38px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  align-self: start;
}

.form-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.label__optional { font-weight: 400; color: var(--ink-soft); }

.input {
  display: block;
  width: 100%;
  height: 45px;
  padding: 10px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.15);
}
.input--area { height: 84px; resize: vertical; }

/* Opciones tipo tarjeta (radio y checkbox) */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.option:hover { border-color: var(--input-border); }
.option:has(.option__input:checked) {
  border-color: var(--green-accent);
  background: #f2f7f4;
}
.option--full { grid-column: 1 / -1; min-height: 44px; }

.option__input,
.consent__input {
  appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--input-border);
  background: var(--white);
  cursor: pointer;
}
.option__input { border-radius: 50%; }
.option__input:checked { border: 5px solid var(--green-accent); }

.option__input--check,
.consent__input { border-radius: 3px; }
.option__input--check:checked,
.consent__input:checked {
  border: 1.5px solid var(--green-accent);
  background: var(--green-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 22px;
  cursor: pointer;
}
.consent__input { width: 18px; height: 18px; margin-top: 1px; }
.consent__link {
  color: var(--green-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent__link:hover { color: var(--ink); }

/* ---------- Ilustración ---------- */
.illustration {
  position: relative;
  height: 395px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #2f5d48;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 50px 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.illustration__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background-color: #dbcfbd;
  background-image:
    linear-gradient(#c6b8a4 1px, transparent 1px),
    linear-gradient(90deg, #c6b8a4 1px, transparent 1px);
  background-size: 160px 50px;
  border-top: 5px solid #c9bba6;
}

.illustration__window {
  position: absolute;
  left: 6%;
  bottom: 92px;
  width: 160px;
  height: 250px;
  border: 8px solid var(--white);
  border-radius: 80px 80px 0 0;
  background:
    linear-gradient(var(--white), var(--white)) center / 4px 100% no-repeat,
    linear-gradient(var(--white), var(--white)) center 55% / 100% 4px no-repeat,
    #cfe5ef;
}

.illustration__plant {
  position: absolute;
  left: 24.5%;
  bottom: 70px;
  width: 50px;
  height: 100px;
}
.illustration__leaf {
  position: absolute;
  bottom: 38px;
  width: 22px;
  height: 64px;
  background: #8fc4a5;
  border-radius: 100% 0;
}
.illustration__leaf--left { left: 4px; transform: rotate(-12deg); }
.illustration__leaf--right { right: 4px; background: #b9dfc8; transform: rotate(20deg) scaleX(-1); }
.illustration__pot {
  position: absolute;
  bottom: 0;
  left: 9px;
  width: 32px;
  height: 42px;
  background: #f0e7d8;
  border-radius: 2px;
}

.illustration__shadow {
  position: absolute;
  height: 16px;
  border-radius: 50%;
  background: rgba(70, 60, 45, 0.25);
}
.illustration__shadow--tub { left: 30%; width: 36%; bottom: 52px; }
.illustration__shadow--cabinet { left: 75%; width: 21%; bottom: 52px; }

.illustration__tub {
  position: absolute;
  left: 32.5%;
  bottom: 62px;
  width: 31.5%;
  height: 92px;
  background: #f7f6f1;
  border-radius: 10px 10px 80px 80px;
  border-top: 6px solid #e8e6df;
  box-shadow: inset 0 10px 0 #b9dbe6;
}

.illustration__faucet {
  position: absolute;
  left: 63.5%;
  bottom: 70px;
  width: 40px;
  height: 160px;
  border-top: 7px solid #d6a23a;
  border-right: 7px solid #d6a23a;
  border-radius: 0 14px 0 0;
}

.illustration__mirror {
  position: absolute;
  right: 9.5%;
  top: 12px;
  width: 120px;
  height: 168px;
  border: 5px solid #d6a23a;
  border-radius: 60px 60px 0 0;
  background:
    linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.85) 38%, rgba(255, 255, 255, 0.85) 42%, transparent 42%) center / 70% 60% no-repeat,
    #eaf4f7;
}

.illustration__tap {
  position: absolute;
  right: 14.5%;
  top: 134px;
  width: 30px;
  height: 36px;
  border-top: 6px solid #d6a23a;
  border-left: 6px solid #d6a23a;
  border-radius: 8px 0 0 0;
  transform: scaleX(-1);
}

.illustration__basin {
  position: absolute;
  right: 10.5%;
  top: 164px;
  z-index: 1;
  width: 95px;
  height: 26px;
  background: #f7f6f1;
  border-radius: 50px 50px 0 0;
}

.illustration__cabinet {
  position: absolute;
  right: 5%;
  bottom: 70px;
  width: 210px;
  height: 135px;
  background:
    linear-gradient(#f0e1c2, #f0e1c2) center 32% / 60px 3px no-repeat,
    linear-gradient(#f0e1c2, #f0e1c2) center 76% / 60px 3px no-repeat,
    linear-gradient(#93653b, #93653b) center 52% / 100% 2px no-repeat,
    #a9774a;
  border-top: 16px solid var(--white);
  border-radius: 4px 4px 2px 2px;
}

/* ---------- Secciones ---------- */
.section { padding-top: 96px; padding-bottom: 40px; }

.split {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 60px;
  align-items: start;
}
.split--center { align-items: center; }

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dark);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
}
.step__line { flex: 1; height: 1px; background: var(--line); }

/* Servicios */
.services { border-top: 1px solid var(--line); }
.service {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.service:hover { background: rgba(0, 0, 0, 0.02); }
.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--yellow);
}
.service__icon svg { width: 24px; height: 24px; }
.service__title {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.service__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.service__arrow svg { width: 16px; height: 16px; }
.service:hover .service__arrow { background: var(--yellow); border-color: var(--yellow); }

/* Ventajas */
.benefits {
  background: var(--green);
  padding: 82px 0 82px;
  margin-top: 56px;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.benefit {
  background: var(--green-card);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
}
.benefit__icon { width: 28px; height: 28px; color: var(--yellow); margin-bottom: 14px; }

/* Zona */
.zone-card {
  background: var(--green-soft);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.chip {
  padding: 7px 16px;
  border: 1.5px dashed #8a938e;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
}
.chip--active {
  border: 1.5px solid var(--dark);
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-right: 6px;
  border-right: 2px solid var(--green-accent);
  border-bottom: 2px solid var(--green-accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq__item[open] .faq__question::after { transform: rotate(-135deg) translateY(-3px); }
.faq__answer { padding: 0 40px 26px 0; margin-top: -8px; }

/* Profesionales */
.pro {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 54px;
  background: var(--dark);
  border-radius: 28px;
  padding: 58px 58px 58px;
}
.pro__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}

.pro-steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  max-width: 440px;
}
.pro-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
}
.pro-steps__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}


/* ---------- Footer ---------- */
.footer {
  background: var(--darker);
  margin-top: 90px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 22px;
}
.footer__brand .logo { margin-bottom: 18px; }
.footer__brand .text { max-width: 400px; }
.footer__contact { padding-left: 46px; }
.footer__contact .card-title { margin-bottom: 10px; }
.footer__contact .text { margin-bottom: 8px; max-width: 360px; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.footer__copy { font-size: 13px; color: #b8c2bd; }
.footer__links { display: flex; gap: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero,
  .pro { grid-template-columns: 1fr; }
  .hero-wrap { background: linear-gradient(to bottom, var(--dark) calc(100% - 300px), var(--bg) calc(100% - 300px)); }
  .illustration { height: 330px; }
  .illustration__window { width: 120px; height: 190px; }
  .illustration__cabinet { width: 160px; height: 110px; }
  .pro { padding: 40px 28px; }
}

@media (max-width: 760px) {
  .header .btn { display: none; }
  .hero { padding-top: 24px; }
  .form-card { padding: 26px 20px; }
  .form-row,
  .options,
  .steps,
  .benefits__grid,
  .split,
  .footer__top { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .section { padding-top: 64px; }
  .service__title { font-size: 17px; }
  .faq__question { font-size: 17px; }
  .illustration { height: 260px; }
  .illustration__window,
  .illustration__plant { display: none; }
  .illustration__tub { left: 6%; width: 52%; }
  .illustration__shadow--tub { left: 4%; width: 56%; }
  .illustration__faucet { left: 58%; }
  .illustration__mirror { width: 80px; height: 120px; top: 50px; }
  .illustration__tap,
  .illustration__basin { display: none; }
  .illustration__cabinet { width: 110px; height: 90px; }
  .illustration__shadow--cabinet { left: 62%; width: 34%; }
  .footer__contact { padding-left: 0; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; }
}
