/*
 * SENDY — Estilos de Landing SEO v3.0 (Chegue Identity)
 *
 * Sistema de diseño:
 *  - Fuente: Inter (Google Fonts — cargada en PHP vía wp_enqueue_style)
 *  - Paleta: Navy #0E2A5E · Blue #2563EB · Ink #0F172A · Slate #475569
 *  - Hero oscuro (navy) con formulario en card blanca
 *  - Cards: borde 0.5px, radio 12px, sombra sutil
 *  - Mobile-first. Sin dependencias externas. Sin !important.
 */

/* ─── Variables ────────────────────────────────────────────────────────────── */

:root {
  /* Colores de marca */
  --slp-navy:          #0E2A5E;
  --slp-navy-dark:     #091D42;
  --slp-blue:          #2563EB;
  --slp-blue-dark:     #1D4ED8;
  --slp-blue-light:    #EFF6FF;
  --slp-blue-mid:      #BFDBFE;
  --slp-green:         #059669;
  --slp-green-light:   #ECFDF5;

  /* Texto */
  --slp-ink:           #0F172A;
  --slp-text:          #0F172A;
  --slp-text-mid:      #475569;
  --slp-text-light:    #64748B;
  --slp-text-muted:    #94A3B8;

  /* Fondos */
  --slp-bg:            #FFFFFF;
  --slp-bg-alt:        #F8FAFC;
  --slp-bg-alt2:       #F1F5F9;

  /* Bordes */
  --slp-border:        #E2E8F0;
  --slp-border-focus:  #2563EB;

  /* Sombras */
  --slp-shadow-xs:     0 1px 2px rgba(15,23,42,.06);
  --slp-shadow-sm:     0 1px 4px rgba(15,23,42,.08);
  --slp-shadow-md:     0 4px 16px rgba(15,23,42,.10);
  --slp-shadow-blue:   0 4px 16px rgba(37,99,235,.30);

  /* Geometría */
  --slp-radius:        12px;
  --slp-radius-sm:     8px;
  --slp-radius-full:   100px;

  /* Tipografía */
  --slp-font:          'Inter', system-ui, -apple-system, sans-serif;

  /* Contenedor */
  --slp-max-w:         1080px;
  --slp-max-w-sm:      600px;
}

/* ─── Base ──────────────────────────────────────────────────────────────────── */

.slp-main {
  font-family: var(--slp-font);
  color: var(--slp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.slp-container {
  width: 100%;
  max-width: var(--slp-max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.slp-container--narrow {
  max-width: var(--slp-max-w-sm);
}

.slp-section {
  padding: 56px 0;
}

.slp-section--alt {
  background: var(--slp-bg-alt);
}

.slp-section--cta {
  background: var(--slp-navy);
  color: #fff;
}

.slp-section__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--slp-ink);
  margin: 0 0 28px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.slp-section__title--center {
  text-align: center;
}

.slp-section--cta .slp-section__title,
.slp-cta-mid__title {
  color: #fff;
}

/* ─── Breadcrumb bar ────────────────────────────────────────────────────────── */

.slp-breadcrumb-bar {
  background: var(--slp-bg);
  border-bottom: 1px solid var(--slp-border);
  padding: 10px 0;
}

.slp-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--slp-text-muted);
}

.slp-breadcrumbs__list a {
  color: var(--slp-blue);
  text-decoration: none;
  font-weight: 500;
}

.slp-breadcrumbs__list a:hover {
  text-decoration: underline;
}

/* ─── Sticky mobile CTA ──────────────────────────────────────────────────────
   Aparece en mobile cuando el formulario del hero sale del viewport.
   ─────────────────────────────────────────────────────────────────────────── */

.slp-sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .slp-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 16px 20px;
    background: linear-gradient(to top, rgba(255,255,255,1) 75%, rgba(255,255,255,0));
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .slp-sticky-cta--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .slp-sticky-cta__btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--slp-blue);
    color: #fff;
    border: none;
    border-radius: var(--slp-radius-sm);
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--slp-shadow-blue);
    font-family: var(--slp-font);
    letter-spacing: -0.1px;
  }

  .slp-sticky-cta__btn:active {
    background: var(--slp-blue-dark);
  }
}

/* ─── HERO ───────────────────────────────────────────────────────────────────
   Fondo navy oscuro para transmitir autoridad y confianza desde el primer
   punto de contacto. El formulario aparece en una card blanca sobre el fondo.
   ─────────────────────────────────────────────────────────────────────────── */

.slp-hero {
  padding: 40px 0 48px;
  background: var(--slp-navy);
  border-bottom: none;
}

.slp-hero__inner {
  display: block;
}

