/*
Theme Name: SENDA
Theme URI: https://senda.pe/
Author: SENDA Inmobiliaria
Description: Landing de preventa (una sola vista) para SENDA Inmobiliaria (ACF + WPML).
Version: 2.0.0
Text Domain: senda
*/

@import "prose.css";

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --senda-color-bg: #ffffff;
  --senda-color-fg: #1b1b2b;
  --senda-color-muted: #f4f4f6;
  --senda-color-muted-fg: #6b7280;
  --senda-color-navy: #16233a;

  --senda-green: #22c55e;
  --senda-green-dark: #16a34a;
  --senda-green-bright: #35e07f;

  --senda-violet: #4c2c8a;
  --senda-violet-deep: #1c1440;

  --senda-color-primary: #22c55e; /* acento/CTA (verde) */
  --senda-color-primary-contrast: #ffffff;

  --senda-color-border: #e5e7eb;

  --senda-radius-sm: 0.5rem;
  --senda-radius-md: 0.75rem;
  --senda-radius-lg: 1.25rem;
  --senda-shadow-card: 0 1.5rem 3.5rem rgba(10, 6, 30, 0.35);

  --senda-container: 78rem;

  --senda-font-body:
    "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--senda-font-body);
  color: var(--senda-color-fg);
  background: var(--senda-violet-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.senda-container {
  width: 100%;
  max-width: var(--senda-container);
  margin: 0 auto;
  padding: 0 1.75rem;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.senda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.6rem;
  border: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.senda-btn:active {
  transform: translateY(1px);
}
.senda-btn--block {
  width: 100%;
}

.senda-btn--primary {
  background: var(--senda-green);
  color: #062712;
}
.senda-btn--primary:hover {
  background: var(--senda-green-dark);
  color: #fff;
}

.senda-btn--ghost {
  background: transparent;
  border: 1px solid var(--senda-color-border);
  color: var(--senda-color-fg);
}
.senda-btn--ghost:hover {
  background: var(--senda-color-muted);
}

/* ==========================================================================
   Landing (una sola vista)
   ========================================================================== */

.senda-lp {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      90% 70% at 55% 0%,
      rgba(124, 58, 237, 0.55),
      transparent 60%
    ),
    linear-gradient(160deg, #2a1c60 0%, #241a52 40%, #160f36 100%);
}

.senda-lp__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.senda-lp__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.senda-lp__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(24, 16, 56, 0.94) 0%,
    rgba(24, 16, 56, 0.55) 32%,
    rgba(24, 16, 56, 0.15) 52%,
    rgba(24, 16, 56, 0.65) 100%
  );
}

.senda-lp__waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    125deg,
    transparent 0 26px,
    rgba(255, 255, 255, 0.03) 26px 27px
  );
}

.senda-lp__inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Solo vertical: el padding horizontal lo aporta .senda-container. */
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
}

/* Topbar: logo + whatsapp */
.senda-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.senda-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.senda-logo__mark {
  width: 34px;
  height: 34px;
  color: var(--senda-green);
  flex: 0 0 auto;
}
.senda-logo__mark svg {
  width: 34px;
  height: 34px;
}
.senda-logo__img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.senda-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}
.senda-whatsapp__icon {
  width: 26px;
  height: 26px;
  color: var(--senda-green);
  flex: 0 0 auto;
}
.senda-whatsapp__icon svg {
  width: 26px;
  height: 26px;
}

/* Layout de dos columnas */
.senda-lp__grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .senda-lp__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.senda-lp__left,
.senda-lp__right {
  display: flex;
  flex-direction: column;
}

.senda-lp__right {
  align-items: stretch;
}

/* Sin contador: el bloque de texto queda centrado verticalmente. */
/* .senda-perks usa margin-top:auto, así que el espacio libre se reparte con el pretítulo. */
@media (min-width: 900px) {
  .senda-lp__left:not(:has(.senda-count)) .senda-lp__pretitle {
    margin-top: auto;
  }
}

@media (min-width: 900px) {
  .senda-lp__right {
    max-width: 26rem;
    margin-left: auto;
    width: 100%;
  }
}

