/*
Theme Name: Claudia Montes de Oca
Theme URI: https://funambulolibreria.com
Author: Funámbulo Editores / Gizmo Trece
Description: Theme para autora literaria. Hero, poemario, semblanza, galería por eventos y formulario de contacto.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: claudia-mdo
*/

/* ─────────────────────────────────
   TOKENS
───────────────────────────────── */
:root {
  --crema:    #f7f4ef;
  --crema-md: #ede9e0;
  --crema-dk: #ddd7ca;
  --texto:    #1c1917;
  --muted:    #6b6661;
  --suave:    #a09890;
  --oro:      #8a6d3b;
  --oro-lt:   #f0e8d8;
  --verde:    #3d5a4a;
  --verde-lt: #e8efe9;
  --verde-dk: #2e4437;

  --serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:     'Inter', system-ui, -apple-system, sans-serif;

  --radio:    3px;
  --radio-lg: 6px;
  --max:      1080px;
  --gap:      clamp(1.25rem, 5vw, 3rem);
}

/* ─────────────────────────────────
   RESET
───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--crema);
  color: var(--texto);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

/* ─────────────────────────────────
   LAYOUT
───────────────────────────────── */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
hr.thin { border: none; border-top: 0.5px solid var(--crema-dk); }

/* ─────────────────────────────────
   TIPOGRAFÍA UTILITARIA
───────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--suave);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--crema-dk);
}
.eyebrow-oro {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oro);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow-oro::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--oro);
  flex-shrink: 0;
}

/* ─────────────────────────────────
   NAVEGACIÓN
───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247,244,239,0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--crema-dk);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--texto);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.65; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--oro);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--texto); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--verde);
  background: var(--verde-lt);
  padding: 6px 16px;
  border-radius: 20px;
  border: 0.5px solid #b8d0bc;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-cta:hover { background: #d4e6d8; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--texto);
}

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
#inicio {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 0.5px solid var(--crema-dk);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}
.hero-text {}
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--texto);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero-name em {
  font-style: italic;
  color: var(--oro);
  display: block;
  font-size: 0.72em;
  margin-top: 0.15em;
}
.hero-origen {
  font-size: 0.8125rem;
  color: var(--suave);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-origen svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero-bio {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-bio strong { color: var(--texto); font-weight: 500; }
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; }
.btn-dark {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--texto);
  color: var(--crema);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radio);
  transition: background 0.2s;
}
.btn-dark:hover { background: #333; }
.btn-ghost {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--crema-dk);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--texto); border-color: var(--muted); }

/* Foto hero */
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radio);
}
.hero-badge {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--crema);
  border: 0.5px solid var(--crema-dk);
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-radius: 0 var(--radio) 0 var(--radio);
  line-height: 1.4;
}
.hero-badge strong {
  display: block;
  color: var(--texto);
  font-weight: 500;
  font-size: 0.8125rem;
}

/* ─────────────────────────────────
   POEMARIO
───────────────────────────────── */
#abrazo { background: #fff; }
.libro-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}
.libro-portada {
  width: 100%;
  border-radius: var(--radio);
  box-shadow: 4px 10px 36px rgba(0,0,0,0.13);
}
.libro-sello {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--suave);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 0.5px solid var(--crema-dk);
  border-radius: 20px;
}
.libro-eyebrow { margin-bottom: 1rem; }
.libro-titulo {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--texto);
  line-height: 1.25;
  margin-bottom: 1.75rem;
}
.libro-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.libro-cita {
  border-left: 2px solid var(--crema-dk);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--crema);
  border-radius: 0 var(--radio) var(--radio) 0;
}
.libro-cita p {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--texto);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.libro-cita cite {
  font-size: 0.75rem;
  color: var(--suave);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
}
.btn-verde {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--verde);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radio);
  transition: background 0.2s;
}
.btn-verde:hover { background: var(--verde-dk); }
.btn-verde svg { width: 15px; height: 15px; }

/* ─────────────────────────────────
   SOBRE MÍ
───────────────────────────────── */
#claudia { background: var(--crema); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.sobre-titulo {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--texto);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.sobre-p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.sobre-p strong { color: var(--texto); font-weight: 500; }
.sobre-card {
  background: #fff;
  border: 0.5px solid var(--crema-dk);
  border-radius: var(--radio-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.sobre-card-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--suave);
  margin-bottom: 0.625rem;
}
.sobre-card-item {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.25rem;
}
.sobre-card-item strong { color: var(--texto); font-weight: 500; }

