@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6em;
  padding: 0;
  margin: 0;
}

textarea {
  resize: none;
}

/*index page*/
/*Element - cards*/
.glass-card-gradient {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 3rem 3rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Tarjetas de proyectos: al pasar el mouse, el panel inferior crece hacia
   arriba y muestra área, cuotas y el botón.
   El panel tiene backdrop-filter, y Safari no lo repinta bien cuando se mueve
   con transform (se queda arriba o no sube). Por eso el panel no se mueve:
   sigue pegado abajo y solo cambia su alto, abriendo la fila de detalles de
   0fr a 1fr. */
.project-card__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms ease;
}

.project-card__details > * {
  min-height: 0;
  overflow: hidden;
}

.project-card:hover .project-card__details {
  grid-template-rows: 1fr;
}

/* Con teclado también se abre; un clic con el mouse no lo deja abierto. */
.project-card:has(:focus-visible) .project-card__details {
  grid-template-rows: 1fr;
}

@media (prefers-reduced-motion: reduce) {
  .project-card__details {
    transition: none;
  }
}

.bg-abstract-gradient:hover {
  transform: translateY(-40px);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.25);
}

/* Animation body */
.header-transition {
  transition: all 0.3s ease-in-out;
}

.scrolled {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.scrolled .mobile-navbar-shell {
  background: rgba(3, 25, 77, 0.72);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-overlay {
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0) 60%);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  transition: all 9.0s;
}

.bg-abstract-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(1, 51, 162, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    #F8FAFC;
}

.dark .bg-abstract-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(1, 51, 162, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.2) 0%, transparent 40%),
    #0F172A;
}

.select-expand-more {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}


@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

}

.bounce-limit {
  animation: bounce 0.9s ease-in-out 3;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.mobile-navbar-shell,
.mobile-menu-panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/*Menu for mobile*/
#mobile-menu-panel {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#mobile-menu-panel.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu-panel.hidden {
  opacity: 0;
  transform: translateY(-8px);
}

@media (min-width: 1024px) {
  #mobile-menu-panel {
    display: none !important;
  }
}

/*Details style*/
body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/*news page*/
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.scrim-gradient {
  background: linear-gradient(to top, rgba(0, 33, 112, 0.4) 0%, transparent 100%);
}

.editorial-shadow {
  box-shadow: 0 32px 64px -12px rgba(0, 33, 112, 0.06);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-animate {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-container {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/*Page new*/
/*fondo oscuro sin tapar la imagen (overlay elegante)*/
.card-scrim {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7),
      /* oscuro abajo (para texto) */
      rgba(0, 0, 0, 0.3),
      /* medio */
      rgba(0, 0, 0, 0.1)
      /* casi transparente arriba */
    );
  transition: background 0.4s ease;
}

/* Hover más intenso (pro) */
.group:hover .card-scrim {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.2));
}



