/* ============================
   Marianerías by Marian — estilos
   ============================ */

:root {
  --cream: #faf5ea;
  --cream-alt: #f2e9d8;
  --ink: #17130f;
  --ink-soft: #241d16;
  --terracotta: #bd6a3c;
  --terracotta-dark: #9c5530;
  --olive: #7c8a52;
  --gold: #c9a343;
  --gold-light: #e2c774;
  --brown: #6c4c30;
  --text-dark: #2a231b;
  --text-muted: #6b5f4f;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(23, 19, 15, 0.08);
  --shadow-lg: 0 20px 50px rgba(23, 19, 15, 0.25);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.script {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
}

p { margin: 0 0 1em; }

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

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

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

.eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.on-dark .section-head h2,
.on-dark .section-head p { color: var(--cream); }

.on-dark .section-head p { color: rgba(250,245,234,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(201, 163, 67, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 163, 67, 0.45); }

.btn-outline {
  background: transparent;
  border-color: rgba(250,245,234,0.5);
  color: var(--cream);
}

.btn-outline:hover { background: rgba(250,245,234,0.1); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,19,15,0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-family: 'Alex Brush', cursive;
  font-size: 1.7rem;
  color: var(--terracotta-dark);
  line-height: 1;
}

.brand-text small {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #2a2117 0%, var(--ink) 60%);
  color: var(--cream);
  overflow: hidden;
  padding: 110px 0 130px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(201,163,67,0.18), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(189,106,60,0.18), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-copy h1 em {
  font-style: normal;
  font-family: 'Alex Brush', cursive;
  color: var(--gold-light);
  font-size: 1.15em;
}

.hero-copy p {
  color: rgba(250,245,234,0.78);
  font-size: 1.12rem;
  max-width: 480px;
  margin-bottom: 32px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  border: 1px solid rgba(250,245,234,0.25);
  border-radius: 999px;
  color: rgba(250,245,234,0.85);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .ring {
  position: absolute;
  border: 1px solid rgba(201,163,67,0.35);
  border-radius: 50%;
}

.hero-visual .ring.r1 { width: 420px; height: 420px; }
.hero-visual .ring.r2 { width: 480px; height: 480px; border-color: rgba(201,163,67,0.15); }

.hero-collage {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-collage img {
  position: absolute;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(250,245,234,0.08);
}

.hero-collage .img1 { width: 210px; height: 210px; top: 0; left: 20px; z-index: 2; }
.hero-collage .img2 { width: 160px; height: 160px; bottom: 20px; right: 0; z-index: 3; transform: rotate(4deg); }
.hero-collage .img3 { width: 140px; height: 140px; bottom: -10px; left: -20px; z-index: 1; transform: rotate(-6deg); }

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--cream);
}

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

.about-photo {
  position: relative;
}

.about-photo .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 20px;
}

.about-copy p { color: var(--text-muted); font-size: 1.05rem; }

.technique-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.technique-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.technique-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 100px 0;
  background: var(--cream-alt);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-btn {
  font-family: 'Jost', sans-serif;
  background: transparent;
  border: 1px solid rgba(23,19,15,0.15);
  color: var(--text-dark);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn span { color: var(--text-muted); font-size: 0.78em; }

.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.filter-btn.active span { color: var(--gold-light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23,19,15,0.06);
  cursor: zoom-in;
  aspect-ratio: 1/1;
}

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

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(to top, rgba(15,12,9,0.85), transparent);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

.gallery-item.hidden { display: none; }

.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 9, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox-content {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--cream);
  margin-top: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(250,245,234,0.1);
  border: 1px solid rgba(250,245,234,0.3);
  color: var(--cream);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(250,245,234,0.22); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0 110px;
  background: radial-gradient(circle at 80% 10%, #2a2117 0%, var(--ink) 55%);
  color: var(--cream);
}

.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(250,245,234,0.04);
  border: 1px solid rgba(250,245,234,0.12);
  border-radius: 14px;
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250,245,234,0.6);
}

.form-field input,
.form-field textarea {
  background: rgba(250,245,234,0.06);
  border: 1px solid rgba(250,245,234,0.2);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(250,245,234,0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(250,245,234,0.35); }

.contact-wrap .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-note {
  font-size: 0.78rem;
  color: rgba(250,245,234,0.45);
  margin-top: 14px;
  text-align: center;
}

.form-status {
  display: none;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.form-status.show { display: block; }

.form-status.success { background: rgba(124,138,82,0.2); color: #d7e2bd; border: 1px solid rgba(124,138,82,0.4); }
.form-status.error { background: rgba(189,106,60,0.2); color: #f0c7ac; border: 1px solid rgba(189,106,60,0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250,245,234,0.6);
  padding: 40px 0;
  border-top: 1px solid rgba(250,245,234,0.08);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 36px; width: 36px; border-radius: 50%; }

.footer-brand span { font-family: 'Alex Brush', cursive; font-size: 1.3rem; color: var(--gold-light); }

.footer-inner p { margin: 0; font-size: 0.82rem; }

.back-to-top {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(250,245,234,0.2);
  border-radius: 999px;
  padding: 8px 16px;
}

.back-to-top:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid rgba(23,19,15,0.08); box-shadow: var(--shadow); transform: translateY(-150%); transition: transform 0.3s ease; z-index: 99; }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav li { border-bottom: 1px solid rgba(23,19,15,0.06); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { padding: 28px 22px; }
  .hero { padding: 90px 0 90px; }
  .technique-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-collage { width: 280px; height: 280px; }
  .hero-collage .img1 { width: 160px; height: 160px; }
  .hero-collage .img2 { width: 120px; height: 120px; }
  .hero-collage .img3 { width: 105px; height: 105px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.1rem; }
}
