/* ===== bynilda.com.ar — estilos ===== */

/*
  Paleta alternativa guardada — "Terracota / Azul óleo" (la original).
  Sacada de tus fotos: acantilados ocre-terracota y mar azul profundo.
  Para volver a esta paleta, pegar estos valores en el :root de abajo.

  --bg: #F7F1E6            Hueso cálido
  --bg-alt: #EFE7D8
  --card: #FFFDF8
  --ink: #2B241B           Carbón cálido
  --ink-soft: #5A5142
  --terracotta: #B15A34    Acento primario
  --terracotta-dark: #8F4726
  --azul: #274B63          Azul óleo (sin uso activo hoy)
  --ocre: #C89A4B          Acento de precios
  --line: rgba(43, 36, 27, 0.12)
  --line-strong: rgba(43, 36, 27, 0.22)
  hero eyebrow override: #E8C077
*/

:root {
  /* Paleta activa — "Taller de Acuarela" (creativa y serena) */
  --bg: #FAFAF6;
  --bg-alt: #F1EEE6;
  --card: #FFFFFF;
  --ink: #3A4742;
  --ink-soft: #5F6D66;
  --terracotta: #8F5F5F;
  --terracotta-dark: #74494A;
  --azul: #274B63;
  --ocre: #8F5F5F;
  --line: rgba(58, 71, 66, 0.14);
  --line-strong: rgba(58, 71, 66, 0.24);
  --header-bg: rgba(247, 241, 230, 0.92);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

/* Modo oscuro: se activa solo si la persona lo elige con el switch del
   header (nunca por defecto ni por preferencia del sistema). */
:root[data-theme="dark"] {
  --bg: #1E1C19;
  --bg-alt: #262320;
  --card: #26231F;
  --ink: #EDE8DE;
  --ink-soft: #B7AFA0;
  --terracotta: #C99191;
  --terracotta-dark: #DDB0B0;
  --ocre: #C99191;
  --line: rgba(237, 232, 222, 0.14);
  --line-strong: rgba(237, 232, 222, 0.24);
  --header-bg: rgba(30, 28, 25, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

.section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 36px);
  margin-top: 10px;
}

/* ---- nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--ink);
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { border-color: var(--ink); }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 10px;
  margin: -11px -10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--bg);
  border-color: var(--terracotta);
}
.btn-primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-light {
  border-color: rgba(250, 246, 239, 0.55);
  color: #FAF6EF;
}
.btn-light:hover { background: rgba(250, 246, 239, 0.12); }

/* ---- hero ---- */
.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.92);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(43,36,27,0.78) 0%, rgba(43,36,27,0.44) 42%, rgba(43,36,27,0.14) 72%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 2;
}

.hero-content .wrap {
  max-width: 640px;
}

.hero-panel {
  display: inline-block;
  background: rgba(20, 17, 12, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 28px 32px;
  border-radius: 4px;
}

.hero-content .eyebrow { color: #E3BFBF; }

.hero-content h1 {
  color: #FAF6EF;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin-top: 18px;
}

.hero-content p {
  color: #F0E9DA;
  font-size: 17px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---- bio ---- */
.bio {
  display: flex;
  gap: 72px;
  align-items: center;
}

.bio-photo {
  flex: 0 0 400px;
}

.bio-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 76% center;
  border-radius: 2px;
}

.bio-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}

.bio-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.bio-stats {
  display: flex;
  gap: 48px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.bio-stats .stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--terracotta);
}

.bio-stats .stat-label {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

/* ---- exposiciones / calendario ---- */
.section-intro {
  font-size: 15px;
  opacity: 0.75;
  margin-top: 10px;
  max-width: 520px;
}

.expo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.expo-empty {
  margin-top: 40px;
  font-size: 15px;
  opacity: 0.7;
  font-style: italic;
}

.expo-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.expo-date {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-alt);
}

.expo-day {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.expo-month {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}

.expo-info { flex: 1; min-width: 0; }

.expo-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.expo-heading h3 { font-size: 18px; }

.expo-badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-soft);
}

