/* ---------- Base & variables ---------- */
:root {
  --red: #cd0a12;
  --red-dark: #a4080e;
  --black: #141414;
  --charcoal: #201c19;
  --white: #ffffff;
  --cream: #faf7f5;
  --line: #e8e2de;
  --text-muted: #7a7370;
  --placeholder-bg: #f2eeec;
  --radius: 14px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --font-display: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

em { font-style: italic; color: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
}
.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 46px;
  width: auto;
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ---------- Hero (Inicio) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  color: #fff;
  text-align: center;
}
.hero-mark {
  position: absolute;
  width: 640px;
  height: 640px;
  background: var(--red);
  transform: rotate(45deg);
  top: 50%; left: 50%;
  margin: -320px 0 0 -320px;
  opacity: 0.16;
  z-index: -1;
}
.hero-content {
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 1.05rem;
  color: #d9d5d2;
  max-width: 520px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page banner (páginas interiores) ---------- */
.page-banner {
  background: var(--black);
  color: #fff;
  padding: 70px 0 46px;
  text-align: center;
  position: relative;
}
.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.page-banner .section-eyebrow { color: var(--red); }
.page-banner h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #fff;
}
.page-banner p {
  color: #d9d5d2;
  max-width: 560px;
  margin: 14px auto 0;
}

/* ---------- Section titles ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 44px;
  color: var(--black);
}

/* ---------- Teasers (Inicio) ---------- */
.teaser {
  padding: 90px 0;
}
.teaser:nth-child(even) { background: var(--cream); }
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.teaser-text p { color: var(--text-muted); margin-bottom: 22px; max-width: 460px; }
.teaser-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
}

.cta-banner {
  background: var(--red);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 18px; }
.cta-banner .btn-dark { background: var(--black); }

/* ---------- Placeholder boxes ---------- */
.placeholder-box {
  background: var(--placeholder-bg);
  border: 1.5px dashed #cfc7c2;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}
.placeholder-box svg {
  width: 40px;
  height: 40px;
  stroke: var(--red);
  opacity: 0.7;
}
.placeholder-box span {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ---------- Collection ---------- */
.collection { padding: 60px 0 100px; }

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--red); }
.filter-btn.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20,17,15,0.06);
  transition: var(--transition);
}
.product-card.hidden { display: none; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20,17,15,0.12);
}
.product-card .placeholder-box {
  aspect-ratio: 4/5;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}
.product-info {
  padding: 18px 20px 24px;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.product-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Product detail (ficha) ---------- */
.breadcrumb {
  padding: 22px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--black); font-weight: 500; }

.product-detail { padding: 22px 0 100px; }

.product-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 20px;
}

.gallery-main {
  aspect-ratio: 4/3;
  min-height: 380px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.thumb {
  aspect-ratio: 1/1;
  cursor: pointer;
  padding: 8px;
}
.thumb svg { width: 22px; height: 22px; }
.thumb span { font-size: 0.62rem; }
.thumb.active {
  border: 2px solid var(--red);
  background: #fff4f4;
}

.gallery-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 18px;
}

.product-panel h1 { margin: 10px 0 16px; }
.product-panel .description { color: var(--text-muted); margin-bottom: 28px; }

.panel-block { margin-bottom: 26px; }
.panel-block h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 12px;
}
.panel-block .muted { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }

.size-row { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.size-chip:hover { border-color: var(--red); }
.size-chip.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.panel-actions .btn { text-align: center; }
.back-link { font-size: 0.85rem; color: var(--text-muted); }
.back-link:hover { color: var(--red); }

/* ---------- About / Nosotros ---------- */
.about { padding: 90px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-visual {
  aspect-ratio: 4/5;
}

.team { padding: 20px 0 100px; background: var(--cream); padding-top: 90px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.team-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  margin: -20px 0 34px;
}
.team-card {
  text-align: center;
}
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.team-card .role-line {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
}

/* ---------- Process ---------- */
.process { padding: 90px 0; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.step {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--cream);
  padding: 30px;
  border-radius: var(--radius);
}
.step-visual {
  aspect-ratio: 4/3;
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  width: 42px; height: 42px;
  line-height: 42px;
  text-align: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { padding: 90px 0 110px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-text p { color: var(--text-muted); margin-bottom: 24px; max-width: 420px; }
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 0.98rem; }
.contact-info li { display: flex; align-items: center; gap: 12px; }
.contact-info .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info .muted { color: var(--text-muted); font-style: italic; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
  padding: 34px;
  border-radius: var(--radius);
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 180px; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #fff;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form .btn { align-self: flex-start; border: none; }
.form-note {
  font-size: 0.85rem;
  color: var(--red);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: #cfc9c1;
  padding: 44px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .logo img { height: 40px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: #cfc9c1;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 0.8rem;
  color: #7a7370;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid, .teaser-grid { grid-template-columns: 1fr; }
  .about-visual, .teaser-visual { order: -1; }
  .step { grid-template-columns: 1fr; }
  .step-visual { max-width: 220px; }
  .product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .thumb-row { grid-template-columns: repeat(3, 1fr); }
  .nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--red);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav.open { max-height: 320px; }
  .nav a { width: 100%; text-align: center; padding: 16px; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
}
