/* ==========================================================
   Noah Clothes | página de enlaces
   Mobile-first. Colores muestreados de la referencia.
   ========================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url(fonts/cormorant-garamond-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg-top: #f3f0eb;
  --bg-bottom: #f7f5f0;
  --card: #fffdfa;
  --card-border: #ebe8e2;
  --ink: #1f1f1c;
  --muted: #6f6b64;
  --accent: #a67d3c;
  --accent-light: #c9a45f;
  --num: #b0947c;
  --arrow: #9b8b7d;

  --dark: #272824;
  --dark-text: #f7f5f0;
  --dark-muted: #b9b6ad;
  --dark-line: #81817c;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --gutter: 1rem;
  --maxw: 30rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg-bottom) 420px, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { display: block; max-width: 100%; }

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

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

/* ---------- Encabezado ---------- */
.hero { padding: 2.4rem 0 1.2rem; text-align: center; }

.avatar {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.4rem;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #e9e4dc, 0 6px 22px rgba(60, 50, 30, 0.2);
}

.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--light { color: var(--accent-light); }

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 8vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro {
  max-width: 19rem;
  margin: 0 auto;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Tarjetas de enlaces ---------- */
.links { display: grid; gap: 0.5rem; margin: 0; padding: 0.7rem 0 2.6rem; list-style: none; }

.link-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.1rem;
  padding: 0.7rem 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(60, 50, 30, 0.05), 0 2px 8px rgba(60, 50, 30, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fade-up 0.5s ease both;
}

.links li:nth-child(1) .link-card { animation-delay: 0.05s; }
.links li:nth-child(2) .link-card { animation-delay: 0.12s; }
.links li:nth-child(3) .link-card { animation-delay: 0.19s; }
.links li:nth-child(4) .link-card { animation-delay: 0.26s; }

.num { min-width: 1.7rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1; color: var(--num); }
.label { flex: 1; font-size: 0.8125rem; font-weight: 500; }
.arrow { flex: none; width: 0.8rem; height: 0.8rem; fill: none; stroke: var(--arrow); stroke-width: 1.4; }

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-2px);
    border-color: #ddd3c4;
    box-shadow: 0 2px 4px rgba(60, 50, 30, 0.06), 0 8px 20px rgba(60, 50, 30, 0.08);
  }
}

.link-card:active { transform: scale(0.99); }

/* ---------- Bloque de contacto ---------- */
.contact { padding: 2.2rem 0 2.6rem; text-align: center; color: var(--dark-text); background: var(--dark); }

.contact h2 { margin: 0.5rem 0 1rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.25; }

.phone {
  display: inline-block;
  padding: 0 0.7rem 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--dark-line);
}

.note { max-width: 17rem; margin: 0.9rem auto 1.6rem; font-size: 0.6875rem; line-height: 1.5; color: var(--dark-muted); }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8125rem; font-weight: 500; color: #fff; text-decoration: none; }
.social a:hover { color: var(--accent-light); }
.social .arrow { width: 0.6rem; height: 0.6rem; stroke: currentColor; opacity: 0.6; }

/* ---------- Animación ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card { animation: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  :root { --gutter: 1.5rem; }
  .hero { padding: 3.5rem 0 1.6rem; }
  .avatar { width: 6rem; height: 6rem; margin-bottom: 1.7rem; }
  .eyebrow { font-size: 0.6875rem; }
  h1 { font-size: 2.5rem; }
  .intro { max-width: 22rem; font-size: 0.9375rem; }
  .links { gap: 0.65rem; padding-bottom: 3.4rem; }
  .link-card { min-height: 3.5rem; padding-inline: 1.25rem; }
  .num { font-size: 1.5rem; }
  .label { font-size: 0.9375rem; }
  .contact { padding: 3rem 0 3.2rem; }
  .contact h2 { font-size: 1.85rem; }
  .phone { font-size: 1.2rem; }
  .note { font-size: 0.75rem; max-width: 20rem; }
  .social a { font-size: 0.9375rem; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 1024px) {
  :root { --maxw: 32rem; }
}