/*Boton flotante de WhatsApp*/
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/*Botones flotantes con efecto vidrio esmerilado*/
/* Tinte navy al 60%: el texto blanco mantiene contraste AA incluso sobre fondo blanco. */
.floating-glass {
  background-color: rgba(3, 25, 77, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.floating-glass:hover {
  background-color: rgba(3, 25, 77, 0.75);
  border-color: rgba(255, 255, 255, 0.45);
}

/* El azul por defecto de Leaflet no llega a 4.5:1 sobre el mapa satelital. */
[data-map-shell] .leaflet-control-attribution a {
  color: #0133a2;
}

@media (prefers-reduced-transparency: reduce) {
  .floating-glass {
    background-color: #03194d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.step-transition {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  visibility: hidden;
}

.step-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  visibility: visible;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

input:focus {
  outline: none;
  border-color: #002170;
  box-shadow: 0 0 0 2px rgba(0, 33, 112, 0.1);
}

/* Carrito lateral tipo Sheet */
.cart-page-content {
  min-height: 100vh;
  width: 100%;
}

body.cart-sheet-open {
  overflow: hidden;
}

body.cart-sheet-open [data-cart-backdrop] {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  [data-lot-cart-panel],
  [data-cart-backdrop] {
    transition-duration: 1ms !important;
  }
}


/*Terminos y condiciones*/
/* Section Numbering */
.section-number {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-color: #f2f4f7;
  /* surface-container-low */
  color: #002170;
  /* primary */
  border-radius: 50%;
  text-align: center;
  line-height: 2rem;
  font-family: 'Noto Serif', serif;
  font-weight: 700;
  margin-right: 0.75rem;
  vertical-align: middle;
}

/* Editorial layout helpers */
.editorial-content p {
  margin-bottom: 1.5rem;
  color: #444653;
  /* on-surface-variant */
  font-size: 1.125rem;
  line-height: 1.8;
}

.editorial-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #002170;
  /* primary */
}

.editorial-content ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.editorial-content li {
  position: relative;
  margin-bottom: 0.5rem;
  color: #444653;
  /* on-surface-variant */
  font-size: 1.125rem;
  line-height: 1.8;
}

.editorial-content li::before {
  content: "—";
  position: absolute;
  left: -1.5rem;
  color: #002170;
  /* primary */
}

/* Ambient Shadow for sticky nav */
.ambient-shadow {
  box-shadow: 0 0 32px rgba(25, 28, 30, 0.06);
}
/* ==========================================================================
   Flujo de contacto del inicio: comprar, ofrecer terreno y trabajar.
   Cada opción define su color con data-lead-accent y lo heredan su tarjeta,
   su formulario y sus controles. Los selectores parten de .lead-section para
   ganar a los estilos base que Tailwind (CDN) inyecta después de este archivo.
   ========================================================================== */
.lead-section {
  --lead-ink: #0f172a;
  --lead-body: #475569;
  --lead-line: #e2e8f0;
  --lead-field-line: #8793a8;
  --lead-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 10;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  font-family: 'Inter', sans-serif;
}

/* --accent: texto y bordes sobre blanco (AA). --accent-fill: superficies. */
.lead-section [data-lead-accent="buy"] {
  --accent: #0133a2;
  --accent-display: #0133a2;
  --accent-fill: #0133a2;
  --accent-on-fill: #ffffff;
  --accent-deep: #03194d;
  --accent-deep-lit: #0a2f8c;
  --accent-glow: #a9c1ff;
  --accent-soft: #e9effb;
  --accent-ring: rgba(1, 51, 162, 0.22);
}

.lead-section [data-lead-accent="sell"] {
  --accent: #a65a00;
  --accent-display: #c97700;
  --accent-fill: #f5a623;
  --accent-on-fill: #2b1a00;
  --accent-deep: #55300a;
  --accent-deep-lit: #7a480d;
  --accent-glow: #ffc966;
  --accent-soft: #fef3dc;
  --accent-ring: rgba(201, 119, 0, 0.26);
}

.lead-section [data-lead-accent="work"] {
  --accent: #3f7a12;
  --accent-display: #4f9a12;
  --accent-fill: #99d535;
  --accent-on-fill: #16300a;
  --accent-deep: #1f4208;
  --accent-deep-lit: #376b0f;
  --accent-glow: #bdea6c;
  --accent-soft: #eef8dd;
  --accent-ring: rgba(79, 154, 18, 0.26);
}

/* Base propia: el diseño no depende del reinicio que aplica Tailwind. */
.lead-section :where(h2, h3, p, ul) {
  margin: 0;
}

/* La regla global de p fija Montserrat; aquí el texto corrido hereda Inter. */
.lead-section p {
  font-family: inherit;
}

.lead-section :where(ul) {
  padding: 0;
  list-style: none;
}

.lead-section ::selection {
  background: #0133a2;
  color: #fff;
}

.lead-section .lead-flow {
  position: relative;
  max-width: 76rem;
  margin-inline: auto;
  overflow: hidden;
  transition: min-height 0.5s ease-out;
}

/* El relleno deja sitio a las sombras, que .lead-flow recortaría. */
.lead-section .lead-step {
  padding: 0.5rem 1.5rem 3rem;
}

.lead-section .material-symbols-outlined {
  flex: none;
  user-select: none;
}

/* --- Encabezado ---------------------------------------------------------- */
.lead-section .lead-intro {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.lead-section .lead-intro__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.125rem, 1.2rem + 3.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--lead-ink);
  text-wrap: balance;
}

.lead-section .lead-intro__title [data-lead-accent] {
  color: var(--accent-display);
}

.lead-section .lead-intro__text {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--lead-body);
  text-wrap: pretty;
}

