/* =========================================================
   Ailura — estilos base
   Web estática · mobile-first · sin dependencias
   ========================================================= */

:root {
  /* Paleta de marca */
  --azul-noche: #0D1B2A;
  --blanco-calido: #F6F7F4;
  --dorado-iris: #D9B36A;
  --oliva-claro: #A8A65C;
  --oliva-medio: #6E8150;
  --verde-oscuro: #3F4F30;

  /* Roles de color */
  --bg: #0B1622;
  --bg-elev: #10202F;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(246, 247, 244, 0.09);
  --border-strong: rgba(246, 247, 244, 0.16);

  --text: #F6F7F4;
  --text-muted: #AEB7B4;
  --text-soft: #8B9490;

  --accent: var(--dorado-iris);
  --accent-2: var(--oliva-claro);

  /* Tipografía */
  --font-sans: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Formas */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  /* Sombras muy sutiles */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* Layout */
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(110, 129, 80, 0.14), transparent 60%),
    radial-gradient(900px 520px at 8% 6%, rgba(217, 179, 106, 0.08), transparent 58%),
    var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 700; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--azul-noche);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

/* ---------- Contenedor ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(to bottom, rgba(11, 22, 34, 0.82), rgba(11, 22, 34, 0.55));
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 8px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, background-color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--dorado-iris), var(--oliva-claro));
  --btn-fg: #14210F;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(217, 179, 106, 0.18);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(217, 179, 106, 0.28); }

.btn--ghost { background: transparent; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

.btn__ico { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section__head p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero__inner { max-width: 760px; }
.hero__descriptor {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .01em;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero__claim {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--blanco-calido), var(--dorado-iris) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
.hero__text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Grid de servicios ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.card__ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--azul-noche);
  background: linear-gradient(135deg, var(--dorado-iris), var(--oliva-medio));
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* ---------- Enfoque (pasos) ---------- */
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.step h3 { font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 44px;
  margin-top: 24px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__logo { height: 26px; }
.site-footer__meta { color: var(--text-soft); font-size: .95rem; }
.site-footer__meta a:hover { color: var(--text); }
.site-footer__loc { color: var(--text-soft); font-size: .9rem; }

/* =========================================================
   Tarjeta digital — /david/
   ========================================================= */
.vcard-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.vcard {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--bg-elev), rgba(13, 27, 42, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 6vw, 40px);
  text-align: center;
}
.vcard__logo { height: 30px; margin: 0 auto 26px; }
.vcard__avatar {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, rgba(217,179,106,.28), transparent 70%), var(--surface);
  border: 1px solid var(--border-strong);
}
.vcard__avatar svg { width: 52px; height: 52px; }
.vcard h1 { font-size: clamp(1.6rem, 6vw, 2rem); margin-bottom: 8px; }
.vcard__role { color: var(--text); font-weight: 600; }
.vcard__founder { color: var(--accent); font-weight: 600; font-size: .98rem; margin-top: 2px; }
.vcard__loc { color: var(--text-soft); font-size: .92rem; margin-top: 8px; }
.vcard__claim {
  font-weight: 600;
  color: var(--accent);
  margin-top: 18px;
  font-size: 1.05rem;
}
.vcard__text {
  color: var(--text-muted);
  font-size: .98rem;
  margin-top: 12px;
}

.vcard__divider {
  height: 1px;
  background: var(--border);
  margin: 26px 0 22px;
}

.vcard__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 400px) {
  .vcard__actions { grid-template-columns: 1fr 1fr; }
  .vcard__actions .btn--full { grid-column: 1 / -1; }
}

.vcard__details {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.vcard__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .95rem;
  padding: 4px 2px;
}
.vcard__detail svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.vcard__detail a:hover { color: var(--text); }

.vcard-back { margin-top: 26px; }
.vcard-back a { color: var(--text-soft); font-size: .9rem; }
.vcard-back a:hover { color: var(--text); }

/* =========================================================
   Microinteracción: aparición sutil al cargar
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
