/* ==========================================================================
   José Luis Ghio — sistema de diseño
   Paleta: negro pizarra (marca), pared de galería, siena quemada (pigmento)
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-soft: #16140f;
  --canvas: #f0ede6;
  --wall: #e7e2d6;
  --charcoal: #24221d;
  --stone: #837d70;
  --stone-light: #b6b0a1;
  --paper: #faf8f4;
  --sienna: #9a4a2f;
  --sienna-dark: #742f1c;
  --sienna-pale: #f1ddd2;
  --border: rgba(36, 34, 29, 0.12);
  --border-dark: rgba(250, 248, 244, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}
.eyebrow.on-dark { color: var(--stone-light); }

/* museum wall-label style, used for artwork metadata */
.plate {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sienna); color: var(--paper); }
.btn-primary:hover { background: var(--sienna-dark); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-ghost-dark { border-color: var(--border-dark); color: var(--paper); }
.btn-ghost-dark:hover { background: rgba(250,248,244,0.08); }
.btn-ghost-light { border-color: var(--border); color: var(--charcoal); }
.btn-ghost-light:hover { background: var(--wall); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom-color: var(--border-dark);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-light);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
.nav-toggle { display: none; background: none; border: none; padding: 4px; }
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.is-active .hamburger { background: transparent; }
.nav-toggle.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active .hamburger::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 719px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--ink);
    padding: 12px 32px 24px;
    border-bottom: 1px solid var(--border-dark);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 150px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-banner-wrap {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(24px) scale(1.01);
  animation: heroIn 1.1s var(--ease) 0.15s forwards;
}
.hero-banner-wrap img { width: 100%; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-copy {
  max-width: 620px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  color: var(--paper);
  margin-bottom: 20px;
}
.hero p { color: var(--stone-light); font-size: 16.5px; max-width: 460px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- section shell ---------- */
section { padding: 100px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-link { font-size: 13.5px; letter-spacing: 0.04em; color: var(--sienna); border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* ---------- bio strip ---------- */
.bio { background: var(--paper); text-align: center; padding: 90px 0 70px; }
.bio blockquote {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.5;
  max-width: 780px;
  margin: 24px auto 0;
  color: var(--charcoal);
  font-style: italic;
  font-weight: 400;
}

/* ---------- gallery rooms (categories) ---------- */
.rooms { background: var(--canvas); }
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.room-card {
  background: var(--canvas);
  padding: 40px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.room-card:hover { background: var(--wall); }
.room-card.has-bg {
  background-size: cover;
  background-position: center;
  color: var(--paper);
}
.room-card.has-bg:hover { background-size: cover; }
.room-card.has-bg .room-icon,
.room-card.has-bg .room-arrow { color: var(--paper); }
.room-card.has-bg h3 { color: var(--paper); }
.room-card.has-bg .plate { color: var(--stone-light); }
.room-card .room-icon { font-size: 26px; color: var(--sienna); }
.room-card h3 { font-size: 21px; margin-top: 22px; }
.room-card .plate { margin-top: 6px; }
.room-card .room-arrow {
  position: absolute; top: 32px; right: 28px;
  font-size: 18px; color: var(--stone-light);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.room-card:hover .room-arrow { transform: translate(4px,-4px); color: var(--sienna); }
@media (max-width: 860px) { .room-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .room-grid { grid-template-columns: 1fr; } }

/* ---------- featured works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}
@media (max-width: 980px) { .works-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }

.work-card { cursor: pointer; }
.work-frame {
  aspect-ratio: 4/5;
  background: var(--wall);
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.work-frame::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid var(--border);
}
.work-frame .frame-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--stone-light);
  transition: transform 0.5s var(--ease);
}
.work-card:hover .frame-icon { transform: scale(1.08); }
.work-frame img {
  position: absolute; inset: 14px;
  width: calc(100% - 28px); height: calc(100% - 28px);
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-frame img { transform: scale(1.05); }
.work-badge {
  position: absolute; top: 10px; left: 10px;
  z-index: 2;
  background: var(--paper);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; color: var(--stone);
}
.work-title { font-size: 14.5px; font-weight: 500; margin: 0 0 4px; line-height: 1.35; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; }
.work-price { font-size: 14px; color: var(--sienna); font-weight: 500; }

/* ---------- encargos band ---------- */
.commission {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.commission h2 { color: var(--paper); font-size: clamp(26px,3.4vw,38px); }
.commission p { color: var(--stone-light); max-width: 520px; margin: 18px auto 34px; }

/* ---------- classes split ---------- */
.classes { background: var(--paper); }
.classes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 780px) { .classes-grid { grid-template-columns: 1fr; gap: 36px; } }
.classes-visual {
  aspect-ratio: 4/3;
  background: var(--wall);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--stone-light);
}
.classes-list { list-style: none; margin: 26px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.classes-list li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--charcoal); }
.classes-list li i { color: var(--sienna); font-size: 15px; }

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 44px; border-bottom: 1px solid var(--border-dark);
}
.footer-logo img { height: 26px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin: 0 0 16px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--stone-light); margin-bottom: 10px; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--stone); flex-wrap: wrap; gap: 10px; }

/* ---------- page header (tienda / clases / etc.) ---------- */
.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 130px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--paper); font-size: clamp(30px, 4vw, 44px); }
.page-header p { color: var(--stone-light); max-width: 480px; margin: 14px auto 0; }
.breadcrumb { font-size: 12.5px; color: var(--stone); margin-bottom: 14px; }
.breadcrumb a { color: var(--stone-light); }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- shop filters ---------- */
.shop-body { background: var(--canvas); padding: 56px 0 100px; }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 42px;
}
.filter-pill {
  height: 38px; padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.02em;
  color: var(--stone);
  display: inline-flex; align-items: center;
  background: var(--paper);
  transition: all 0.2s var(--ease);
}
.filter-pill:hover { border-color: var(--stone); color: var(--charcoal); }
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop-count { font-size: 13px; color: var(--stone); margin-bottom: 22px; }
.empty-state { text-align: center; padding: 60px 0; color: var(--stone); }