/* --- Tarjetas de elección ------------------------------------------------ */
.lead-section .lead-cards {
  display: grid;
  gap: 1.25rem;
}

.lead-section .lead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--lead-line);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s var(--lead-ease), box-shadow 0.35s var(--lead-ease), border-color 0.35s ease;
}

.lead-section .lead-card__media {
  position: relative;
}

.lead-section .lead-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(1.25rem - 1px) calc(1.25rem - 1px) 0 0;
  background: var(--accent-soft);
}

/* Fuera de flujo: una foto vertical no debe estirar la tarjeta. */
.lead-section .lead-card__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--lead-ease);
}

/* <picture> solo elige el archivo; el recorte lo decide la imagen. */
.lead-section .lead-card__img picture,
.lead-section .lead-panel__photo picture {
  display: contents;
}

/* Fotos verticales: se encuadra la parte que cuenta (lotes, rostro y cartel). */
.lead-section [data-lead-accent="buy"] .lead-card__img img,
.lead-section [data-lead-accent="buy"] .lead-panel__photo img {
  object-position: 50% 88%;
}

.lead-section [data-lead-accent="work"] .lead-card__img img,
.lead-section [data-lead-accent="work"] .lead-panel__photo img {
  object-position: 50% 30%;
}

.lead-section [data-lead-accent="sell"] .lead-card__img img {
  object-position: 50% 30%;
}

.lead-section .lead-chip {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 14px -6px rgba(15, 23, 42, 0.3);
}

/* Medallón del icono, a caballo entre la foto y el texto. */
.lead-section .lead-card__icon {
  position: absolute;
  left: 1.25rem;
  bottom: -1.375rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--accent-on-fill);
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.4);
  box-sizing: content-box;
  transition: transform 0.45s var(--lead-ease);
}

.lead-section .lead-card__icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.lead-section .lead-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.5rem 1.5rem 1.5rem;
}

.lead-section .lead-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--lead-ink);
}

.lead-section .lead-card__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--lead-body);
}

.lead-section .lead-card__facts {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--lead-line);
  list-style: none;
}

.lead-section .lead-card__facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #334155;
}

.lead-section .lead-card__facts .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--accent);
}

.lead-section .lead-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  margin-top: auto;
  padding: 0 0.875rem 0 1.125rem;
  border: 1.5px solid var(--accent);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lead-section .lead-card__cta .material-symbols-outlined {
  font-size: 1.25rem;
  transition: transform 0.35s var(--lead-ease);
}

/* Toda la tarjeta responde al clic, pero el control real es el botón. */
.lead-section .lead-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
}

.lead-section .lead-card__cta:focus-visible {
  outline: none;
}

.lead-section .lead-card__cta:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .lead-section .lead-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 24px 40px -22px var(--accent-deep);
  }

  .lead-section .lead-card:hover .lead-card__img img {
    transform: scale(1.05);
  }

  .lead-section .lead-card:hover .lead-card__icon {
    transform: translateY(-3px) rotate(-6deg);
  }

  .lead-section .lead-card:hover .lead-card__cta {
    border-color: var(--accent-fill);
    background: var(--accent-fill);
    color: var(--accent-on-fill);
  }

  .lead-section .lead-card:hover .lead-card__cta .material-symbols-outlined {
    transform: translateX(4px);
  }
}

