/*
Theme Name: Nua Design
Theme URI: https://nuadesign.local
Author: Nua Design
Description: Tema sencillo para catálogo de productos, redes sociales y formulario de contacto.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nua-design
*/

:root {
  --bg: #f6f3ee;
  --bg-soft: #efeae2;
  --ink: #1c1a17;
  --muted: #6b645b;
  --line: #ddd6cc;
  --accent: #6f6e57;
  --accent-dark: #4f4e3d;
  --white: #fffdf9;
  --shadow: 0 18px 40px rgba(28, 26, 23, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  max-width: 220px;
}
.logo img {
  width: 100%;
  height: auto;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.nav a:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 64px;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,16,0.15) 0%, rgba(20,20,16,0.62) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-kicker {
  color: #e8e4d4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p {
  max-width: 46ch;
  color: #efeae2;
  font-size: 1.05rem;
  margin: 0 0 28px;
}
.hero .btn-ghost {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Catalog */
.section { padding: 28px 0 80px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0;
}
.section-note { color: var(--muted); margin: 0; }
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--muted);
}
.filter.is-active,
.filter:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.product-list {
  display: grid;
  gap: 36px;
}
.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 18px;
}
.product-main {
  aspect-ratio: 16 / 11;
  background: var(--bg-soft);
  border-radius: 16px;
  overflow: hidden;
}
.product-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
}
.thumb.is-active { border-color: var(--accent); }
.thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}
.product-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px 8px 0;
}
.product-body h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}
.product-body p { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-media {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 18px 20px; }
.card-cat {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { font-weight: 700; }
.hidden { display: none !important; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.contact-info {
  padding: 36px;
  background: var(--ink);
  color: var(--white);
}
.contact-info h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  margin: 0 0 12px;
  font-weight: 500;
}
.contact-info p { color: #d9d2c8; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { margin: 0 0 14px; }
.contact-list a:hover { color: #e8c4b0; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); }

.contact-form { padding: 36px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }
.form-success {
  display: none;
  padding: 14px 16px;
  background: #e8f3ea;
  color: #215c32;
  border-radius: 12px;
  margin-bottom: 16px;
}
.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  z-index: 60;
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--bg);
    flex-direction: column;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
}

.legal-wrap {
  max-width: 760px;
}
.legal-wrap h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 12px;
}
.legal-wrap h2 {
  font-size: 1.15rem;
  margin-top: 28px;
}
.legal-wrap ul {
  padding-left: 20px;
}
.legal-updated,
.legal-contact {
  color: var(--muted);
}
.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}