.expo-card.expo-en-curso .expo-badge {
  background: var(--terracotta);
  color: var(--bg);
}

.expo-card.expo-proxima .expo-date {
  border-color: var(--terracotta);
}

.expo-card.expo-pasada { opacity: 0.6; }

.expo-place {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.expo-range {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 2px;
}

/* ---- galeria personal ---- */
.section-alt {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head .link-more {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

.taller-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 16px;
}

.taller-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 2px;
}

.taller-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.taller-grid button:hover img { transform: scale(1.05); }

.taller-grid .tall { grid-row: span 2; }
.taller-grid .wide { grid-column: span 2; }

.taller-more {
  display: block;
  margin: 32px auto 0;
}

.mini-carousel {
  display: none;
  margin-top: 40px;
}

.mini-carousel.open { display: block; }

.mini-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.mini-track-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: mini-marquee linear infinite;
  animation-duration: var(--marquee-duration, 40s);
}

.mini-carousel:hover .mini-track-inner {
  animation-play-state: paused;
}

@keyframes mini-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mini-slide {
  flex: 0 0 auto;
  width: 200px;
}

.mini-slide button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: none;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-alt);
}

.mini-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mini-slide button:hover img { transform: scale(1.05); }

/* ---- obras ---- */
.obras-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.obras-intro p {
  font-size: 15px;
  opacity: 0.78;
  line-height: 1.65;
  margin-top: 12px;
}

.obras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 980px;
}

.obra-card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.obra-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--bg-alt);
}

.obra-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.obra-card:hover .obra-photo img { transform: scale(1.04); }

.obra-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}

.obra-badge.vendido { background: var(--ink-soft); }

.obra-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.obra-info h3 { font-size: 18px; }

.obra-nota {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.85;
}

.obra-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  gap: 12px;
}

.obra-meta span:first-child {
  font-size: 13px;
  opacity: 0.65;
}

.obra-price {
  color: var(--ocre);
  font-weight: 600;
  white-space: nowrap;
}

.obra-info .btn { margin-top: 14px; text-align: center; }

/* ---- contacto / footer ---- */
/* Siempre oscuro: es "cromo" fijo del diseño, no cambia con el switch de tema. */
.site-footer {
  background: #2B241B;
  color: #FAF6EF;
  padding: 64px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col.brand { max-width: 340px; }

.footer-col .logo { color: #FAF6EF; }

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #D9D2C3;
}

.footer-col .eyebrow { color: var(--ocre); }

.footer-col a {
  font-size: 14px;
  color: #F0E9DA;
}
.footer-col a:hover { color: var(--ocre); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 241, 230, 0.15);
  font-size: 12px;
  color: #B8AF9C;
}

.footer-bottom p {
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

.credit {
  display: block;
  text-align: center;
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #B8AF9C;
}

.credit-brand { color: #D4B25C; }

.credit:hover .credit-brand { color: #E8CC8C; }

/* ---- whatsapp float ---- */
/* Siempre oscuro, como el footer: no cambia con el switch de tema. */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2B241B;
  color: #FAF6EF;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(43,36,27,0.25);
}
.wa-float:hover { background: #8F4726; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  touch-action: none;
}
.lightbox.open { display: flex; }
.lightbox-body {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 2px; user-select: none; -webkit-user-drag: none; }
.lightbox-caption { color: #F0E9DA; text-align: center; margin-top: 16px; font-size: 14px; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FAF6EF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-nav { display: none; }
.lightbox.has-group .lightbox-nav { display: flex; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-links.nav-links-open {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .bio { flex-direction: column; align-items: stretch; }
  .bio-photo { flex: none; }
  .obras-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .taller-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 160px; }
  .taller-grid .wide { grid-column: span 1; }
}

@media (max-width: 560px) {
  .obras-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .hero-content { bottom: 40px; }
  .hero-panel { padding: 20px 22px; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .wa-float { right: 16px; bottom: 16px; padding: 10px 16px 10px 12px; font-size: 12px; }
  .expo-card { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mini-track-inner { animation-play-state: paused; }
}
