/* ============================================================
   VALENTINA MARTINS — Sitio Personal
   Estética: Editorial / Moda / Magazine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --cream:    #f5f0e8;
  --off-white:#fdfaf5;
  --ink:      #1a1209;
  --warm-gray:#8c8070;
  --accent:   #c2651a;
  --accent-lt:#e8d5b0;
  --border:   #d6cbb5;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;

  --max-w: 900px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  background-color: var(--off-white);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Fade-in on load ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Top stripe ─────────────────────────────────────────── */
body::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 60%, var(--accent-lt) 100%);
}

/* ── Header / Nav ───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

header .brand {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

nav ul li a,
nav ul li span {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 2px;
  display: block;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
  color: var(--ink);
  background: var(--accent-lt);
}

nav ul li.active span,
nav ul li.active a {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ── Main layout ────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 28px 80px;
  width: 100%;
  animation: fadeUp 0.55s ease both;
}

/* ── Page title / Hero ──────────────────────────────────── */
.page-hero {
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
}

.page-hero .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
  animation: slideIn 0.4s ease both;
}

.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-hero .lead {
  font-size: 1.08rem;
  color: var(--warm-gray);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Index: bio grid ────────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.bio-text p {
  font-size: 1.02rem;
  color: #3d3020;
  line-height: 1.8;
  margin-bottom: 28px;
}

.bio-text .tag-line {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
}

/* ── Infografía / image card ────────────────────────────── */
.img-card {
  position: relative;
}

.img-card::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  z-index: 0;
}

.img-card img {
  width: 100%;
  border-radius: 3px;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 6px 6px 24px rgba(26,18,9,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-card img:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 32px rgba(26,18,9,0.18);
}

/* ── Stats row ──────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 120px;
}

.stat .num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  display: block;
}

.stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 6px;
  display: block;
}

/* ── Intereses page ─────────────────────────────────────── */
.interests-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #3d3020;
  max-width: 620px;
  margin-bottom: 52px;
}

.interest-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.icard {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  background: var(--cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,18,9,0.1);
}

.icard .icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.icard h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.icard p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── Contacto page ──────────────────────────────────────── */
.contact-wrap {
  max-width: 500px;
}

.contact-wrap p {
  font-size: 1.02rem;
  color: var(--warm-gray);
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
  margin-bottom: 20px;
}

.contact-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.linkedin-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--warm-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.linkedin-note::before {
  content: '';
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238c8070' d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--cream);
  padding: 28px;
}

footer .container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer .footer-left {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--warm-gray);
}

footer .footer-right {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--border);
}

footer .footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .footer-links a {
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--accent);
}

/* ── Divider ornament ───────────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--border);
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  margin: 44px 0;
  user-select: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .img-card {
    max-width: 380px;
  }

  .stats-row {
    gap: 24px;
  }

  main {
    padding: 40px 20px 60px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  header .container {
    padding: 0 16px;
  }

  nav ul li a,
  nav ul li span {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}
