/* ===================================================================
   Catalina Silva von Moltke — Portafolio profesional
   Hoja de estilos compartida
   =================================================================== */

/* ---------- Tipografías ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Archivo:wght@300;400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg:        #0d0c0f;
  --bg-soft:   #16141a;
  --bg-card:   #1d1a22;
  --surface:   #232029;
  --ink:       #f4f1ea;
  --ink-soft:  #b4afa6;
  --ink-faint: #6f6a63;
  --accent:    #e8b04b;        /* dorado cálido */
  --accent-2:  #c8694d;        /* terracota    */
  --line:      rgba(244,241,234,0.10);
  --radius:    14px;
  --maxw:      1180px;
  --display:   'Fraunces', Georgia, serif;
  --body:      'Archivo', system-ui, sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

.section { padding-block: clamp(70px, 11vw, 140px); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-top: 18px;
  letter-spacing: -0.02em;
}

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13,12,15,0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-socials { display: flex; gap: 14px; align-items: center; }
.nav-socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.nav-socials a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.nav-socials svg { width: 15px; height: 15px; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   BOTONES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--accent);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn svg { width: 16px; height: 16px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 78px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(232,176,75,0.16), transparent 62%);
  filter: blur(20px);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -25%; left: -15%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(200,105,77,0.14), transparent 64%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-name {
  font-size: clamp(3rem, 8vw, 6.4rem);
  letter-spacing: -0.03em;
  margin: 22px 0 8px;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.hero-roles {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-bio {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-bio strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Retrato hero */
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 0.9s var(--ease);
}
.hero-portrait:hover img { transform: scale(1.05); }
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(13,12,15,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Idiomas / chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ===================================================================
   VIDEOBOOK
   =================================================================== */
.videobook { background: var(--bg-soft); }
.video-frame {
  margin-top: 46px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-poster {
  position: absolute; inset: 0;
  cursor: pointer;
  display: grid; place-items: center;
}
.video-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.play-btn {
  position: relative;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
.video-poster:hover .play-btn { transform: scale(1.1); }
.play-btn::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.play-btn svg { width: 30px; height: 30px; margin-left: 5px; }

/* ===================================================================
   PORTAFOLIO / GALERÍA
   =================================================================== */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.gallery-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid.full { grid-template-columns: repeat(3, 1fr); }

.gal-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gal-item:hover img { transform: scale(1.08); filter: grayscale(0); }
.gal-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,12,15,0.7), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gal-item:hover::after { opacity: 1; }
.gal-cap {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
  z-index: 2;
}
.gal-item:hover .gal-cap { opacity: 1; transform: translateY(0); }

/* tamaño destacado en grid de 4 */
.gallery-grid .gal-item.tall { grid-row: span 1; }

/* ===================================================================
   LIGHTBOX
   =================================================================== */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(8,7,10,0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.25s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: var(--bg); }
.lb-close { top: 26px; right: 26px; }
.lb-nav.prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-nav svg, .lb-close svg { width: 20px; height: 20px; }

/* ===================================================================
   CURRÍCULUM / TIMELINE
   =================================================================== */
.cv-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  margin-top: 46px;
}
.cv-aside { position: sticky; top: 110px; align-self: start; }
.cv-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.cv-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.cv-facts { list-style: none; display: grid; gap: 14px; }
.cv-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.cv-facts .k { color: var(--ink-faint); letter-spacing: 0.04em; }
.cv-facts .v { color: var(--ink); text-align: right; }

.cv-block { margin-bottom: 48px; }
.cv-block h3 {
  font-size: 1.5rem;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.cv-block h3::before {
  content: ""; width: 22px; height: 2px;
  background: var(--accent);
}
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -26px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-year {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.tl-role { font-family: var(--display); font-size: 1.12rem; margin: 3px 0; }
.tl-meta { font-size: 0.9rem; color: var(--ink-soft); }

/* skills */
.skill-row { margin-bottom: 16px; }
.skill-row .top {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; margin-bottom: 7px;
}
.skill-bar {
  height: 5px;
  background: var(--surface);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 100px;
  width: 0;
  transition: width 1.1s var(--ease);
}

/* ===================================================================
   PRENSA
   =================================================================== */
.press-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.press-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.press-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.press-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.press-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.press-card:hover .press-thumb img { transform: scale(1.06); }
.press-body { padding: 22px 24px 26px; }
.press-source {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.press-title {
  font-family: var(--display);
  font-size: 1.22rem;
  margin: 8px 0 10px;
  line-height: 1.25;
}
.press-excerpt { font-size: 0.92rem; color: var(--ink-soft); }
.press-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent);
}
.press-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.press-card:hover .press-link svg { transform: translateX(4px); }

/* ===================================================================
   CONTACTO
   =================================================================== */
.contact { background: var(--bg-soft); }
.contact-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-intro p { color: var(--ink-soft); margin-bottom: 26px; max-width: 40ch; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ic {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list .label { font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-list .data { font-size: 1rem; }

/* formulario */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-msg {
  font-size: 0.88rem;
  margin-top: 6px;
  min-height: 20px;
}
.form-msg.ok  { color: var(--accent); }
.form-msg.err { color: var(--accent-2); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 50px 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
.footer-brand { font-family: var(--display); font-size: 1.5rem; }
.footer-brand span { color: var(--accent); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ===================================================================
   PAGE HEADER (subpáginas)
   =================================================================== */
.page-hero {
  padding-top: 158px;
  padding-bottom: 30px;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 40px; right: 0;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(232,176,75,0.10), transparent 65%);
  z-index: -1;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.025em;
  margin-top: 16px;
}
.page-hero p {
  color: var(--ink-soft);
  max-width: 54ch;
  margin-top: 18px;
}
.breadcrumb {
  display: flex; gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.breadcrumb a:hover { color: var(--accent); }

/* ===================================================================
   ANIMACIÓN REVEAL
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 940px) {
  .hero-grid   { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { max-width: 420px; order: -1; }
  .cv-layout   { grid-template-columns: 1fr; gap: 40px; }
  .cv-aside    { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.full { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 14px 26px 24px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle  { display: flex; }
  .nav-socials { display: none; }
  .scroll-cue  { display: none; }
}

@media (max-width: 460px) {
  .gallery-grid, .gallery-grid.full { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ===================================================================
   AJUSTES PARA WORDPRESS (menús generados con <li>)
   =================================================================== */
.nav-links { margin: 0; padding: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.footer-nav li { list-style: none; }
a.data { color: var(--ink); transition: color .25s var(--ease); }
a.data:hover { color: var(--accent); }

/* Paginación básica */
.pagination, .nav-links.pagination { display: flex; gap: 10px; flex-wrap: wrap; }
.page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-soft);
}
.page-numbers.current, .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