/* Eyebrow: zona + ciudad en texto pequeño sobre el H1 */
.slp-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93C5FD;
  margin: 0 0 10px;
}

.slp-hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.slp-hero__title em {
  font-style: normal;
  color: #93C5FD;
}

.slp-hero__subtitle {
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  color: #CBD5E1;
  margin: 0 0 28px;
  max-width: 520px;
  line-height: 1.65;
}

/* Card blanca que contiene el formulario */
.slp-hero__form-card {
  background: #fff;
  border-radius: var(--slp-radius);
  padding: 24px;
  max-width: 440px;
  box-shadow: var(--slp-shadow-md);
}

.slp-hero__form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slp-ink);
  margin: 0 0 14px;
}

.slp-hero__form {
  max-width: 480px;
}

/* Para compatibilidad con templates que no usen form-card */
.slp-hero .sendy-form-wrapper {
  max-width: 440px;
}

.slp-hero__image {
  display: none;
}

/* Hero con imagen: layout 2 columnas en desktop */
@media (min-width: 900px) {
  .slp-hero--with-image .slp-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .slp-hero--with-image .slp-hero__image {
    display: block;
  }

  .slp-hero--with-image .slp-hero__image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--slp-radius);
    box-shadow: var(--slp-shadow-md);
  }
}

@media (min-width: 900px) {
  .slp-hero {
    padding: 64px 0 72px;
  }
}

/* ─── Formulario de captura de lead ──────────────────────────────────────────
   Styles para .sendy-form-wrapper y sus elementos internos.
   El PHP renderiza el formulario dentro de .slp-hero__form-card o directamente.
   ─────────────────────────────────────────────────────────────────────────── */

.sendy-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sendy-form__field {
  position: relative;
}

.sendy-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slp-border);
  border-radius: var(--slp-radius-sm);
  font-size: 0.9375rem;
  font-family: var(--slp-font);
  color: var(--slp-ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
}

.sendy-form__input:focus {
  border-color: var(--slp-border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.sendy-form__input::placeholder {
  color: var(--slp-text-muted);
}

.sendy-form__submit {
  width: 100%;
  padding: 13px 20px;
  background: var(--slp-blue);
  color: #fff;
  border: none;
  border-radius: var(--slp-radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--slp-font);
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: background 150ms ease, transform 100ms ease;
}

.sendy-form__submit:hover {
  background: var(--slp-blue-dark);
}

.sendy-form__submit:active {
  transform: scale(0.98);
  background: var(--slp-blue-dark);
}

.sendy-form__disclaimer {
  font-size: 0.75rem;
  color: var(--slp-text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.sendy-form__success {
  padding: 12px 16px;
  background: var(--slp-green-light);
  border: 1px solid #6EE7B7;
  border-radius: var(--slp-radius-sm);
  font-size: 0.9rem;
  color: #065F46;
  font-weight: 500;
}

.sendy-form__error {
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--slp-radius-sm);
  font-size: 0.875rem;
  color: #991B1B;
}

/* ─── Garantías ──────────────────────────────────────────────────────────────
   4 cards de trust signals debajo del hero.
   ─────────────────────────────────────────────────────────────────────────── */

.slp-guarantees__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.slp-guarantee {
  background: #fff;
  border: 0.5px solid var(--slp-border);
  border-radius: var(--slp-radius);
  padding: 20px 22px;
  box-shadow: var(--slp-shadow-xs);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.slp-guarantee:hover {
  box-shadow: var(--slp-shadow-sm);
  transform: translateY(-1px);
}

.slp-guarantee__icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--slp-radius-sm);
  background: var(--slp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1;
}

/* Compatibilidad con markup que use .slp-guarantee__icon directo */
.slp-guarantee__icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  line-height: 1;
}

.slp-guarantee__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slp-ink);
  margin: 0 0 6px;
}

.slp-guarantee__desc {
  font-size: 0.875rem;
  color: var(--slp-text-mid);
  margin: 0;
  line-height: 1.6;
}

