/* ==========================================================================
   Taller Jota Cerámicas — hoja de estilos v2
   Editorial / minimal. Tipografía Montserrat. Fotografía a sangre.
   ========================================================================== */

:root {
  --cream: #FAF8F2;
  --ink: #262420;
  --ink-soft: #6b6558;
  --blue: #4A6FA5;
  --orange: #C1602F;
  --line: rgba(38,36,32,0.14);
  --line-strong: rgba(38,36,32,0.28);
  --font: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1240px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

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

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  display: inline-block;
}

.rule {
  width: 46px;
  height: 2px;
  background: var(--blue);
  margin: 16px 0 0;
}

.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav.main-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-bottom: 1px solid var(--line-strong) !important;
}
.lang-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.lang-toggle .flag { font-size: 14px; line-height: 1; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 16px !important;
}
.cart-link .cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.cart-link .cart-badge.is-empty { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--ink); color: var(--cream); }

.btn-light {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.btn-light:hover { background: #fff; color: var(--ink); }

.btn-blue { border-color: var(--blue); color: var(--blue); }
.btn-blue:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Full-bleed hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1c1b18;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,0.35) 0%, rgba(20,19,17,0.15) 45%, rgba(20,19,17,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding: 0 24px;
}

.hero-content .eyebrow { color: rgba(255,255,255,0.82); }

.hero-content h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.18;
  margin: 18px 0 22px;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 30px;
  font-size: 16px;
}

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

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.tint { background: #F1ECDF; }
section.dark { background: #201F1B; color: #EDE9DE; }
section.dark p { color: rgba(237,233,222,0.72); }
section.dark h2 { color: #fff; }
section.dark .eyebrow { color: rgba(237,233,222,0.6); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: 30px;
  margin-top: 14px;
}

.section-head p { margin-top: 16px; margin-bottom: 0; }

/* ---------- Pillars (index) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; }

.pillar .icon { width: 30px; height: 30px; margin-bottom: 22px; color: var(--blue); }
.pillar .icon img,
.pillar .icon svg { width: 100%; height: 100%; object-fit: contain; display: block; }

.pillar h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pillar p { font-size: 14.5px; margin-bottom: 20px; }

.pillar .link-arrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Split feature (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-media { min-height: 480px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}

.split-copy h2 { font-size: 28px; margin: 14px 0 18px; }

/* ---------- Full-bleed CTA band ---------- */

.cta-band {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1c1b18;
}
.cta-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; background: rgba(20,19,17,0.38);
}
.cta-band-content { position: relative; z-index: 2; color: #fff; max-width: 560px; padding: 0 24px; }
.cta-band-content h2 { color: #fff; font-size: 28px; margin: 14px 0 22px; }
.cta-band-content p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

.pay-badge {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.pay-badge strong { color: #fff; font-weight: 700; }

.pay-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  margin-top: 10px;
}
.pay-inline strong { color: var(--ink); }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

footer.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

footer .foot-brand {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .foot-links {
  display: flex;
  gap: 26px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
footer .foot-links a:hover { color: var(--blue); }

footer .foot-meta {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- Page header (sub-pages) ---------- */

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: 36px;
  margin-top: 14px;
}

.page-header p {
  max-width: 520px;
  margin-top: 16px;
  margin-bottom: 0;
}
.page-header p + p { margin-top: 8px; }

/* ---------- Sobre mí ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e9e3d2;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-copy h2 { font-size: 24px; margin-bottom: 18px; }

.inline-photo {
  margin: 40px 0;
  background: #e9e3d2;
  overflow: hidden;
}
.inline-photo img { width: 100%; height: auto; display: block; }
.inline-photo .cap {
  padding: 10px 2px 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.timeline {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item .year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.timeline-item h4 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.timeline-item p { font-size: 14px; margin: 0; }

.press-strip { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.press-list { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 16px; }
.press-list li {
  list-style: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.press-list li span { color: var(--ink-soft); font-weight: 400; }

/* ---------- Obras (gallery) ---------- */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.filter-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery-item.is-hidden { display: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #8a8271;
  font-size: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9e3d2;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(20,19,17,0.72), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .cap { opacity: 1; }
.gallery-item .cap .name { font-size: 13px; font-weight: 600; display: block; }
.gallery-item .cap .spec { font-size: 11px; color: rgba(255,255,255,0.75); }

/* ---------- Clases ---------- */

.class-list {
  border-top: 1px solid var(--line);
}

.class-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.6fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.class-row .tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.class-row h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.class-row p { font-size: 14px; margin: 0; }
.class-row .meta { font-size: 12px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.class-row .price { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.class-row .row-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.class-row .btn-add {
  font-size: 11px;
  padding: 12px 20px;
  white-space: nowrap;
}
.class-row .btn-add.is-added { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 900px) {
  .class-row .row-actions { align-items: flex-start; }
}

/* ---------- Carrito ---------- */

.cart-table {
  border-top: 1px solid var(--line);
}

.cart-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.5fr 0.5fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row .item-name { font-size: 16px; font-weight: 600; }
.cart-row .item-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.cart-row .item-price { font-size: 14px; font-weight: 600; }
.cart-row .item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  width: fit-content;
}
.cart-row .item-qty button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  width: 18px;
}
.cart-row .item-subtotal { font-size: 15px; font-weight: 700; text-align: right; }
.cart-row .item-remove {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: right;
}
.cart-row .item-remove:hover { color: var(--orange); }

.cart-empty {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cart-empty p { max-width: 380px; margin: 14px auto 26px; }

.cart-summary {
  margin-top: 40px;
  margin-left: auto;
  max-width: 360px;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}
.cart-summary .summary-row.total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cart-summary .btn { width: 100%; margin-top: 24px; }
.cart-summary .form-note { text-align: center; }

.checkout-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cart-row { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .cart-row .item-subtotal { text-align: left; }
  .cart-row .item-remove { text-align: left; }
  .cart-summary { max-width: 100%; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ---------- Clases — detalle, metodología, horarios ---------- */

.intro-block { max-width: 760px; }
.intro-block p { font-size: 15.5px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  margin-top: 8px;
}

.detail-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.detail-col ul, .detail-col ol {
  list-style: none;
  border-top: 1px solid var(--line);
}

.detail-col li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-note {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.pricing-note strong { color: var(--ink); }

.class-row .discount { color: var(--orange); font-weight: 700; }

.steps .step .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.steps h4 { font-size: 15px; margin-bottom: 8px; }
.steps p { font-size: 13.5px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.form-row { margin-bottom: 26px; }

.form-row label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}

.form-check input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.form-check label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
}

.contact-info {
  border-left: 1px solid var(--line);
  padding-left: 48px;
}

.contact-info h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.contact-info .info-block {
  margin-bottom: 30px;
}

.contact-info .info-block p { margin: 0; font-size: 14.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .hero-content h1 { font-size: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 8px; }
  .split-copy { padding: 48px 24px; }
  .split-media { min-height: 320px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1/1; }
  .class-row { grid-template-columns: 1fr; text-align: left; }
  .class-row .meta { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .wrap { padding: 0 22px; }
}
