/* ============================================
   Eva Klarmann — Portfolio
   ============================================ */
:root {
  --bg: #F6F1E8;
  --bg-alt: #EFE6D3;
  --ink: #211D17;
  --ink-soft: #6E6455;
  --accent: #9C7C4E;
  --accent-deep: #7C6039;
  --line: #DCCFB4;
  --paper: #FCFAF5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap-max: 1160px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.section { padding: 100px 0; position: relative; overflow: hidden; }
.section h2 { max-width: 640px; }
.section-intro { color: var(--ink-soft); max-width: 520px; margin-top: -0.4em; margin-bottom: 2.4em; }
.section .wrap { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: rgba(255,255,255,0.75); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================
   Líneas orgánicas decorativas (Hero, Pilares, Perfil, y demás secciones)
   ============================================ */
.pilares-line, .perfil-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.pilares-line path,
.perfil-line path,
.hero-line path {
  vector-effect: non-scaling-stroke;
}

.pilares-line path:first-child,
.perfil-line path:first-child {
  stroke: #9b7c5d;
  stroke-width: 1.35;
  opacity: 0.75;
}
.pilares-line path:last-child,
.perfil-line path:last-child {
  stroke: #bca58d;
  stroke-width: 1.05;
  opacity: 0.65;
}

.pilares-line { width: 520px; height: 310px; top: -70px; right: -90px; color: #7C6043; opacity: 0.55; }
.perfil-line { width: 390px; height: 490px; left: -105px; bottom: -130px; color: #9B8062; opacity: 0.40; }

.decor-line,
.pilares-line,
.perfil-line {
  pointer-events: none;
}
.decor-line {
  position: absolute;
  z-index: 0;
  color: #8B6F50;
  opacity: 0.48;
  overflow: visible;
}
.decor-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.decor-line-servicios { width: min(34vw, 540px); height: 430px; top: -115px; left: -120px; transform: rotate(-8deg); }
.decor-line-experiencia { width: min(27vw, 410px); height: 590px; top: 2%; right: -95px; opacity: 0.38; }
.decor-line-herramientas { width: min(42vw, 620px); height: 260px; right: -150px; bottom: -70px; transform: rotate(5deg); opacity: 0.32; }
.decor-line-ejemplos { width: min(29vw, 440px); height: 560px; top: 18%; left: -250px; opacity: 0.50; }
.decor-line-formacion { width: min(45vw, 650px); height: 280px; right: -170px; top: -90px; opacity: 0.35; }

@media (max-width: 720px) {
  .decor-line { opacity: 0.22; }
  .decor-line-servicios { width: 360px; left: -220px; top: -80px; }
  .decor-line-experiencia { width: 300px; right: -190px; }
  .decor-line-herramientas { width: 390px; right: -250px; }
  .decor-line-ejemplos { width: 300px; left: -100px; }
  .decor-line-formacion { width: 360px; right: -240px; }
}

/* ============================================
   Hero brand mark + mobile menu (sit on the hero photo)
   ============================================ */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
}
.hero-brand { position: absolute; top: 28px; left: 28px; z-index: 20; }

.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 9px 20px; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-deep); color: #fff !important; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer; align-items: center;
}
.hero-nav-toggle { position: absolute; top: 28px; right: 28px; z-index: 60; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--paper);
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 240px;
  max-width: 80vw;
  padding-top: 30px;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  z-index: 50;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 28px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .nav-cta { color: var(--accent-deep) !important; font-weight: 600; background: none; }

@media (min-width: 860px) {
  .hero-nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ============================================
   Subnav — centered bar under the hero
   ============================================ */
.subnav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.subnav-row {
  max-width: 1500px;
  margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding: 22px 40px;
}
.subnav-row a {
  color: var(--ink); text-decoration: none;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.subnav-row a:hover { color: var(--accent-deep); }

/* ============================================
   Hero — versión definitiva (desktop)
   ============================================ */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
  background: #F4EDE3;
}

.hero-media {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(72px, 7vw, 132px) 7vw 6vw 47vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 0.9em;
}

.hero-headline {
  font-size: clamp(3.1rem, 4.6vw, 4.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin: 0 0 0.18em;
}

.hero-promise {
  max-width: 25ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.05vw, 2.1rem);
  line-height: 1.22;
  color: #554839;
  margin: 0 0 1.15em;
}

.hero-signature {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.85em;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 39ch;
  margin: 0 0 1.55em;
  color: var(--ink);
}

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

.hero-line {
  position: absolute;
  z-index: -1;
  left: auto;
  right: 1.5vw;
  top: 3%;
  width: min(22vw, 360px);
  height: 48%;
  color: var(--accent);
  opacity: 0.42;
  pointer-events: none;
}
.hero-line path {
  stroke: #aa8c6e;
  stroke-width: 1.1;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

/* ============================================
   Hero — MÓVIL / CELULARES
   ============================================ */
@media (max-width: 720px) {

  .hero-media {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% 35%;
  }

  .subnav {
    display: none;
  }

  .hero-content {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 36px 28px 46px;
    text-align: center;
  }

  .hero-kicker {
    font-size: 0.77rem;
    margin: 0 0 14px;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 0.96;
    max-width: none;
    margin: 0 0 18px;
  }

  .hero-promise {
    font-size: 1.35rem;
    line-height: 1.2;
    max-width: none;
    margin: 0 0 26px;
  }

  .hero-signature {
    font-size: 0.72rem;
    line-height: 1.55;
    margin: 0 0 0.85em;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.55;
    max-width: none;
    margin: 0 0 1.55em;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-line {
    display: none;
  }
}

/* ============================================
   Pilares — overview, no cards, just air
   ============================================ */
.pilares { background: #F0E8DC; }
.pilares .eyebrow,
.pilar p {
  color: #4A3A26;
}
.pilares-title {
  text-align: center;
  max-width: 20ch;
  margin: 0 auto 1.4em;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pilares-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  margin-top: 3em;
  justify-items: center;
}
.pilar { text-align: center; max-width: 320px; margin: 0 auto; }
.pilar-icon { width: 76px; height: 76px; margin: 0 auto 18px; }
.pilar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5em; }

@media (min-width: 780px) {
  .pilares-grid { grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper) !important; }
.btn-primary:hover { background: var(--accent-deep); color: #fff !important; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep) !important; }

/* ============================================
   Perfil
   ============================================ */
.perfil { background: var(--paper); }
.perfil-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.perfil-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-width: 300px;
}
.perfil-copy .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  max-width: 32ch;
  line-height: 1.3;
}

@media (min-width: 780px) {
  .perfil-grid { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
}

/* ============================================
   Servicios — ledger list
   ============================================ */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.service-row h3 { margin: 0; }
.service-row p { margin: 0; max-width: 56ch; }

@media (min-width: 780px) {
  .service-row { grid-template-columns: 340px 1fr; gap: 32px; align-items: baseline; }
}

/* ============================================
   Experiencia — timeline
   ============================================ */
.experiencia { background: var(--bg-alt); }
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-deep);
}
.timeline-period {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-deep);
  font-size: 0.98rem;
  margin-bottom: 0.3em;
}
.timeline-org { color: var(--ink); font-weight: 600; margin-bottom: 0.6em; }
.timeline-item p:not(.timeline-period):not(.timeline-org) { max-width: 62ch; }
.timeline-footnote {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

/* ============================================
   Herramientas
   ============================================ */
.tool-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tool-list li {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  background: var(--paper);
}

/* ============================================
   Ejemplos
   ============================================ */
.ejemplos { background: var(--paper); }
.case-featured {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
}
.case-tag { font-size: 0.82rem; color: var(--accent-deep); font-weight: 600; margin-bottom: 0.4em; }
.case-featured-text h3 { margin-bottom: 0.3em; }
.case-featured-text a { font-weight: 600; }

.case-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.case-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-card img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.case-card figcaption { padding: 22px; }
.case-card h3 { margin-bottom: 0.3em; }

@media (min-width: 680px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Formación
   ============================================ */
.formacion-grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.plain-list li:first-child { padding-top: 0; }
.plain-list strong { color: var(--ink); }

@media (min-width: 700px) {
  .formacion-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ============================================
   Contacto
   ============================================ */
.contacto {
  position: relative;
  overflow: hidden;
  color: var(--paper);

  /* Oscuro cálido + efecto marmolado muy sutil */
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(156, 124, 78, 0.13) 0%,
      transparent 32%
    ),
    radial-gradient(
      ellipse at 85% 75%,
      rgba(203, 182, 166, 0.10) 0%,
      transparent 38%
    ),
    linear-gradient(
      125deg,
      #211d17 0%,
      #29231d 45%,
      #1d1a16 100%
    );
}

.contacto::before,
.contacto::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(203, 182, 166, 0.38);
  border-radius: 50%;
}

.contacto::before {
  width: 520px;
  height: 700px;
  top: -430px;
  right: -180px;
  transform: rotate(-18deg);
}

.contacto::after {
  width: 430px;
  height: 600px;
  bottom: -430px;
  left: -180px;
  border-color: rgba(156, 124, 78, 0.55);
  border-width: 1.5px;
  transform: rotate(25deg);
}

.contacto .wrap {
  position: relative;
  z-index: 1;
}

.contacto h2, .contacto p { color: var(--paper); }
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.contacto-info { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contacto-info a { color: var(--paper); }
.contacto .btn-primary { background: var(--paper); color: var(--ink) !important; }
.contacto .btn-primary:hover { background: var(--accent); color: var(--ink) !important; }
.contacto-info p { margin: 0; color: rgba(255,255,255,0.72); }
.location { opacity: 0.85; font-size: 0.94rem; }

@media (min-width: 780px) {
  .contacto-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer { padding: 30px 0; background: var(--paper); }
.site-footer p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
