/* =========================================================
   MAR — BOLSOS TEJIDOS A CROCHET
   ESTILO PRINCIPAL DE LA TIENDA
========================================================= */

:root {
  --cream: #f7f3ec;
  --cream-dark: #eee7dc;
  --white: #ffffff;
  --black: #171614;
  --brown: #6f6254;
  --gold: #b79a67;
  --border: #e4ddd2;
  --muted: #8a8177;
  --shadow: 0 12px 35px rgba(23, 22, 20, 0.08);
}

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 5%;

  background: rgba(247, 243, 236, 0.96);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo img {
  display: block;
  width: 90px;
  height: 58px;
  object-fit: contain;
}
.logo span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 6px;
}

.logo small {
  margin-top: 7px;

  color: var(--muted);

  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* =========================================================
   NAV
========================================================= */

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  position: relative;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;

  transition: color 0.25s ease;
}

.nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: var(--gold);

  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--gold);
}

.nav a:hover::after {
  width: 100%;
}

/* =========================================================
   HEADER ICONS
========================================================= */

.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icons button {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: transparent;

  color: var(--black);

  font-size: 20px;

  transition: 0.25s ease;
}

.header-icons button:hover {
  background: var(--cream-dark);
  color: var(--gold);
  transform: translateY(-1px);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: calc(100vh - 82px);

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;

  background: var(--cream);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 80px 8%;
}

.eyebrow {
  margin-bottom: 16px;

  color: var(--gold);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;

  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;

  margin-bottom: 25px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(48px, 6vw, 82px);
  font-weight: 500;

  line-height: 1.04;
}

.hero h1 em {
  color: var(--brown);
  font-weight: 500;
}

.hero-text {
  max-width: 500px;

  margin-bottom: 34px;

  color: var(--brown);

  font-size: 15px;

  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   BUTTONS
========================================================= */

.button {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  border: 1px solid var(--black);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-dark:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.button-light {
  background: transparent;
  color: var(--black);
}

.button-light:hover {
  background: var(--white);
}

/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
  min-height: 650px;

  display: flex;
  align-items: stretch;
  justify-content: center;

  overflow: hidden;

  background: var(--cream-dark);
}

.image-placeholder {
  width: 100%;
  min-height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #eee7dc 0%,
      #f8f4ed 50%,
      #e5ddd1 100%
    );

  color: var(--brown);

  text-align: center;
}

.image-placeholder span {
  margin-bottom: 10px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: 70px;
  letter-spacing: 12px;

  color: rgba(111, 98, 84, 0.25);
}

.image-placeholder small {
  max-width: 240px;

  color: var(--muted);

  font-size: 11px;
  letter-spacing: 1px;
}

/* =========================================================
   SECTIONS
========================================================= */

.products-section,
.categories-section {
  padding: 110px 5%;
}

.section-heading {
  margin-bottom: 55px;

  text-align: center;
}

.section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;

  line-height: 1.2;
}

.heading-line {
  margin-top: 18px;

  color: var(--gold);

  font-size: 20px;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-grid {
  max-width: 1400px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 22px;

  margin: 0 auto;
}

.product-card {
  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--border);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;

  aspect-ratio: 0.85;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #eee7dc,
      #f8f5ef
    );

  color: var(--muted);
}

.product-image > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.favorite {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);

  color: var(--black);

  font-size: 20px;

  transition: 0.25s ease;
}

.favorite:hover {
  background: var(--black);
  color: var(--white);
}

.favorite.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.product-info {
  padding: 22px;
}

.product-info h3 {
  margin-bottom: 7px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: 19px;
  font-weight: 500;
}

.product-info > p {
  margin-bottom: 17px;

  color: var(--brown);

  font-size: 14px;
  font-weight: 600;
}

.product-button {
  width: 100%;

  padding: 12px;

  border: 1px solid var(--black);

  background: transparent;

  color: var(--black);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;

  transition: 0.25s ease;
}

.product-button:hover {
  background: var(--black);
  color: white;
}

/* =========================================================
   STORY
========================================================= */

.story-section {
  display: grid;

  grid-template-columns: 1fr 1fr;

  min-height: 650px;

  background: var(--cream-dark);
}

.story-image {
  min-height: 600px;

  overflow: hidden;
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 80px 10%;
}

.story-content h2 {
  margin-bottom: 28px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;

  line-height: 1.15;
}

.story-content p:not(.eyebrow) {
  max-width: 540px;

  margin-bottom: 18px;

  color: var(--brown);

  font-size: 15px;

  line-height: 1.9;
}

