/* ═══════════════════════════════════════════════
   DDM — ddemiguel.com
   "Evolución con sentido"
   ═══════════════════════════════════════════════ */

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

:root {
  --navy:   #0a0a0a;
  --navy2:  #050505;
  --gold:   #e8612a;
  --gold-l: #f07840;
  --sand:   #f5f0e8;
  --off:    #faf9f7;
  --white:  #ffffff;
  --ink:    #1a1816;
  --muted:  #3d3d3d;
  --line:   #e8e3dc;
  --f-sans: 'Manrope', system-ui, sans-serif;
  --f-ser:  'Fraunces', Georgia, serif;
  --r:      12px;
  --max:    1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ── TAGS ──────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.tag.light { color: rgba(232,97,42,0.75); }
.tag.tag-lg { font-size: 0.92rem; letter-spacing: 0.06em; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn-main {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: white;
  padding: 15px 30px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(192,116,48,0.3);
}
.btn-main:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(192,116,48,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 15px 30px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: white; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.25s ease;
}
.btn-outline:hover { color: var(--gold); }

/* ── REVEAL ANIMATION ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.1s; }
.reveal:nth-child(6) { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.nav.solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
  padding: 12px 0;
}

.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo-img {
  height: 68px; width: auto;
  transition: height 0.3s ease;
}
.nav.solid .nav-logo-img { height: 56px; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: rgba(0,0,0,0.65);
  transition: color 0.2s;
}
.nav.solid .nav-links a { color: rgba(0,0,0,0.65); }
.nav-links a:hover { color: var(--gold) !important; }

.nav-btn {
  background: #111 !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-btn:hover { background: #333 !important; transform: translateY(-1px); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 22px; height: 2px; background: #111; border-radius: 2px; transition: all 0.3s; }
.nav.solid .burger span { background: #111; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 0 40px;
}

.hero::before { display: none; }
.hero::after  { display: none; }


.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 140px 0 110px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.1);
  color: var(--ink); border-radius: 50px;
  padding: 6px 16px; font-size: 0.78rem; font-weight: 500;
  margin-bottom: 40px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero-h1 {
  font-family: 'Space Grotesk', var(--f-sans);
  font-size: clamp(2rem, 6.8vw, 6.2rem);
  font-weight: 700;
  line-height: 1.02;
  color: #111;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero-h1 .accent {
  color: var(--gold);
  font-style: normal;
}
@media (max-width: 680px) {
  .hero-h1 { white-space: normal; }
}

.hero-purpose {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--gold);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 14px;
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* btn-ghost updated for light bg */
.btn-ghost {
  background: white !important;
  color: var(--ink) !important;
  border: 1.5px solid rgba(0,0,0,0.15) !important;
  backdrop-filter: none !important;
}

/* ═══════════════════════════════════════════════
   METRICS
   ═══════════════════════════════════════════════ */
.metrics {
  background: #111;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.metrics-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.metric-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 52px; text-align: center;
}
.metric-n {
  font-family: var(--f-ser);
  font-size: 2.4rem; font-weight: 700;
  color: white; line-height: 1;
  margin-bottom: 8px;
}
.metric-l {
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  max-width: 140px; line-height: 1.4; text-align: center;
}
.metric-sep {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PAINS
   ═══════════════════════════════════════════════ */
.pains { padding: 110px 0; background: var(--off); }

.sec-title {
  font-family: var(--f-ser);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.sec-title.light { color: white; }

.sec-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 580px; line-height: 1.8;
  margin-bottom: 60px;
}

.pains-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  margin-top: 48px;
}

.pain-card {
  background: white; padding: 36px 32px;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.pain-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(192,116,48,0.12); }

.pain-icon {
  font-size: 1.2rem; color: var(--gold);
  margin-bottom: 16px; font-weight: 700;
}
.pain-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.75; text-align: justify; hyphens: auto; }

/* ═══════════════════════════════════════════════
   METHOD
   ═══════════════════════════════════════════════ */
.method { padding: 110px 0; background: var(--white); }

/* Method cards layout */
.method-cards {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  gap: 0;
  margin-top: 56px;
  align-items: start;
}

.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.08);
}
.method-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 20px 20px 0 0;
}

.mc-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(232,97,42,0.07);
  user-select: none;
  pointer-events: none;
}

.mc-icon {
  width: 50px; height: 50px;
  background: rgba(232,97,42,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.method-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.method-card p {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.75; margin-bottom: 20px;
}
.method-card ul {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.method-card ul li {
  font-size: 0.85rem; color: #555;
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.55;
}
.method-card ul li::before {
  content: '—';
  color: var(--gold); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

.method-connector {
  display: flex; align-items: flex-start;
  justify-content: center;
  padding-top: 110px;
}

.method-cta { text-align: center; margin-top: 52px; }

/* ═══════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════ */
.services { padding: 110px 0; background: var(--navy); }
.services .sec-title { margin-bottom: 52px; }

.srv-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r); overflow: hidden;
}

.srv-card {
  padding: 44px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s;
}
.srv-card:hover { background: rgba(255,255,255,0.05); }
.srv-card:nth-child(3n) { border-right: none; }
.srv-card:nth-last-child(-n+3) { border-bottom: none; }

.srv-num {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 20px; opacity: 0.7;
}
.srv-card h3 { font-size: 1.05rem; font-weight: 600; color: white; margin-bottom: 12px; }
.srv-card p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.75; text-align: justify; hyphens: auto; }

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about { padding: 110px 0; background: var(--sand); }

.about-layout {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 80px; align-items: start;
}

.about-photo {
  border-radius: var(--r); overflow: hidden;
  margin-bottom: 24px; aspect-ratio: 3/4;
  background: linear-gradient(150deg, var(--navy) 0%, #2a4a7f 100%);
  position: relative;
}

/* Overlay removed — solid background photo */
.about-photo::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
}

.photo-placeholder {
  width: 100%; height: 100%;
  min-height: 440px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ser); font-size: 1.6rem;
  color: rgba(255,255,255,0.25); text-align: center;
  line-height: 1.4;
}