/* ---------- product detail ---------- */
.product-detail { background: var(--paper); padding: 56px 0 100px; }
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
@media (max-width: 820px) { .product-grid { grid-template-columns: 1fr; gap: 32px; } }
.product-frame {
  aspect-ratio: 4/5;
  background: var(--wall);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.product-frame::before {
  content: "";
  position: absolute; inset: 18px;
  border: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}
.product-frame img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.product-frame .frame-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--stone-light); }
.product-info .plate { margin-bottom: 10px; }
.product-info h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; line-height: 1.25; }
.product-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.product-price { font-size: 26px; color: var(--sienna); font-weight: 500; font-family: var(--font-display); }
.stock-tag { font-size: 12px; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 3px; background: var(--sienna-pale); color: var(--sienna-dark); }
.stock-tag.out { background: var(--wall); color: var(--stone); }
.product-desc { color: var(--charcoal); font-size: 15px; line-height: 1.75; margin-bottom: 28px; }
.spec-table { width: 100%; border-top: 1px solid var(--border); margin-bottom: 32px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 0; font-size: 14px; }
.spec-table td:first-child { color: var(--stone); width: 40%; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- configurator (encargos) ---------- */
.configurator { background: var(--canvas); padding: 70px 0 100px; }
.config-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 860px) { .config-grid { grid-template-columns: 1fr; gap: 36px; } }
.config-visual {
  position: sticky; top: 110px;
  aspect-ratio: 3/4;
  background: var(--ink);
  border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--stone-light);
  text-align: center;
  padding: 40px;
}
@media (max-width: 860px) { .config-visual { position: static; aspect-ratio: 4/5; } }
.config-visual i { font-size: 34px; color: var(--sienna); margin-bottom: 18px; }
.config-visual p { font-size: 14px; max-width: 260px; }
.config-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
}
@media (max-width: 560px) { .config-panel { padding: 26px; } }
.config-step { margin-bottom: 30px; }
.config-step .eyebrow { margin-bottom: 12px; display: block; }
.option-group { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-pill {
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  font-size: 13.5px;
  color: var(--charcoal);
  text-align: left;
  transition: all 0.2s var(--ease);
}
.opt-pill:hover { border-color: var(--stone); }
.opt-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt-pill.is-unavailable { color: var(--stone-light); border-style: dashed; opacity: 0.55; }
.opt-pill.is-unavailable.is-active { background: var(--stone-light); border-color: var(--stone-light); color: var(--paper); opacity: 1; }
.config-result {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.config-price-block .plate { margin-bottom: 4px; }
.config-price { font-family: var(--font-display); font-size: 30px; color: var(--sienna); }
.config-price.unavailable { font-size: 15px; color: var(--stone); font-family: var(--font-body); max-width: 260px; }
.config-note { font-size: 12.5px; color: var(--stone); margin-top: 14px; }

/* ---------- how it works ---------- */
.how { background: var(--paper); }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
@media (max-width: 780px) { .how-grid { grid-template-columns: 1fr; gap: 32px; } }
.how-step .plate { color: var(--sienna); margin-bottom: 10px; }
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { font-size: 14.5px; color: var(--stone); line-height: 1.6; margin: 0; }

/* ---------- pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 34px;
  display: flex; flex-direction: column;
}
.price-card.is-featured { border-color: var(--sienna); position: relative; }
.price-card.is-featured::before {
  content: "Ahorra 40€";
  position: absolute; top: -12px; right: 28px;
  background: var(--sienna); color: var(--paper);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 17px; margin-bottom: 4px; }
.price-card .price-amount { font-family: var(--font-display); font-size: 36px; color: var(--charcoal); margin: 10px 0 2px; }
.price-card .price-amount span { font-size: 14px; color: var(--stone); font-family: var(--font-body); }
.price-card ul { list-style: none; margin: 22px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.price-card li { font-size: 13.5px; color: var(--charcoal); display: flex; gap: 9px; align-items: flex-start; }
.price-card li i { color: var(--sienna); font-size: 14px; margin-top: 2px; }

/* ---------- modality section (clases) ---------- */
.modality {
  padding: 90px 0;
}
.modality:nth-of-type(odd) { background: var(--paper); }
.modality-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 860px) { .modality-grid { grid-template-columns: 1fr; gap: 32px; } }
.modality-media { aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; background: var(--wall); position: relative; }
@media (max-width: 780px) { .modality-media { aspect-ratio: 3/2; } }
.modality-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modality-facts { list-style: none; margin: 20px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.modality-facts li { display: flex; gap: 10px; font-size: 14.5px; color: var(--charcoal); }
.modality-facts li i { color: var(--sienna); }
.curriculum-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag { font-size: 12px; letter-spacing: 0.03em; padding: 6px 12px; background: var(--wall); border-radius: 999px; color: var(--stone); }

/* ---------- contact cards ---------- */
.contact-body { background: var(--canvas); padding: 70px 0 100px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-bottom: 60px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper);
  padding: 38px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.25s var(--ease);
}
.contact-card:hover { background: var(--wall); }
.contact-card i.contact-icon { font-size: 24px; color: var(--sienna); }
.contact-card h3 { font-size: 18px; }
.contact-card p { font-size: 14px; color: var(--stone); margin: 0; line-height: 1.6; }
.contact-card .section-link { align-self: flex-start; margin-top: 4px; }
.contact-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
@media (max-width: 700px) { .contact-info-grid { grid-template-columns: 1fr; gap: 28px; } }
.contact-info-grid h3 { font-size: 16px; margin-bottom: 10px; }
.contact-info-grid p { font-size: 14.5px; color: var(--stone); line-height: 1.7; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 120px 0 60px; }
}