/* ─────────────────────────────────
   GALERÍA — EVENTOS
───────────────────────────────── */
#galeria { background: var(--crema-md); }

.evento-bloque {
  margin-bottom: 3rem;
}
.evento-bloque:last-child { margin-bottom: 0; }

.evento-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.evento-titulo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--texto);
  white-space: nowrap;
}
.evento-linea {
  flex: 1;
  height: 0.5px;
  background: var(--crema-dk);
}
.evento-fecha {
  font-size: 0.6875rem;
  color: var(--suave);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Fila de 4 fotos rectangulares landscape */
.evento-fotos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}
.foto-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  cursor: zoom-in;
  background: var(--crema-dk);
}
.foto-item::after {
  content: '';
  display: block;
  padding-bottom: 66%;   /* proporción 3:2 landscape */
}
.foto-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.foto-item:hover img { transform: scale(1.05); }
/* Placeholder cuando no hay imagen */
.foto-item.placeholder {
  background: var(--crema-dk);
}
.foto-item.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────
   CONTACTO
───────────────────────────────── */
#contacto {
  background: var(--texto);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contacto-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a5550;
  margin-bottom: 1.25rem;
}
.contacto-titulo {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #f0ece6;
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.contacto-sub {
  font-size: 0.875rem;
  color: #6a6560;
  line-height: 1.75;
  max-width: 360px;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-field { display: flex; flex-direction: column; gap: 0.35rem; }
.f-label {
  font-size: 0.6875rem;
  color: #5a5550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.f-input, .f-textarea {
  background: #282520;
  border: 0.5px solid #3a3530;
  border-radius: var(--radio);
  padding: 0.65rem 0.875rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #c0bbb5;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.f-input::placeholder, .f-textarea::placeholder { color: #4a4540; }
.f-input:focus, .f-textarea:focus { border-color: #6a8070; }
.f-textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.f-submit {
  background: #f0ece6;
  color: var(--texto);
  border: none;
  border-radius: var(--radio);
  padding: 0.75rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
}
.f-submit:hover { background: #fff; }
.f-submit:active { transform: scale(0.98); }
.f-success {
  display: none;
  padding: 0.875rem 1rem;
  background: #1a2a1f;
  border: 0.5px solid #2a4030;
  border-radius: var(--radio);
  color: #7acc88;
  font-size: 0.875rem;
}
.f-error {
  display: none;
  padding: 0.875rem 1rem;
  background: #2a1a1a;
  border: 0.5px solid #4a2a2a;
  border-radius: var(--radio);
  color: #e07070;
  font-size: 0.875rem;
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.site-footer {
  background: #110f0d;
  border-top: 0.5px solid #2a2520;
  padding-block: 1.75rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-logo { font-family: var(--serif); font-size: 0.9375rem; color: #3a3530; }
.footer-editorial { font-size: 0.75rem; color: #2a2520; }
.footer-editorial a { color: #3a3530; transition: color 0.2s; }
.footer-editorial a:hover { color: #6a6058; }
.footer-copy { font-size: 0.6875rem; color: #2a2520; }

/* ─────────────────────────────────
   LIGHTBOX
───────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,15,13,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radio);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 1.75rem;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #ccc; }
.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: none;
  color: #888;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: var(--radio);
  transition: background 0.2s, color 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.12); color: #ddd; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ─────────────────────────────────
   RESPONSIVE
───────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 260px; gap: 2.5rem; }
  .libro-grid { grid-template-columns: 200px 1fr; gap: 2.5rem; }
  .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .evento-fotos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { max-width: 280px; margin-inline: auto; order: -1; }
  .libro-grid { grid-template-columns: 1fr; }
  .libro-portada { max-width: 220px; }
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--crema);
    border-bottom: 0.5px solid var(--crema-dk);
    padding: 1rem 1.5rem;
    z-index: 199;
  }
  .nav-links.open li { padding: 0.6rem 0; border-bottom: 0.5px solid var(--crema-dk); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .evento-fotos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .evento-fotos { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