/* ==========================================================================
   Countdown (flip / días)
   ========================================================================== */

.senda-count {
  margin-bottom: 1.75rem;
}

.senda-count__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.65rem;
}

.senda-count__cards {
  display: inline-flex;
  gap: 0.6rem;
}

.senda-count__card {
  position: relative;
  min-width: 118px;
  padding: 0.75rem 0.5rem 0.9rem;
  border-radius: 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(58, 34, 110, 0.9),
    rgba(30, 18, 66, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1rem 2rem rgba(0, 0, 0, 0.35);
  text-align: center;
  color: var(--senda-green-bright);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.senda-count__card::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  transform: translateY(-1px);
  background: rgba(15, 10, 35, 0.75);
}

.senda-count__unit {
  display: block;
  margin-top: 0.75rem;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--senda-green-bright);
  line-height: 1;
}

.senda-count__sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
  .senda-count__card {
    min-width: 84px;
    font-size: 4.5rem;
  }
  .senda-count__unit {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Titular ubicación
   ========================================================================== */

.senda-lp__pretitle {
  margin: 0.5rem 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.senda-lp__title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: uppercase;
}

.senda-lp__rule {
  display: block;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: var(--senda-green);
  margin: 1.1rem 0 1.1rem;
}

.senda-lp__desc {
  margin: 0;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Beneficios */
.senda-perks {
  list-style: none;
  margin: auto 0 0;
  padding: 2.25rem 0 0;
  display: flex;
  gap: 2.75rem;
  flex-wrap: wrap;
}

.senda-perk {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 8rem;
}

.senda-perk__icon {
  width: 30px;
  height: 30px;
  color: var(--senda-green);
}
.senda-perk__icon svg {
  width: 30px;
  height: 30px;
}

.senda-perk__label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

/* ==========================================================================
   Tarjeta de formulario
   ========================================================================== */

.senda-card {
  background: #f7f7f5;
  color: var(--senda-color-navy);
  border-radius: var(--senda-radius-lg);
  box-shadow: var(--senda-shadow-card);
  padding: 2.25rem;
}

@media (max-width: 560px) {
  .senda-card {
    padding: 1.5rem;
  }
}

.senda-card__title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--senda-color-navy);
}
.senda-card__title strong {
  font-weight: 700;
}

.senda-card__rule {
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: var(--senda-green);
  margin: 1rem 0 1.75rem;
}

.senda-card__desc {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #556072;
}

.senda-form {
  display: grid;
  gap: 0.85rem;
}

.senda-inputicon {
  position: relative;
}

.senda-inputicon__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #98a1b0;
  pointer-events: none;
}
.senda-inputicon__icon svg {
  width: 18px;
  height: 18px;
}

.senda-field__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #dfe1e6;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--senda-color-navy);
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.senda-inputicon .senda-field__input {
  padding-left: 2.75rem;
}
.senda-field__input::placeholder {
  color: #98a1b0;
}
.senda-field__input:focus {
  border-color: var(--senda-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.senda-form__submit {
  margin-top: 0.35rem;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
}

.senda-form__submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.senda-form__feedback {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--senda-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.senda-form__feedback.is-success {
  background: rgba(34, 197, 94, 0.14);
  color: var(--senda-green-dark);
}
.senda-form__feedback.is-error {
  background: rgba(220, 80, 80, 0.14);
  color: #b91c1c;
}

.senda-card__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: #7a8494;
}
.senda-card__note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

/* Ubicación (bajo la tarjeta) */
.senda-place {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: auto 0 0;
  padding-top: 2rem;
  color: #fff;
}

.senda-place__icon {
  width: 26px;
  height: 26px;
  color: var(--senda-green);
  flex: 0 0 auto;
  margin-top: 0.1rem;
}
.senda-place__icon svg {
  width: 26px;
  height: 26px;
}

.senda-place__text {
  font-size: 0.98rem;
  line-height: 1.4;
}

.senda-place__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  color: var(--senda-green);
  font-weight: 600;
  font-size: 0.92rem;
}
.senda-place__link:hover {
  color: var(--senda-green-bright);
}

/* Alertas del formulario */
.senda-alert {
  border-radius: var(--senda-radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  background: rgba(34, 197, 94, 0.14);
  color: var(--senda-green-dark);
}
.senda-alert--error {
  background: rgba(220, 80, 80, 0.14);
  color: #b91c1c;
}

/* ==========================================================================
   Nav sólido (páginas interiores) + páginas de contenido
   ========================================================================== */

.senda-nav {
  background: linear-gradient(115deg, #3a2560 0%, #4c2c8a 100%);
}

.senda-nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.senda-page {
  background: #fff;
  color: var(--senda-color-fg);
}

.senda-page--policies,
.senda-page--reclamaciones {
  padding: 2.5rem 0 4rem;
}

.senda-page__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--senda-color-border);
}

.senda-page__title {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--senda-color-navy);
  letter-spacing: -0.02em;
}