.story-content .button {
  align-self: flex-start;

  margin-top: 18px;
}

/* =========================================================
   CATEGORIES
========================================================= */

.categories-grid {
  max-width: 1400px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

  margin: 0 auto;
}

.category-card {
  position: relative;

  min-height: 350px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #e6ddd0,
      #f7f2ea
    );

  border: 1px solid var(--border);

  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(255,255,255,0.8),
      transparent 45%
    );
}

.category-overlay {
  position: relative;
  z-index: 1;

  width: 100%;

  padding: 30px;

  background: linear-gradient(
    transparent,
    rgba(23,22,20,0.72)
  );

  color: white;
}

.category-overlay > span {
  display: block;

  margin-bottom: 8px;

  font-size: 25px;
}

.category-overlay h3 {
  margin-bottom: 5px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: 30px;
  font-weight: 500;
}

.category-overlay small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
  min-height: 480px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 50px;

  padding: 80px 8%;

  overflow: hidden;

  background: var(--black);

  color: white;
}

.cta-section .eyebrow {
  color: var(--gold);
}

.cta-section h2 {
  margin-bottom: 20px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;

  line-height: 1.1;
}

.cta-section > div:first-child > p:not(.eyebrow) {
  margin-bottom: 28px;

  color: rgba(255,255,255,0.7);
}

.cta-section .button-dark {
  border-color: white;
  background: white;
  color: var(--black);
}

.cta-section .button-dark:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: white;
}

.cta-decoration {
  flex-shrink: 0;

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(100px, 18vw, 250px);
  font-weight: 500;

  letter-spacing: 20px;

  color: rgba(255,255,255,0.045);

  user-select: none;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  display: grid;

  grid-template-columns: 1.5fr repeat(3, 1fr);

  gap: 50px;

  padding: 75px 6% 55px;

  background: #ebe5dc;

  border-top: 1px solid var(--border);
}

.footer-brand h2 {
  margin-bottom: 8px;

  font-family: "Playfair Display", Georgia, serif;

  font-size: 40px;
  letter-spacing: 7px;
}

.footer-brand p {
  color: var(--muted);

  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-column {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.footer-column h3 {
  margin-bottom: 10px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-column a {
  width: fit-content;

  color: var(--brown);

  font-size: 12px;

  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--gold);
}

.copyright {
  padding: 18px;

  background: var(--black);

  color: rgba(255,255,255,0.55);

  text-align: center;

  font-size: 10px;
  letter-spacing: 0.5px;
}

/* =========================================================
   ANIMACIONES
========================================================= */

.product-card,
.category-card,
.story-content,
.hero-content {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .header {
    padding: 16px 4%;
  }

  .nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    padding: 60px 7%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-content {
    padding: 60px 8%;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .header {
    min-height: 72px;

    padding: 14px 5%;
  }
.logo img {
  width: 75px;
  height: 48px;
}
  .logo span {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .logo small {
    font-size: 6px;
  }

  .nav {
    display: none;
  }

  .header-icons {
    gap: 2px;
  }

  .header-icons button {
    width: 34px;
    height: 34px;

    font-size: 18px;
  }

  /* HERO */

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    order: 1;

    min-height: 560px;

    padding: 65px 7%;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 65px);
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-image {
    order: 2;

    min-height: 500px;
  }

  /* PRODUCTS */

  .products-section,
  .categories-section {
    padding: 75px 5%;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;

    gap: 12px;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h3 {
    font-size: 16px;
  }

  .product-button {
    font-size: 8px;
    padding: 11px 5px;
  }

  /* STORY */

  .story-section {
    display: flex;
    flex-direction: column;
  }

  .story-image {
    min-height: 450px;
  }

  .story-content {
    padding: 65px 7%;
  }

  .story-content h2 {
    font-size: 38px;
  }

  /* CATEGORIES */

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-card {
    min-height: 300px;
  }

  /* CTA */

  .cta-section {
    min-height: 520px;

    padding: 70px 7%;
  }

  .cta-decoration {
    display: none;
  }

  .cta-section h2 {
    font-size: 43px;
  }

  /* FOOTER */

  footer {
    grid-template-columns: 1fr 1fr;

    gap: 40px 25px;

    padding: 60px 7% 45px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

  .hero-content {
    min-height: 520px;

    padding: 55px 6%;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-image {
    min-height: 420px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .story-image {
    min-height: 380px;
  }

  .story-content h2 {
    font-size: 34px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}
