/* ============================================================
   MILA Agency · styles.css · v20260706
   Dark agency theme — inspired by conversion-focused structure
   Cinzel (wordmark) + Outfit (body/headings)
   ============================================================ */

/* ── 0. Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── 1. Tokens ────────────────────────────────────────────── */
:root {
  --bg-0:      #080808;
  --bg-1:      #101010;
  --bg-card:   #141414;
  --bg-card-hi:#1C1C1C;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.13);

  --rosa:      #E7C6CF;
  --rosa-dim:  rgba(231,198,207,0.1);
  --rosa-mid:  rgba(231,198,207,0.25);
  --gold:      #D4AF37;

  --text-1:    #FFFFFF;
  --text-2:    rgba(255,255,255,0.62);
  --text-3:    rgba(255,255,255,0.36);

  --f-logo:    'Cinzel', Georgia, serif;
  --f-body:    'Outfit', system-ui, sans-serif;

  --radius:    4px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  160ms;
  --dur-med:   300ms;
}

/* ── 2. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img      { display: block; max-width: 100%; height: auto; }
a        { color: inherit; text-decoration: none; }
ul, ol   { list-style: none; }
button   { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
svg      { display: block; flex-shrink: 0; }

/* ── 3. Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 999;
  background: var(--rosa); color: #000;
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600;
  padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ── 4. Layout ────────────────────────────────────────────── */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

.section { padding-block: clamp(5rem, 9vw, 8rem); }

/* ── 5. Shared type ───────────────────────────────────────── */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 300;
  color: var(--text-2);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 52ch;
}

/* ── 6. Reveals ───────────────────────────────────────────── */
.reveal,
.service-card,
.step-item,
.faq-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.65s var(--ease),
    transform 0.65s var(--ease);
}

.reveal.is-visible,
.service-card.is-visible,
.step-item.is-visible,
.faq-item.is-visible {
  opacity: 1;
  transform: none;
}

.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.step-item:nth-child(2)    { transition-delay: 0.08s; }
.step-item:nth-child(3)    { transition-delay: 0.16s; }
.step-item:nth-child(4)    { transition-delay: 0.24s; }

/* ── 7. Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background   var(--dur-med) ease,
    border-color var(--dur-med) ease;
}

.nav.is-scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-brand {
  font-family: var(--f-logo);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-right: auto;
}

.nav-brand .brand-mila  { color: var(--rosa); }
.nav-brand .brand-sep   {
  color: var(--text-3);
  margin-inline: 0.35em;
  font-family: var(--f-body);
  font-weight: 300;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--text-1); }

.nav-cta {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #080808;
  background: var(--rosa);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--dur-fast);
}
.nav-cta:hover { background: var(--text-1); }

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 68px;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.55) 0%,
    rgba(8,8,8,0.72) 50%,
    rgba(8,8,8,0.97) 100%
  );
}

.hero-qualifier,
.hero-headline,
.hero-sub,
.hero-ctas {
  position: relative;
  z-index: 2;
}

.hero-qualifier {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rosa);
  border: 1px solid var(--rosa-mid);
  padding: 0.45rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1.75rem;
  width: fit-content;
  opacity: 0;
}

.hero-qualifier::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rosa);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--f-body);
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-1);
  max-width: 20ch;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(28px);
}

.hero-accent {
  color: var(--rosa);
  font-weight: 300;
  display: block;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  font-weight: 300;
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  opacity: 0;
}

/* ── 9. Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #080808;
  background: var(--rosa);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  background: transparent;
  border: 1px solid var(--border-hi);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.btn-ghost:hover { border-color: var(--rosa); background: var(--rosa-dim); }

/* ── 10. Marquee ──────────────────────────────────────────── */
.marquee-section {
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-inline: 2rem;
  padding-block: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.marquee-item::after {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rosa);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 11. Services ─────────────────────────────────────────── */
#servicios { border-top: 1px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.service-card {
  background: var(--bg-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background var(--dur-med);
}
.service-card:hover { background: var(--bg-card-hi); }

.service-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--rosa-dim);
  border: 1px solid var(--rosa-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--rosa);
}
.service-icon svg { width: 1.125rem; height: 1.125rem; }

