/* ==========================================================================
   D'Martín Decoración — pages.css
   Bloques específicos de página (profesionales, servicios, contacto, legal)
   ========================================================================== */

/* --- Bloque "Profesionales" en portada ----------------------------------- */
.pro-banner {
  position: relative;
  overflow: hidden;
  background: var(--c-ink-soft);
  color: rgba(250, 246, 240, .82);
  isolation: isolate;
}

.pro-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 420px at 82% 0%, rgba(184, 130, 60, .30), transparent 60%),
    radial-gradient(560px 340px at 0% 100%, rgba(184, 130, 60, .14), transparent 58%);
}

.pro-banner__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .pro-banner__grid { grid-template-columns: 1fr; }
}

.pro-banner h2 { color: var(--c-white); }

.pro-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.pro-perk {
  padding: var(--sp-4);
  background: rgba(250, 246, 240, .06);
  border: 1px solid rgba(250, 246, 240, .12);
  border-radius: var(--r-md);
}

.pro-perk__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-oak-light);
  line-height: 1.1;
}

.pro-perk__label { margin-top: var(--sp-2); font-size: .86rem; color: rgba(250, 246, 240, .68); }

/* Tarjeta lateral de alta profesional */
.pro-card {
  padding: var(--sp-6);
  background: var(--c-cream);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  color: var(--c-ink);
}

.pro-card h3 { margin-bottom: var(--sp-3); }
.pro-card p { font-size: .94rem; color: var(--c-muted); }
.pro-card .checklist { margin-block: var(--sp-5); font-size: .93rem; }

/* --- Niveles de descuento profesional ------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.tier:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

.tier--featured {
  border-color: var(--c-esmeralda);
  box-shadow: 0 10px 34px rgba(14, 122, 92, .18);
}

.tier--featured::before {
  content: "Más solicitado";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: .3rem .9rem;
  border-radius: var(--r-full);
  background: var(--c-esmeralda);
  color: var(--c-white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.tier__discount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-oak);
  letter-spacing: -.03em;
}

.tier__discount small {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0;
}

.tier__req {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  font-size: .89rem;
  color: var(--c-muted);
}

.tier .checklist { font-size: .9rem; flex: 1; }
.tier .checklist svg { width: 18px; height: 18px; }

/* --- Detalle de servicio ------------------------------------------------- */
.service-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--c-line);
}

.service-block:last-child { border-bottom: 0; }
.service-block:nth-child(even) .service-block__media { order: -1; }

@media (max-width: 780px) {
  .service-block:nth-child(even) .service-block__media { order: 0; }
}

.service-block__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}

.service-block__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.service-block h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: var(--sp-4); }
.service-block p { color: var(--c-muted); }
.service-block .checklist { margin-top: var(--sp-5); font-size: .95rem; }

/* --- Tipos de suelo ------------------------------------------------------ */
.floor-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.floor-type {
  position: relative;
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  border-left: 4px solid var(--c-oak);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.floor-type:hover { transform: translateX(4px); box-shadow: var(--sh-sm); }
.floor-type h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.floor-type p { font-size: .9rem; color: var(--c-muted); }

/* Alternamos roble y esmeralda para dar ritmo a la rejilla */
.floor-type:nth-child(even) { border-left-color: var(--c-esmeralda); }
.floor-type:nth-child(even) .floor-type__meta { color: var(--c-esmeralda-dark); }

.floor-type__meta {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-oak-dark);
}

/* --- Contacto ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info { display: grid; gap: var(--sp-5); }

.info-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--c-sand);
  color: var(--c-oak-dark);
}

.info-card__icon svg { width: 21px; height: 21px; }
.info-card h3 { font-size: 1rem; margin-bottom: var(--sp-1); }
.info-card p, .info-card a { font-size: .93rem; color: var(--c-muted); line-height: 1.6; }
.info-card a:hover { color: var(--c-oak-dark); }

.hours { display: grid; gap: var(--sp-2); font-size: .92rem; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px dashed var(--c-line);
  color: var(--c-muted);
}

.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours strong { color: var(--c-ink); font-weight: 600; }

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-sand);
  min-height: 320px;
}

.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* --- Zonas de trabajo ---------------------------------------------------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.zone {
  padding: .45rem 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: .88rem;
  color: var(--c-muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.zone:hover { border-color: var(--c-esmeralda); color: var(--c-esmeralda-dark); }

/* --- Páginas legales ----------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.12rem; margin-top: var(--sp-5); margin-bottom: var(--sp-3); }
.legal p { margin-bottom: var(--sp-4); color: var(--c-muted); line-height: 1.75; }

.legal ul {
  margin-bottom: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
  color: var(--c-muted);
}

.legal ul li { display: flex; gap: var(--sp-3); line-height: 1.7; }

.legal ul li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--c-oak);
}

.legal a { color: var(--c-oak-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal .table-wrap { margin-bottom: var(--sp-5); }

.legal__updated {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-6);
  background: var(--c-sand);
  border-radius: var(--r-sm);
  font-size: .85rem;
  color: var(--c-muted);
}

/* --- Aviso de cookies ---------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 150;
  display: none;
  max-width: 440px;
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

.cookie-bar.is-visible { display: block; }
.cookie-bar h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.cookie-bar p { font-size: .88rem; color: var(--c-muted); line-height: 1.6; }
.cookie-bar a { color: var(--c-oak-dark); text-decoration: underline; }

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.cookie-bar__actions .btn { flex: 1; min-width: 130px; }

@media (max-width: 560px) {
  .cookie-bar { right: clamp(1rem, 3vw, 1.75rem); max-width: none; }
  .whatsapp-fab { bottom: auto; }
}

/* --- Página 404 ---------------------------------------------------------- */
.not-found {
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--sp-5);
  padding-block: clamp(4rem, 12vw, 8rem);
}

.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 600;
  line-height: .9;
  color: var(--c-oak);
  opacity: .35;
  letter-spacing: -.04em;
}