.lead-section .lead-card:active {
  transform: translateY(-1px) scale(0.995);
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .lead-section .lead-card {
    flex-direction: row;
  }

  .lead-section .lead-card__media {
    flex: 0 0 40%;
  }

  .lead-section .lead-card__img {
    height: 100%;
    min-height: 15rem;
    aspect-ratio: auto;
    border-radius: calc(1.25rem - 1px) 0 0 calc(1.25rem - 1px);
  }

  /* El recuadro es casi cuadrado: se sobredimensiona la foto de compra para
     dejar fuera el rótulo que trae en la parte superior. */
  .lead-section [data-lead-accent="buy"] .lead-card__img img {
    inset: auto 0 0;
    height: 150%;
  }

  .lead-section .lead-card__icon {
    top: 1.375rem;
    right: -1.5625rem;
    bottom: auto;
    left: auto;
  }

  .lead-section .lead-card__body {
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .lead-section .lead-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .lead-section .lead-card__img {
    aspect-ratio: 16 / 10;
  }
}

/* --- Panel de formulario ------------------------------------------------- */
.lead-section .lead-panel {
  display: grid;
  max-width: 64rem;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lead-line);
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 28px 48px -28px var(--accent-deep);
}

.lead-section .lead-panel__aside {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow: hidden;
  background: radial-gradient(120% 70% at 0% 0%, var(--accent-deep-lit), var(--accent-deep) 70%);
  color: #fff;
}

/* En móvil la foto es solo textura; en escritorio cierra la columna. */
.lead-section .lead-panel__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
}

.lead-section .lead-panel__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-section .lead-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.875rem 0 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lead-section .lead-back .material-symbols-outlined {
  font-size: 1.125rem;
  transition: transform 0.3s var(--lead-ease);
}

.lead-section .lead-back:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.lead-section .lead-back:hover .material-symbols-outlined {
  transform: translateX(-3px);
}

.lead-section .lead-back:focus-visible,
.lead-section .lead-success__action:focus-visible,
.lead-section .lead-submit:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

.lead-section .lead-submit:focus-visible,
.lead-section .lead-success__action:focus-visible {
  outline-color: var(--accent);
}

.lead-section .lead-panel__title {
  margin-top: 1.25rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.lead-section .lead-panel__text {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.lead-section .lead-panel__facts {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lead-section .lead-panel__facts h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-glow);
}

.lead-section .lead-panel__facts ul {
  display: grid;
  gap: 0.625rem;
  margin: 0.625rem 0 0;
  padding: 0;
  list-style: none;
}

.lead-section .lead-panel__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.lead-section .lead-panel__facts strong {
  font-weight: 700;
  color: #fff;
}

.lead-section .lead-panel__facts .material-symbols-outlined {
  margin-top: 0.0625rem;
  font-size: 1.25rem;
  color: var(--accent-glow);
}

/* La foto de compra trae un rótulo arriba: como textura se ancla abajo y se
   sobredimensiona para que no asome tras el título. */
@media (max-width: 899.98px) {
  .lead-section [data-lead-accent="buy"] .lead-panel__photo img {
    position: absolute;
    inset: auto 0 0;
    height: 190%;
  }
}

@media (min-width: 900px) {
  .lead-section [data-lead-accent="buy"] .lead-panel__photo img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 900px) {
  .lead-section .lead-panel {
    grid-template-columns: minmax(19rem, 5fr) 7fr;
  }

  .lead-section .lead-panel__aside {
    padding: 1.75rem 2rem 0;
  }

  .lead-section .lead-panel__title {
    margin-top: 1.75rem;
  }

  .lead-section .lead-panel__photo {
    position: static;
    order: 1;
    width: calc(100% + 4rem);
    margin: auto -2rem 0;
    padding-top: 1.75rem;
    opacity: 1;
  }

  .lead-section .lead-panel__photo img {
    height: auto;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 58%);
    mask-image: linear-gradient(to bottom, transparent, #000 58%);
  }
}

/* --- Formulario ---------------------------------------------------------- */
.lead-section .lead-form {
  min-width: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  background: #fff;
}

.lead-section .lead-form__note,
.lead-section .lead-form__foot,
.lead-section .lead-verify p {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--lead-body);
}

.lead-section .lead-form__note {
  margin-bottom: 1.25rem;
}

.lead-section .lead-form__foot {
  margin-top: 1rem;
  text-align: center;
  text-wrap: balance;
}

.lead-section .lead-req {
  font-weight: 700;
  color: var(--accent);
}

.lead-section .lead-fields {
  display: grid;
  gap: 1.125rem 1rem;
}

.lead-section .lead-field {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  min-width: 0;
}

.lead-section .lead-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}

.lead-section .lead-label small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #64748b;
}

