/* Landing 03 — Lead magnet (brochure) */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-3) 0 var(--space-6);
}
@media (min-width: 768px) { .hero { padding: var(--space-4) 0 var(--space-7); } }

/* Imagen del proyecto arriba del hero — compacta para que el CTA quede en el fold */
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
@media (min-width: 768px) {
  .hero-img { aspect-ratio: 21 / 9; max-height: 360px; }
}
.hero .ed-h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 10%, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(176, 196, 222, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero .ed-display { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .ed-lead    { max-width: 58ch; margin-left: auto; margin-right: auto; }

.hero-cta {
  background: var(--ed-gold) !important;
  color: var(--ed-navy) !important;
  border-color: var(--ed-gold) !important;
  padding: 18px 36px;
  font-size: 1rem;
}
.hero-cta:hover {
  background: var(--ed-white) !important;
  color: var(--ed-navy) !important;
  border-color: var(--ed-white) !important;
}

/* --- Botón del header: compacto, una sola línea --- */
.ed-header-cta {
  padding: 9px 16px;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .ed-header-cta {
    padding: 7px 13px;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
  }
}

/* --- CTA full-bleed navy (mismo estilo que el cierre del VSL) ----- */
.ed-final-cta {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.ed-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}
.ed-final-cta > * { position: relative; z-index: 1; }

/* ============================================================
   GALERÍA DE RENDERS (1428 Brickell)
   ============================================================ */

.ed-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.ed-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.ed-gallery img.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
@media (min-width: 768px) {
  .ed-gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
  .ed-gallery img.wide { aspect-ratio: 21 / 9; grid-column: span 4; }
  .ed-gallery img:not(.wide) { aspect-ratio: 3 / 4; }
}

/* ============================================================
   FORM CARD — formulario nativo (mismo patrón que landing 05)
   ============================================================ */

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--ed-white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.10);
  text-align: left;
}
@media (min-width: 768px) {
  .form-card { padding: var(--space-5); }
}

/* --- FORM FIELDS ----------------------------------------- */

.ed-form { display: flex; flex-direction: column; gap: var(--space-2); }

.ed-form-field { display: block; }

.ed-form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ed-navy);
  margin-bottom: 0.4rem;
}

.ed-form-field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid rgba(12, 27, 51, 0.15);
  border-radius: var(--radius-sm);
  background: var(--ed-white);
  color: var(--ed-ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.ed-form-field input::placeholder {
  color: rgba(12, 27, 51, 0.35);
}
.ed-form-field input:focus {
  outline: none;
  border-color: var(--ed-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.ed-form-field input.is-invalid {
  border-color: #C53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.10);
}

.ed-form-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #C53030;
  line-height: 1.3;
}
.ed-form-error:empty { min-height: 0; margin-top: 0; }

/* --- SUBMIT BUTTON --------------------------------------- */

.ed-form-submit {
  position: relative;
  width: 100%;
  margin-top: var(--space-3);
  padding: 18px 24px;
  background: var(--ed-navy);
  color: var(--ed-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ed-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  overflow: hidden;
}
.ed-form-submit:hover {
  background: var(--ed-gold);
  color: var(--ed-navy);
  border-color: var(--ed-gold);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.30);
}
.ed-form-submit:active { transform: translateY(1px); }
.ed-form-submit:disabled { opacity: 0.65; cursor: progress; }

.ed-form-submit-label { transition: opacity var(--t-fast) var(--ease); }
.ed-form-submit-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.ed-form-submit-spinner::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--ed-white);
  animation: ed-spin 0.7s linear infinite;
}
.ed-form-submit.is-loading .ed-form-submit-label { opacity: 0; }
.ed-form-submit.is-loading .ed-form-submit-spinner { display: flex; }
@keyframes ed-spin { to { transform: rotate(360deg); } }

/* --- MICROCOPY ------------------------------------------- */

.ed-form-microcopy {
  margin: var(--space-2) 0 0;
  font-size: 0.8125rem;
  color: var(--ed-muted);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   INTL-TEL-INPUT — Override de estilos para matchear el brand
   ============================================================ */

.iti { display: block !important; width: 100%; }
.iti__country-list {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 27, 51, 0.10);
  box-shadow: 0 12px 32px rgba(12, 27, 51, 0.18);
  max-height: 280px;
}
.iti__country.iti__highlight {
  background: var(--ed-pearl);
}
.iti__selected-flag {
  border-right: 1px solid rgba(12, 27, 51, 0.10);
  padding: 0 12px 0 14px;
}
.iti--separate-dial-code .iti__selected-dial-code {
  color: var(--ed-navy);
  font-weight: 600;
  font-size: 0.9375rem;
}
.iti--separate-dial-code .iti__selected-flag {
  background: var(--ed-pearl);
}
.iti__divider {
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
}
/* asegurar que el input del teléfono herede el padding correcto */
.iti input[type="tel"] {
  padding-left: 100px !important;
}

@media (max-width: 640px) {
  .ed-section + .ed-section:last-of-type { padding-bottom: 6rem; }
}
