﻿.catalog-hero-inner {
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
}

.catalog-hero p {
  margin: 0;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 5rem;
}

.filters {
  position: sticky;
  top: 4rem; /* Cambialo de 5.8rem a 4rem para que suba y pegue al nuevo header compacto */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.filters h2 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.filters-toggle {
  display: none;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input[type="search"],
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.58rem 0.7rem;
  background: #fcfcfb;
  color: var(--text);
  font: inherit;
}

.field input[type="search"]:focus-visible,
.field select:focus-visible,
.check-item input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.check-grid {
  display: grid;
  gap: 0.38rem;
  max-height: 170px;
  overflow: auto;
  padding-right: 0.25rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.featured-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0 0.9rem;
  font-size: 0.9rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.filter-actions button {
  flex: 1;
}

.catalog-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-head p {
  margin: 0;
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  overflow: hidden;
  background: #fff;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-content {
  padding: 0.85rem;
}

.card-overline {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  font-weight: 700;
}

.catalog-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
}

.catalog-card p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.7rem;
}

.badge {
  font-size: 0.74rem;
  border: 1px solid #d8d4c8;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  background: #f3f0e8;
}

.config {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.config label {
  display: grid;
  gap: 0.22rem;
  font-size: 0.77rem;
  color: var(--muted);
}

.config select {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.36rem 0.45rem;
  font: inherit;
  font-size: 0.78rem;
  background: #fcfcfb;
}

.card-actions {
  display: flex;
  gap: 0.45rem;
}

.card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.58rem 0.75rem;
}

.no-results {
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  padding: 2rem 1.1rem;
  text-align: center;
  grid-column: 1 / -1;
}

.modal {
  width: min(640px, calc(100% - 1.5rem));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0;
}

.modal::backdrop {
  background: rgba(15, 17, 14, 0.62);
}

.modal-content {
  padding: 1.2rem;
}

.modal-content h3 {
  margin-bottom: 0.5rem;
}

.modal-content p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .config {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .catalog-hero {
    padding-top: 4.6rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .results-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Nuevo diseno Front - catalogo */
.catalog-page {
  background: linear-gradient(180deg, #fbf7f0 0%, #f8f1e7 100%);
}

.catalog-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
  background: #f7eee5;
}

.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 30%;
  background:
    linear-gradient(90deg, rgba(247, 238, 229, 1) 30%, rgba(247, 238, 229, 0.05) 70%),
    url("../img/catalogo/page11_img03.jpeg") center / cover no-repeat;
}

.catalog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.catalog-hero .kicker {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 101, 82, 0.14);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.catalog-hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.catalog-hero p {
  font-size: 1.05rem;
  color: #5a4a3a;
  max-width: 42ch;
}

.catalog-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.6rem;
  padding-top: 1.6rem;
}

.filters,
.catalog-results {
  border-color: rgba(122, 101, 82, 0.16);
  border-radius: 10px;
  background: rgba(255, 250, 244, 0.95);
  box-shadow: 0 4px 18px rgba(75, 51, 31, 0.07);
}

.filters {
  top: 6.2rem;
  padding: 1.35rem;
}

.filters h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
}

.field label {
  color: var(--text);
}

.field input[type="search"],
.field select,
.config select {
  border-radius: 6px;
  background: #fffaf4;
  border-color: #dccfc1;
}

.check-grid {
  max-height: none;
  gap: 0.5rem;
}

.check-item {
  color: #3b3028;
}

.check-item input,
.featured-toggle input {
  accent-color: var(--accent);
}

.filter-actions {
  flex-direction: column;
  gap: 0.55rem;
}

.catalog-results {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.results-head {
  min-height: 3.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(122, 101, 82, 0.16);
  border-radius: 8px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}

/* Cards mejoradas */
.catalog-card {
  position: relative;
  border-color: rgba(122, 101, 82, 0.18);
  border-radius: 10px;
  background: #fffaf4;
  box-shadow: 0 4px 14px rgba(75, 51, 31, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(75, 51, 31, 0.14);
}

.catalog-card::before {
  content: "A medida";
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 250, 244, 0.95);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.catalog-card::after {
  content: "♡";
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  z-index: 1;
  color: #fffaf4;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.catalog-card img {
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid rgba(122, 101, 82, 0.14);
  transition: transform 0.35s ease, opacity 0.2s ease;
  object-fit: cover;
  width: 100%;
  background: #f5ede4;
}

.catalog-card:hover img {
  transform: scale(1.04);
  opacity: 0.93;
}

.catalog-card:hover img {
  opacity: 0.92;
}

.card-content {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-overline {
  color: var(--accent-dark);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.catalog-card h3 {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  color: #1f1812;
  margin-bottom: 0.4rem;
}

.catalog-card p {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.badges {
  margin: 0.6rem 0 0.8rem;
}

.badge {
  background: #eee5da;
  border-color: #ded0c2;
  color: #4d4034;
  font-size: 0.72rem;
}

.config {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.config label {
  font-size: 0.72rem;
  color: var(--muted);
}

.config select {
  font-size: 0.72rem;
  padding: 0.3rem 0.25rem;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  margin-top: auto;
  padding-top: 1rem;
  gap: 0.5rem;
  position: sticky;
  bottom: 0;
}

.card-actions .btn {
  min-height: 2.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-actions .detail-btn {
  display: none;
}

/* Boton Me interesa mas llamativo */
.card-actions .interest-btn {
  color: #fffaf4;
  background: linear-gradient(135deg, #7d8568, #5e6650);
  border: none;
  box-shadow: 0 4px 14px rgba(94, 102, 80, 0.35);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  letter-spacing: 0.02em;
}

.card-actions .interest-btn:hover {
  background: linear-gradient(135deg, #8b6914, #c49a2a);
  box-shadow: 0 0 22px rgba(196, 154, 42, 0.65), 0 6px 18px rgba(139, 105, 20, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.catalog-card:hover img {
  opacity: 0.92;
}


/* Hero centrado y llamativo */
.catalog-hero {
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: #f7efe5;
}

.catalog-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.catalog-hero .kicker {
  background: rgba(122, 101, 82, 0.1);
  color: #6b4f35;
  border: 1px solid rgba(122, 101, 82, 0.25);
}

.catalog-hero h1 {
  color: #2c1f12;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.catalog-hero p {
  color: #6b4f35;
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto;
}