.about-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

.about-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.badge {
  font-size: 0.72rem; font-weight: 500;
  background: white; color: var(--navy);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 50px;
  transition: all 0.2s;
}
.badge:hover { border-color: var(--gold); color: var(--gold); }

.about-title {
  font-family: var(--f-ser);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; line-height: 1.2;
  color: var(--navy); margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.about-text-col p {
  font-size: 0.97rem; color: var(--muted); text-align: justify; hyphens: auto;
  line-height: 1.85; margin-bottom: 18px;
}
.about-text-col p strong { color: var(--ink); }
.about-text-col .btn-outline { margin-top: 20px; }

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq { padding: 110px 0; background: var(--white); }

.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 24px 0; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--navy);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  color: var(--gold); transition: transform 0.3s;
  flex-shrink: 0; margin-left: 24px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--gold); }
.faq-item p {
  padding: 0 0 24px 0;
  font-size: 0.95rem; color: var(--muted); line-height: 1.8;
  max-width: 700px; text-align: justify; hyphens: auto;
}

/* ═══════════════════════════════════════════════
   CTA FINAL / CONTACT
   ═══════════════════════════════════════════════ */
.cta-final { padding: 110px 0; background: var(--navy2); }

.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.cta-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.cta-title {
  font-family: var(--f-ser);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; color: white;
  line-height: 1.2; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: 0.97rem; color: rgba(255,255,255,0.5);
  line-height: 1.8; margin-bottom: 36px;
}
.cta-contact-list { display: flex; flex-direction: column; gap: 14px; }
.cta-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.cta-contact-item svg { opacity: 0.6; flex-shrink: 0; }
.cta-contact-item:hover { color: var(--gold); }

.cta-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r); padding: 40px;
}
.f-group { margin-bottom: 16px; }
.f-group input,
.f-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 14px 16px;
  font-family: var(--f-sans); font-size: 0.93rem;
  color: white; outline: none;
  transition: border-color 0.2s;
}
.f-group input::placeholder,
.f-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.f-group input:focus,
.f-group textarea:focus { border-color: var(--gold); }
.f-group textarea { resize: vertical; min-height: 110px; }

.btn-form {
  width: 100%;
  background: var(--gold); color: white; border: none;
  padding: 16px; border-radius: 50px;
  font-family: var(--f-sans); font-size: 0.92rem;
  font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(192,116,48,0.3);
}
.btn-form:hover { background: var(--gold-l); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer { background: #080f1e; padding: 44px 0; }

.footer-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 20px; }
.footer-logo {
  height: 32px; width: auto;
  background: white;
  padding: 4px 10px;
  border-radius: 5px;
  opacity: 0.9;
}
.footer-left p { font-size: 0.8rem; color: rgba(255,255,255,0.3); line-height: 1.6; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }

.footer-bottom { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.25); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── COOKIE BANNER ─────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #111; border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 32px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 680px; }
.cookie-inner a { color: var(--gold); text-decoration: underline; }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn-main {
  padding: 10px 22px; border-radius: 50px; border: none; cursor: pointer;
  background: var(--gold); color: white; font-size: 0.82rem; font-weight: 600;
  font-family: var(--f-sans); transition: background 0.2s;
}
.cookie-btn-main:hover { background: var(--gold-l); }
.cookie-btn-sec {
  padding: 10px 22px; border-radius: 50px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15); font-size: 0.82rem;
  font-family: var(--f-sans); transition: all 0.2s;
}
.cookie-btn-sec:hover { border-color: rgba(255,255,255,0.4); color: white; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pains-grid { grid-template-columns: repeat(2,1fr); }
  .srv-grid { grid-template-columns: repeat(2,1fr); }
  .srv-card:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.06); }
  .srv-card:nth-child(2n) { border-right: none; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 320px; }
  .cta-inner { grid-template-columns: 1fr; gap: 52px; }
  .metrics-row { gap: 0; }
  .metric-item { padding: 16px 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-wrap { padding: 0 20px; }
  .hero { padding: 0 20px; }
  .hero-inner { padding: 110px 0 80px; }

  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: white; flex-direction: column; justify-content: center;
    gap: 28px; transition: right 0.35s ease;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12); padding: 40px;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--ink) !important; font-size: 1.05rem; }
  .nav-btn { text-align: center; width: 100%; justify-content: center; }
  .burger { display: flex; }

  .pains-grid { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: 1fr; }
  .srv-card { border-right: none !important; }
  .srv-card:nth-last-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
  .srv-card:last-child { border-bottom: none !important; }

  .method-cards { grid-template-columns: 1fr; gap: 24px; }
  .method-connector { display: none; }

  .metrics-row { flex-wrap: wrap; gap: 0; }
  .metric-item { width: 50%; padding: 20px; }
  .metric-sep { display: none; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-copy { text-align: left; }

  .pains, .method, .services, .about, .faq, .cta-final { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-main, .btn-ghost { text-align: center; justify-content: center; width: 100%; }
  .metric-item { width: 100%; }
  .metric-sep { display: none; }
  .cta-form { padding: 24px 20px; }
}
