:root {
  --cocoa: #3b2418;
  --cocoa-deep: #24150e;
  --chocolate: #6b3e2a;
  --caramel: #c4a36a;
  --cream: #f6efe6;
  --cream-2: #efe4d4;
  --paper: #fbf7f1;
  --ink: #2a1c14;
  --muted: #6d5b4e;
  --line: rgba(59, 36, 24, 0.12);
  --white: #fff;
  --danger: #9b2c2c;
  --ok: #2f6b4f;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(36, 21, 14, 0.12);
}

html[data-theme="travel"] {
  --cocoa: #12343d;
  --cocoa-deep: #0b242b;
  --chocolate: #1d5a66;
  --caramel: #d4b483;
  --cream: #eef4f3;
  --cream-2: #dce8e6;
  --paper: #f5f8f7;
  --ink: #102429;
  --muted: #4d6468;
  --line: rgba(18, 52, 61, 0.12);
  --shadow: 0 18px 50px rgba(11, 36, 43, 0.14);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 24px)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo { height: 52px; width: auto; }
.site-logo.on-dark {
  height: 58px;
  background: #f7f1ea;
  border-radius: 12px;
  padding: 6px 10px;
}
.login-logo { height: 64px; margin: 0 auto 12px; }
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 8px 10px; border-radius: 999px; color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--cream-2); }
.nav-links .cta {
  background: var(--cocoa); color: var(--cream) !important; padding: 10px 16px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: end stretch;
  color: var(--cream);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36,21,14,.15), rgba(36,21,14,.72)),
    var(--hero, url("../img/galeria/workshop_02.jpg")) center/cover no-repeat;
}
html[data-theme="travel"] .hero-media {
  background:
    linear-gradient(180deg, rgba(11,36,43,.2), rgba(11,36,43,.72)),
    var(--hero) center/cover no-repeat;
}
.hero-inner { position: relative; padding: 72px 0 56px; }
.kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700;
  margin-bottom: 12px; color: var(--caramel);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; color: #fff; }
.hero p { max-width: none; color: #f3e7d8; font-size: 1.08rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer;
  background: var(--cocoa); color: var(--cream);
  padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.light { background: var(--cream); color: var(--cocoa-deep); }
.btn.wide { width: 100%; }

.section { padding: 84px 0; }
.section.alt { background: var(--cream); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); max-width: 40rem; }
.section-head p { max-width: none; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); height: 100%;
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .pad { padding: 22px; }
.card h3 { font-size: 1.45rem; }
.card a.more { font-weight: 700; color: var(--chocolate); text-decoration: none; }

.portrait-frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream-2);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  aspect-ratio: 4/5;
}
.portrait-sm { max-width: 260px; }
.portrait-sm img { max-height: 360px; aspect-ratio: 3/4; }
.intro-with-photo, .bio-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}
.intro-with-photo { grid-template-columns: 1fr 260px; align-items: center; }
.bio-layout { grid-template-columns: 260px 1fr; }

.quote {
  background: var(--cocoa-deep); color: var(--cream);
  padding: 36px; border-radius: 24px;
}
.quote p { font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; }
.quote cite { font-style: normal; color: var(--caramel); font-size: .92rem; }

.logo-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.logo-row img { height: 72px; width: auto; background: #fff; padding: 8px; border-radius: 12px; }
.ghost-logo {
  height: 72px; min-width: 140px; border: 1px dashed var(--line);
  display: grid; place-items: center; border-radius: 12px; color: var(--muted); font-size: .8rem; font-weight: 700;
  text-decoration: none; background: #fff; padding: 8px;
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

.page-hero { padding: 56px 0 10px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.list-clean { padding: 0; margin: 0 0 1rem; list-style: none; }
.list-clean li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px solid var(--line); }
.list-clean li:before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); }

.event {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }

form .field { margin-bottom: 14px; }
label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); font: inherit; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.alert.ok { background: #e6f4ec; color: var(--ok); }
.alert.err { background: #fdecec; color: var(--danger); }

.site-footer {
  background: var(--cocoa-deep); color: #f1e4d6; padding: 48px 0 24px; margin-top: 20px;
}
.site-footer a { color: var(--caramel); text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.legal { margin-top: 32px; font-size: .82rem; color: #cbb9a8; }

.admin-body { background: #f3eee8; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--cocoa-deep); color: #f3e7d8; padding: 24px 16px; }
.admin-side a { display: block; color: inherit; text-decoration: none; padding: 10px 12px; border-radius: 10px; margin-bottom: 4px; }
.admin-brand { display: block; margin: 0 8px 18px; padding: 0 !important; background: none !important; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.08); }
.admin-main { padding: 28px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.login-box { max-width: 420px; margin: 12vh auto; background: #fff; padding: 32px; border-radius: 20px; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .cards, .split, .foot-grid, .admin-shell, .gallery, .grid-4, .intro-with-photo, .bio-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; inset: 76px 12px auto; background: var(--paper);
    border: 1px solid var(--line); border-radius: 16px; padding: 12px; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
}