.lead-section .lead-hint {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--lead-body);
}

.lead-section .lead-control {
  position: relative;
}

.lead-section .lead-control > .material-symbols-outlined {
  position: absolute;
  top: 0.8125rem;
  left: 0.875rem;
  font-size: 1.375rem;
  line-height: 1;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.lead-section .lead-control:focus-within > .material-symbols-outlined {
  color: var(--accent);
}

.lead-section .lead-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.875rem 0.6875rem 2.875rem;
  border: 1px solid var(--lead-field-line);
  border-radius: 0.75rem;
  background-color: #fff;
  color: var(--lead-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  caret-color: var(--accent);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-section .lead-input::placeholder {
  color: #64748b;
  opacity: 1;
}

.lead-section .lead-input:hover {
  border-color: #475569;
}

.lead-section .lead-input:focus {
  border-color: var(--accent);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.lead-section .lead-input:user-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.16);
}

.lead-section select.lead-input {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.25rem;
  cursor: pointer;
  text-overflow: ellipsis;
}

.lead-section select.lead-input:invalid {
  color: #64748b;
}

.lead-section select.lead-input option {
  color: var(--lead-ink);
}

.lead-section textarea.lead-input {
  min-height: 6.5rem;
}

.lead-section .lead-file {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--lead-field-line);
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--lead-body);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lead-section .lead-file::file-selector-button {
  margin-right: 0.875rem;
  padding: 0.5rem 0.875rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.lead-section .lead-file:hover {
  border-color: var(--accent);
  background: #fff;
}

.lead-section .lead-file:focus {
  border-color: var(--accent);
  border-style: solid;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.lead-section .lead-verify {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.lead-section .lead-verify__widget {
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.lead-section .lead-verify p.text-red-700 {
  font-weight: 600;
  color: #b91c1c;
}

.lead-section .lead-verify__retry {
  font-family: inherit;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lead-section .lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--accent-fill);
  color: var(--accent-on-fill);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 14px 22px -16px var(--accent-deep);
  transition: transform 0.25s var(--lead-ease), filter 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lead-section .lead-submit .material-symbols-outlined {
  font-size: 1.25rem;
}

.lead-section .lead-submit:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.lead-section .lead-submit:active:not(:disabled) {
  transform: scale(0.985);
}

/* El script añade opacity-60 al deshabilitar; aquí el estado ya es explícito. */
.lead-section .lead-submit:disabled {
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.lead-section .lead-form[aria-busy="true"] .lead-submit .material-symbols-outlined {
  display: none;
}

.lead-section .lead-form[aria-busy="true"] .lead-submit::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lead-spin 0.7s linear infinite;
}

@keyframes lead-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 560px) {
  .lead-section .lead-form {
    padding: 2rem 2rem 2.25rem;
  }

  .lead-section .lead-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-section .lead-field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .lead-section .lead-form {
    align-self: center;
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

/* --- Confirmación -------------------------------------------------------- */
.lead-section .lead-success {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  background: #fff;
  border: 1px solid var(--lead-line);
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 28px 48px -28px rgba(3, 25, 77, 0.45);
  text-align: center;
}

.lead-section .lead-success__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #eef8dd;
  color: #3f7a12;
}

.lead-section .lead-success__icon .material-symbols-outlined {
  font-size: 2.75rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.lead-section .lead-success__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--lead-ink);
  text-wrap: balance;
}

.lead-section .lead-success__text {
  margin-top: 0.875rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--lead-body);
}

.lead-section .lead-success__text strong {
  font-weight: 700;
  color: #0133a2;
}

.lead-section .lead-success__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 2rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  background: #0133a2;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--lead-ease), filter 0.2s ease;
}

.lead-section .lead-success__action:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {

  .lead-section .lead-card,
  .lead-section .lead-card *,
  .lead-section .lead-back *,
  .lead-section .lead-submit,
  .lead-section .lead-success__action {
    transition-duration: 1ms !important;
  }

  .lead-section .lead-card:hover,
  .lead-section .lead-card:active,
  .lead-section .lead-card:hover .lead-card__img img,
  .lead-section .lead-card:hover .lead-card__icon {
    transform: none;
  }
}
