/* Abogados de las Aplicaciones — lead capture (mobile-first) */
:root {
  --black: #0a0a0a;
  --black-2: #141414;
  --black-3: #1c1c1c;
  --white: #ffffff;
  --muted: #b8b8b8;
  --pink: #ff2d95;
  --magenta: #e6007a;
  --purple: #8b2cff;
  --red: #ff1a3c;
  --grad: linear-gradient(115deg, #8b2cff 0%, #ff2d95 48%, #ff1a3c 100%);
  --grad-btn: linear-gradient(90deg, #ff2d95 0%, #ff1a3c 100%);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 680px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-text span {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-grad {
  background: var(--grad-btn);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 45, 149, 0.35);
}

.btn-grad:hover {
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-wa {
  background: #25d366;
  color: #052e14;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 1.25rem 0 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black-3);
  border: 1px solid rgba(255, 45, 149, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 6.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.25rem;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.85));
  pointer-events: none;
}

/* Sections */
section {
  padding: 2rem 0;
}

.section-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.grad-bar {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
  margin-bottom: 1rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--grad);
  color: var(--white);
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Benefits */
.benefits {
  display: grid;
  gap: 0.75rem;
}

.benefit {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--black-2);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  border: 1px solid rgba(139, 44, 255, 0.2);
}

.benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.benefit strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.benefit span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Form */
.form-card {
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1rem 1.4rem;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

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

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e8e8e8;
}

.field .req {
  color: var(--pink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.2);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8b8b8' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
}

.form-error {
  display: none;
  margin: 0.5rem 0 0;
  color: #ff8a9a;
  font-size: 0.88rem;
}

.form-error.show {
  display: block;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}

/* Thank you */
.thankyou {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.thankyou.show {
  display: block;
}

.thankyou .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.thankyou h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.thankyou p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

#lead-form.hide {
  display: none;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  color: var(--pink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  margin: 0.5rem 0 0;
  padding: 1.35rem 1.1rem;
  border-radius: var(--radius);
  background: var(--grad);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.cta-band p {
  margin: 0 0 1rem;
  opacity: 0.95;
  font-size: 0.92rem;
}

.cta-band .btn-wa {
  background: var(--white);
  color: #052e14;
}

/* Footer */
.site-footer {
  padding: 2rem 0 calc(5.5rem + var(--safe-b));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8a8a;
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
}

.ig-link {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
}

.ig-link:hover {
  text-decoration: underline;
}

.disclaimer {
  margin: 0.85rem 0 0;
  line-height: 1.45;
}

/* Floating WhatsApp */
.fab-wa {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + var(--safe-b));
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #052e14;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none;
}

.fab-wa svg {
  width: 30px;
  height: 30px;
}

.fab-wa:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

/* Audience note */
.audience {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(139, 44, 255, 0.12);
  border-left: 3px solid var(--purple);
  padding: 0.75rem 0.9rem;
  border-radius: 0 10px 10px 0;
  margin: 1rem 0 0;
}

@media (min-width: 640px) {
  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.two .full {
    grid-column: 1 / -1;
  }
}