/* Campos compartidos (usados también por libro.css) */
.senda-field {
  display: grid;
  gap: 0.4rem;
}
.senda-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.senda-field__req {
  color: var(--senda-green-dark);
}
.senda-field__select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid var(--senda-color-border);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--senda-color-fg);
  outline: none;
}
.senda-field__select:focus {
  border-color: var(--senda-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

/* ==========================================================================
   Elementos solo-móvil (ocultos en desktop)
   ========================================================================== */

.senda-mcta,
.senda-mhead {
  display: none;
}

/* ==========================================================================
   Responsive / Móvil
   ========================================================================== */

@media (max-width: 899px) {
  /* Reflujo a una sola columna: los hijos de las columnas fluyen en el grid,
     conservando el orden del DOM: contador → CTA → título → beneficios →
     tarjeta → ubicación. */
  .senda-lp__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .senda-lp__left,
  .senda-lp__right {
    display: contents;
  }

  /* Bloque hero centrado */
  .senda-count {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .senda-count__label {
    letter-spacing: 0.36em;
  }
  .senda-count__cards {
    justify-content: center;
    gap: 0;
  }
  .senda-count__card {
    min-width: 0;
    padding: 0 0.02em;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: clamp(6rem, 32vw, 10rem);
  }
  .senda-count__card::before {
    display: none;
  }
  .senda-count__unit {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .senda-lp__pretitle,
  .senda-lp__title {
    text-align: center;
  }
  .senda-lp__rule {
    display: none;
  }
  .senda-lp__desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.25rem;
  }

  /* CTA (desplaza al formulario) y título del formulario, ambos móviles */
  .senda-mcta {
    display: flex;
    margin: 0.75rem 0 0.25rem;
  }

  .senda-mhead {
    display: block;
    margin-top: 0.5rem;
  }
  .senda-mhead__title {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
  }
  .senda-mhead__title strong {
    font-weight: 700;
  }
  .senda-mhead__rule {
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 999px;
    background: var(--senda-green);
    margin: 1rem 0 0.25rem;
  }

  /* Beneficios: icono + texto en fila, apilados */
  .senda-perks {
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 1rem;
  }
  .senda-perk {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    max-width: none;
  }
  .senda-perk__label {
    font-size: 1rem;
  }

  /* Tarjeta: el encabezado se muestra arriba (.senda-mhead) */
  .senda-card__head {
    display: none;
  }
  .senda-card {
    padding: 1.5rem;
  }

  /* Ubicación como tarjeta morada */
  .senda-place {
    margin: 0;
    padding: 1.25rem;
    background: rgba(92, 62, 160, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--senda-radius-lg);
    align-items: center;
  }

  /* WhatsApp: solo icono dentro de un círculo */
  .senda-whatsapp span:last-child {
    display: none;
  }
  .senda-whatsapp__icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .senda-whatsapp__icon svg {
    width: 20px;
    height: 20px;
  }

  /* Fondo: mostrar el edificio en la parte inferior */
  .senda-lp__bg img {
    object-position: center bottom;
  }
}
