:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f6f4f1;
  --c-dark: #191714;
  --c-text: #2b2723;
  --c-muted: #6d6558;
  --c-accent: #c9972b;
  --c-accent-dark: #a87c1a;
  --c-line: #e6e0d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(25, 23, 20, .08);
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

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

a { color: var(--c-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--c-dark); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-dark);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .95rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }

.nav ul { display: flex; list-style: none; gap: 28px; }
.nav a {
  color: var(--c-text);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--c-accent-dark);
  border-bottom-color: var(--c-accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--c-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid var(--c-accent);
  transition: background .2s, transform .15s;
  box-shadow: 0 6px 18px rgba(201, 151, 43, .35);
}
.btn:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/fotograf-manresa.webp") center/cover no-repeat;
  z-index: -2;
  animation: herozoom 18s ease-out forwards;
}
@keyframes herozoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,10,.62) 0%, rgba(20,16,10,.45) 55%, rgba(20,16,10,.72) 100%);
  z-index: -1;
}
.hero-inner { padding: 110px 22px; }
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 30px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 26px;
  text-wrap: balance;
}
.kicker {
  display: inline-block;
  color: var(--c-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  margin-bottom: 10px;
}
.lead { font-size: 1.12rem; max-width: 720px; }
.prose > * + * { margin-top: 1.05em; }
.center { text-align: center; }
.center .lead, .center .prose { margin-inline: auto; }
.cta-row { margin-top: 34px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Grid "que puedes esperar" ---------- */
.expect-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.expect-grid li {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  position: relative;
  padding-left: 54px;
}
.expect-grid li::before {
  content: "📸";
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 1.2rem;
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e9e3d8, #f6f4f1);
  transition: transform .25s, box-shadow .25s;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-tall img { aspect-ratio: 3 / 4; }

/* ---------- Testimonios ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
  margin-top: 42px;
}
.testimonial header h3 {
  font-size: 1.25rem;
  color: var(--c-dark);
  text-transform: capitalize;
}
.testimonial header p { color: var(--c-muted); font-size: .92rem; margin-bottom: 4px; }
.testimonial .stars { color: var(--c-accent); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial figure { margin: 0 0 22px; }
.testimonial .gallery { margin-top: 18px; }
.testimonial blockquote { font-style: italic; }
.testimonial footer { margin-top: 22px; }

/* ---------- Formulario ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin-inline: auto;
}
.form-card .form-title {
  font-size: 1.4rem;
  color: var(--c-dark);
  margin-bottom: 6px;
}
.form-card .form-sub { color: var(--c-muted); margin-bottom: 26px; font-size: .95rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 7px;
  color: var(--c-dark);
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-bg-alt);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--c-muted);
}
.consent input { margin-top: 5px; accent-color: var(--c-accent); }

/* ---------- Tarjeta contacto ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 44px 0;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
}
.contact-card .icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.contact-card h3 { color: var(--c-dark); font-size: 1.05rem; margin-bottom: 6px; }
.contact-card a, .contact-card p { word-break: break-word; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Banner cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 680px;
  margin-inline: auto;
  background: var(--c-dark);
  color: #efece6;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .9rem;
  line-height: 1.55;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner a { color: var(--c-accent); }
.cookie-banner .cookie-actions { display: flex; gap: 12px; margin-top: 14px; }
.cookie-banner button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .85rem;
}
.cookie-accept { background: var(--c-accent); color: #fff; }
.cookie-reject { background: transparent; color: #efece6; border: 1px solid #56504a !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-dark);
  color: #b9b2a6;
  padding: 56px 0 34px;
  font-size: .93rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; list-style: none; }
.footer-nav a { color: #e8e3da; font-weight: 500; }
.footer-nav a:hover { color: var(--c-accent); }
.footer-copy { opacity: .75; }

/* ---------- Paginas legales / gracias / 404 ---------- */
.page-hero {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-line);
  padding: 70px 0 46px;
  text-align: center;
}
.page-hero h1 { color: var(--c-dark); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-content { max-width: 820px; }
.legal-content h2 {
  color: var(--c-dark);
  font-size: 1.3rem;
  margin: 2em 0 .6em;
}
.legal-content ul { padding-left: 24px; }
.legal-content li { margin-bottom: .5em; }

.thanks-box {
  text-align: center;
  padding: 90px 22px;
}
.thanks-box .emoji { font-size: 3.4rem; display: block; margin-bottom: 18px; }

.breadcrumb {
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--c-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 34px; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open { max-height: 300px; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 22px 20px; }
  .nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--c-line); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

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