.slp-guarantee__link {
  display: inline-block;
  margin-top: 6px;
  color: var(--slp-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.slp-guarantee__link:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .slp-guarantees__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .slp-guarantees__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Servicios ──────────────────────────────────────────────────────────────
   6 cards de servicios. En mobile las últimas 2 están ocultas tras un botón.
   ─────────────────────────────────────────────────────────────────────────── */

.slp-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 767px) {
  .slp-service-card--extra {
    display: none;
  }
  .slp-service-card--extra.slp-service-card--visible {
    display: block;
  }
}

.slp-services__more {
  margin-top: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .slp-service-card--extra {
    display: block;
  }
  .slp-services__more {
    display: none;
  }
}

.slp-services__more-btn {
  background: transparent;
  border: 1.5px solid var(--slp-blue);
  color: var(--slp-blue);
  padding: 9px 22px;
  border-radius: var(--slp-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--slp-font);
  transition: background 150ms ease, color 150ms ease;
}

.slp-services__more-btn:hover {
  background: var(--slp-blue);
  color: #fff;
}

.slp-service-card {
  background: #fff;
  border: 0.5px solid var(--slp-border);
  border-radius: var(--slp-radius);
  padding: 20px;
  box-shadow: var(--slp-shadow-xs);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.slp-service-card:hover {
  box-shadow: var(--slp-shadow-md);
  transform: translateY(-2px);
}

.slp-service-card__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--slp-radius-sm);
  background: var(--slp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.slp-service-card__icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.slp-service-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slp-ink);
  margin: 0 0 6px;
}

.slp-service-card__desc {
  font-size: 0.875rem;
  color: var(--slp-text-light);
  margin: 0;
  line-height: 1.55;
}

@media (min-width: 600px) {
  .slp-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .slp-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Pasos / Cómo funciona ──────────────────────────────────────────────── */

.slp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.slp-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.slp-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--slp-navy);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.slp-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slp-ink);
  margin: 0 0 5px;
}

.slp-step__desc {
  font-size: 0.9rem;
  color: var(--slp-text-mid);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 600px) {
  .slp-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .slp-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ─── Info del barrio ────────────────────────────────────────────────────── */

.slp-barrio__content {
  max-width: 720px;
}

.slp-barrio__desc,
.slp-barrio__zones,
.slp-barrio__coverage {
  font-size: 1rem;
  color: var(--slp-text-mid);
  line-height: 1.75;
  margin: 0 0 14px;
}

.slp-barrio__authority {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--slp-blue-light);
  border-left: 3px solid var(--slp-blue);
  border-radius: 0 var(--slp-radius-sm) var(--slp-radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--slp-text-mid);
  line-height: 1.65;
}

.slp-barrio__authority-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--slp-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.slp-barrio__authority-link:hover {
  text-decoration: underline;
}

/* ─── CTA mid-page ───────────────────────────────────────────────────────── */

.slp-cta-mid {
  text-align: center;
}

.slp-cta-mid__title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.slp-cta-mid__text {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 28px;
  line-height: 1.65;
}

.slp-section--cta .sendy-form-wrapper {
  margin: 0 auto;
  text-align: left;
}

/* Formulario sobre fondo navy: inputs con fondo muy claro */
.slp-section--cta .sendy-form__input {
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.2);
}

.slp-section--cta .sendy-form__input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}

/* ─── FAQs — <details>/<summary> ────────────────────────────────────────────
   Accordion nativo sin JS. Google indexa el contenido incluso cerrado.
   ─────────────────────────────────────────────────────────────────────────── */

.slp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slp-faq-item {
  border: 0.5px solid var(--slp-border);
  border-radius: var(--slp-radius-sm);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 150ms ease;
}

.slp-faq-item[open] {
  box-shadow: var(--slp-shadow-sm);
}

.slp-faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slp-ink);
  user-select: none;
  -webkit-user-select: none;
}

.slp-faq-item summary::-webkit-details-marker {
  display: none;
}

.slp-faq-chevron {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394A3B8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 200ms ease;
}

.slp-faq-item[open] .slp-faq-chevron {
  transform: rotate(180deg);
}

.slp-faq-item[open] summary {
  color: var(--slp-blue);
  border-bottom: 0.5px solid var(--slp-border);
}

.slp-faq-item__a {
  padding: 14px 20px 18px;
  font-size: 0.9rem;
  color: var(--slp-text-mid);
  line-height: 1.7;
}

/* ─── Tercer CTA (liviano) ───────────────────────────────────────────────── */

.slp-cta-final {
  border-top: 1px solid var(--slp-border);
}

.slp-cta-final__inner {
  text-align: center;
}

.slp-cta-final__title {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  color: var(--slp-ink);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.slp-cta-final__text {
  font-size: 1rem;
  color: var(--slp-text-mid);
  margin: 0 0 28px;
  line-height: 1.65;
}

/* ─── Botones ────────────────────────────────────────────────────────────── */

.slp-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--slp-radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--slp-font);
  letter-spacing: -0.1px;
  transition: background 150ms ease, transform 100ms ease;
  text-decoration: none;
}

.slp-btn--primary {
  background: var(--slp-blue);
  color: #fff;
}

.slp-btn--primary:hover {
  background: var(--slp-b