/* ============================================================
   DANOVA — hoja de estilos compartida
   Grafito #121417 · Plata hielo #D3E1EF · Hueso #F1F3F6 · Acero #7C8695
   ============================================================ */

:root {
  --graphite:   #121417;
  --graphite-2: #171A1F;
  --graphite-3: #1E2228;
  --silver:     #D3E1EF;
  --offwhite:   #F1F3F6;
  --steel:      #7C8695;
  --steel-dim:  #59616D;
  --line:       rgba(211, 225, 239, 0.13);
  --line-soft:  rgba(211, 225, 239, 0.07);

  --geo: 'Poppins', 'Century Gothic', 'Futura', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --shell: min(1120px, 100% - 2.5rem);
  /* Un solo ritmo vertical para TODO el sitio: portadas y secciones usan
     exactamente el mismo aire arriba y abajo. */
  --gap-section: clamp(3.25rem, 6.5vw, 5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Red de seguridad: si algo se sale del ancho, se recorta en lugar de
     encoger toda la pagina en el celular. `clip` no rompe el sticky del menu. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--steel);
  font-family: var(--geo);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell { width: var(--shell); margin-inline: auto; }
.stack { display: flex; flex-direction: column; }

h1, h2, h3, h4 {
  color: var(--silver);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 2.85rem); }
h3 { font-size: clamp(1.12rem, 2.3vw, 1.38rem); font-weight: 400; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 400; letter-spacing: -0.01em; }
p  { margin: 0; max-width: 62ch; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0;
}

section { padding-block: var(--gap-section); }
.tight { padding-top: 0; }

.lead { font-size: clamp(1.02rem, 2.2vw, 1.22rem); line-height: 1.6; max-width: 48ch; }

/* ---------- Logo ---------- */
.wordmark {
  font-family: var(--geo); font-weight: 300; color: var(--silver);
  line-height: 1; letter-spacing: 0.015em; text-decoration: none;
}
.mark-o {
  display: inline-block; vertical-align: -0.01em;
  width: 0.568em; height: 0.568em; margin-inline: 0.025em;
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 20, 23, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.95rem;
}
.topbar .wordmark { font-size: 1.35rem; }

.nav { display: none; gap: 1.9rem; align-items: center; }
.nav > a, .nav-trigger {
  color: var(--steel); text-decoration: none; font-size: 0.88rem;
  transition: color 0.2s; background: none; border: 0; font-family: var(--geo);
  cursor: pointer; padding: 0;
}
.nav > a:hover, .nav a[aria-current="page"] { color: var(--silver); }
@media (min-width: 940px) { .nav { display: flex; } }

/* submenú de servicios */
.drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--graphite-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.55rem; min-width: 232px;
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.85);
}
.drop:hover .drop-panel, .drop:focus-within .drop-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop-panel a {
  color: var(--steel); text-decoration: none; font-size: 0.87rem;
  padding: 0.55rem 0.75rem; border-radius: 4px; transition: background-color 0.16s, color 0.16s;
}
.drop-panel a:hover { background: var(--graphite-3); color: var(--silver); }

/* menú móvil sin JavaScript */
.menu { display: block; position: relative; }
@media (min-width: 940px) { .menu { display: none; } }
.menu > summary {
  list-style: none; cursor: pointer; color: var(--silver);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 5px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.7rem); z-index: 60;
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.5rem; min-width: 224px; display: flex; flex-direction: column;
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.85);
}
.menu-panel a {
  color: var(--steel); text-decoration: none; font-size: 0.9rem;
  padding: 0.6rem 0.75rem; border-radius: 4px;
}
.menu-panel a:hover { background: var(--graphite-3); color: var(--silver); }
.menu-sep { height: 1px; background: var(--line-soft); margin: 0.4rem 0.75rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--geo); font-size: 0.92rem; font-weight: 500;
  padding: 0.85rem 1.7rem; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--offwhite); color: var(--graphite); }
.btn-solid:hover { background: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--silver); border-color: rgba(211, 225, 239, 0.32); }
.btn-ghost:hover { border-color: var(--silver); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
/* dentro de la barra fija el desplazamiento del hover se ve borroso por el desenfoque del fondo */
.topbar .btn:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Portada ---------- */
.hero { padding-block: var(--gap-section); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 58vh;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, rgba(211, 225, 239, 0.07), transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; display: flex; flex-direction: column; gap: 1.9rem; align-items: flex-start; }
.hero h1 span { color: var(--offwhite); }
.hero-note { font-size: 0.87rem; color: var(--steel-dim); display: flex; align-items: center; gap: 0.55rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); flex-shrink: 0; }