.service-title {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.625rem;
}

.service-desc {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.service-note {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── 12. Trust bar ────────────────────────────────────────── */
.trust-bar {
  border-block: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 1.25rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

/* ── 13. Process ──────────────────────────────────────────── */
#metodo { border-top: 1px solid var(--border); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step-item {
  background: var(--bg-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--rosa);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── 14. Results ──────────────────────────────────────────── */
#resultados { border-top: 1px solid var(--border); }

.results-case {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.results-case-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.results-case-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

.results-case-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}

.results-case-type {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.result-metric-block {
  background: var(--bg-0);
  padding: 2.5rem 2rem;
  text-align: center;
}

.result-num {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--rosa);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── 15. Abril ────────────────────────────────────────────── */
#equipo { border-top: 1px solid var(--border); }

.abril-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.abril-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}
.abril-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.abril-content { padding-top: 0.5rem; }

.abril-name {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.05;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.abril-role {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 1.75rem;
}

.abril-bio {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

/* ── 16. FAQ ──────────────────────────────────────────────── */
#faq { border-top: 1px solid var(--border); }

.faq-list {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  color: var(--text-1);
  text-align: left;
  background: var(--bg-card);
  transition: background var(--dur-fast);
}
.faq-question:hover { background: var(--bg-card-hi); }

.faq-icon {
  width: 1.625rem; height: 1.625rem;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rosa);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--dur-med) var(--ease);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  background: var(--bg-0);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding-inline: 2rem;
  padding-block: 0;
}
.faq-item.is-open .faq-answer {
  max-height: 320px;
  padding-block: 1.25rem 2rem;
}

/* ── 17. CTA Final ────────────────────────────────────────── */
#contacto {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.cta-inner {
  max-width: 680px;
}

.cta-headline {
  font-size: clamp(1.875rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-1);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ── 18. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--f-logo);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--text-2);
  flex: 1;
}
.footer-brand .brand-mila { color: var(--rosa); }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--text-1); }

.footer-copy {
  width: 100%;
  font-size: 0.6875rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}

/* ── 19. Floating WA ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  z-index: 90;
  width: 3rem; height: 3rem;
  background: var(--rosa);
  color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  transition: transform var(--dur-fast), background var(--dur-fast);
}
.wa-float:hover { transform: scale(1.1); background: var(--text-1); }
.wa-float svg { width: 1.375rem; height: 1.375rem; }

/* ── 20. Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .nav-links  { display: none; }

  .hero-headline  { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .hero-ctas      { flex-direction: column; }
  .btn-primary,
  .btn-ghost      { width: 100%; justify-content: center; }

  .services-grid,
  .process-steps  { grid-template-columns: 1fr; }

  .results-metrics { grid-template-columns: 1fr; }

  .abril-inner    { grid-template-columns: 1fr; }
  .abril-img-wrap { max-width: 240px; margin-inline: auto; }
  .abril-name,
  .abril-role,
  .abril-bio      { text-align: center; margin-inline: auto; }

  .faq-question   { padding: 1.25rem 1.25rem; }
  .faq-answer     { padding-inline: 1.25rem; }
  .faq-item.is-open .faq-answer { padding-block: 1rem 1.5rem; }

  .trust-bar      { gap: 1.5rem; }

  .results-case-header { flex-wrap: wrap; }
}

@media (max-width: 479px) {
  .section        { padding-block: 3.5rem; }
  .nav-cta        { display: none; }
  .result-metric-block { padding: 1.75rem 1.25rem; }
}

@media (min-width: 1024px) {
  .services-grid,
  .process-steps  { grid-template-columns: repeat(4, 1fr); }
}

/* ── 21. Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .service-card, .step-item, .faq-item,
  .hero-qualifier, .hero-headline, .hero-sub, .hero-ctas {
    opacity: 1 !important;
    transform: none !important;
  }
}