/* portada de páginas internas */
.page-hero { padding-block: var(--gap-section); border-bottom: 1px solid var(--line-soft); }
.page-hero-in { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.crumb { font-size: 0.8rem; color: var(--steel-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.crumb:hover { color: var(--silver); }

/* ---------- Bloques ---------- */
.band { background: var(--graphite-2); border-block: 1px solid var(--line-soft); }

.split { display: grid; gap: clamp(2.25rem, 6vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }
.split-center { align-items: center; }

.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--graphite-2); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 1.8rem 1.65rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  text-decoration: none;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
a.card:hover, .card-hover:hover { border-color: var(--line); transform: translateY(-3px); }
.card p { font-size: 0.93rem; }
.card-icon { color: var(--silver); }
.card-link { font-size: 0.85rem; color: var(--silver); margin-top: auto; padding-top: 0.4rem; }
.card-tag {
  align-self: flex-start; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--graphite); background: var(--silver); padding: 0.22rem 0.55rem; border-radius: 3px;
}
.card-tag-soft {
  align-self: flex-start; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver); border: 1px solid var(--line); padding: 0.2rem 0.55rem; border-radius: 3px;
}

/* ---------- Pasos numerados ---------- */
.steps { display: flex; flex-direction: column; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.15rem;
  padding-block: 1.35rem; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--silver); font-size: 0.9rem;
}
.step-body { display: flex; flex-direction: column; gap: 0.3rem; }
.step-body p { font-size: 0.92rem; }

/* ---------- Listas con palomita ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.ticks li { font-size: 0.93rem; display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.65rem; align-items: start; }
.tick { color: var(--silver); margin-top: 0.45em; }

/* ---------- Planes ---------- */
.plans { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.plan {
  background: var(--graphite-2); border: 1px solid var(--line-soft); border-radius: 6px;
  display: flex; flex-direction: column; overflow: hidden;
}
.plan-featured { border-color: rgba(211, 225, 239, 0.34); }
.plan-top { padding: 1.7rem 1.65rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; border-bottom: 1px solid var(--line-soft); }
.plan-name { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-dim); }
.plan-featured .plan-name { color: var(--silver); }
.plan-for { font-size: 0.9rem; }
.plan-price { font-size: 1.75rem; color: var(--silver); font-weight: 300; letter-spacing: -0.02em; }
.plan-price small { font-size: 0.82rem; color: var(--steel); }
.plan-body { padding: 1.45rem 1.65rem 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; flex: 1; }
.plan .btn { margin-top: auto; }

/* ---------- Trabajos ---------- */
.works { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.work {
  background: var(--graphite-2); border: 1px solid var(--line-soft); border-radius: 6px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.work:hover { border-color: var(--line); transform: translateY(-3px); }
.work-shot {
  aspect-ratio: 16 / 10; background: var(--graphite-3);
  display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); overflow: hidden;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot-empty { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; color: var(--steel-dim); }
.shot-empty span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.work-body { padding: 1.35rem 1.55rem 1.55rem; display: flex; flex-direction: column; gap: 0.4rem; }
.work-kind { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-dim); }
.work-body p { font-size: 0.9rem; }
.work-link { font-size: 0.85rem; color: var(--silver); margin-top: 0.3rem; }

/* ---------- Retrato ---------- */
.portrait {
  aspect-ratio: 4 / 5; background: var(--graphite-3); border: 1px solid var(--line-soft);
  border-radius: 6px; overflow: hidden; display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.credential { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.7rem; align-items: start; font-size: 0.92rem; }
.credential svg { color: var(--silver); margin-top: 0.4em; }

/* ---------- Preguntas ---------- */
.faq { display: flex; flex-direction: column; }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa summary {
  cursor: pointer; list-style: none; padding-block: 1.3rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  color: var(--silver); font-size: 1.01rem; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; color: var(--steel); font-size: 1.3rem; line-height: 1; flex-shrink: 0;
  transition: transform 0.22s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa-body { padding-bottom: 1.45rem; }
.qa-body p { font-size: 0.95rem; }
.qa-body p + p { margin-top: 0.7rem; }

/* ---------- Cierre ---------- */
.closer-in {
  display: flex; flex-direction: column; align-items: center; gap: 1.65rem; text-align: center;
  padding: clamp(2.75rem, 7vw, 4.5rem) 1.5rem;
  background: var(--graphite-2); border: 1px solid var(--line-soft); border-radius: 8px;
}
.closer-in h2 { max-width: 20ch; }
.closer-in p { max-width: 48ch; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line-soft); padding-block: 2.75rem 3.25rem; }
.foot-in { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot .wordmark { font-size: 1.2rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-dim); font-weight: 400; }
.foot-col a { color: var(--steel); text-decoration: none; font-size: 0.87rem; }
.foot-col a:hover { color: var(--silver); }
.foot-fine { font-size: 0.78rem; color: var(--steel-dim); border-top: 1px solid var(--line-soft); padding-top: 1.5rem; margin-top: 2rem; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--offwhite); color: var(--graphite);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease;
}
.wa:hover { transform: scale(1.07); }

/* ---------- Movimiento ---------- */
.rise { animation: rise 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
.rise-4 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .btn:hover, .card:hover, .work:hover, .wa:hover, a.card:hover { transform: none; }
}
