/* FRESH SAGE — Verde Sage + Blanco + Libre Baskerville */
:root {
  --bg: #f4f7f4;
  --bg2: #e8ede8;
  --white: #fff;
  --text: #2c3e2c;
  --text-dim: #6b7b6b;
  --sage: #5a7a5a;
  --sage-light: #e0ece0;
  --sage-hover: #4a6a4a;
  --border: #d0dbd0;
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --transition: .3s ease;
}

.sage-0 {
  background: #c5d5c0
}

.sage-1 {
  background: #b8ccb0
}

.sage-2 {
  background: #a8c0a0
}

.sage-3 {
  background: #d0dbd0
}

.sage-4 {
  background: #c0c8b8
}

.sage-5 {
  background: #b0c0a8
}

.sage-6 {
  background: #c8d0c0
}

.sage-7 {
  background: #bcc8b4
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit
}

input {
  font-family: inherit
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  white-space: nowrap
}

.btn--primary {
  background: var(--sage);
  color: var(--white)
}

.btn--primary:hover {
  background: var(--sage-hover);
  transform: translateY(-2px)
}

.btn--full {
  width: 100%
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text)
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(244, 247, 244, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border)
}

.header__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text)
}

.header__nav {
  display: none;
  align-items: center;
  gap: 32px
}

.header__nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition)
}

.header__nav-link:hover {
  color: var(--sage)
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.header__cart {
  position: relative;
  padding: 6px;
  color: var(--text);
  transition: color var(--transition)
}

.header__cart:hover {
  color: var(--sage)
}

.header__cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--sage);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition)
}

.header__cart-badge.visible {
  opacity: 1;
  transform: scale(1)
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px)
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px)
}

/* ===== Menú mobile (CORREGIDO) ===== */
@media(max-width:768px) {
  .header__nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--white);
    flex-direction: column;
    display: flex;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition)
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all
  }

  .header__nav-link {
    font-size: 1rem;
    padding: 8px 0
  }

  .header__hamburger {
    position: relative;
    z-index: 1600
  }
}

@media(min-width:769px) {
  .header__nav {
    display: flex
  }

  .header__hamburger {
    display: none
  }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition)
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .12)
}

.cart.active {
  transform: translateX(0)
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border)
}

.cart__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text)
}

.cart__close {
  font-size: 1.8rem;
  color: var(--text-dim);
  line-height: 1;
  transition: color var(--transition)
}

.cart__close:hover {
  color: var(--sage)
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px
}

.cart__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .3s ease
}

.cart-item__color {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.cart-item__color-name {
  font-size: .55rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35)
}

.cart-item__info {
  flex: 1;
  min-width: 0
}

.cart-item__name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cart-item__price {
  font-size: .85rem;
  font-weight: 600;
  color: var(--sage)
}

.cart-item__remove {
  align-self: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  padding: 4px;
  transition: color var(--transition)
}

.cart-item__remove:hover {
  color: #d44
}

.cart__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  display: none
}

.cart__footer.visible {
  display: block
}

.cart__total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text)
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5a7a5a 0%, #3d5a3d 100%);
  opacity: .9
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 600px
}

.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 16px;
  animation: fadeUp .8s ease
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
  animation: fadeUp .8s ease .15s both
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 32px;
  animation: fadeUp .8s ease .3s both
}

.hero .btn {
  animation: fadeUp .8s ease .45s both;
  background: var(--white);
  color: var(--sage)
}

.hero .btn:hover {
  background: rgba(255, 255, 255, .9);
  transform: translateY(-2px)
}

.lookbook {
  padding: 80px 20px;
  background: var(--bg)
}

.lookbook__container {
  max-width: 1100px;
  margin: 0 auto
}

.catalog__controls {
  margin-bottom: 48px
}

.catalog__search {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px;
  display: block;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .9rem;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  text-align: center
}

.catalog__search:focus {
  border-color: var(--sage)
}

.catalog__filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center
}

/* Categorías como tarjetas verticales con imagen (estilo sage) */
.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 500;
  transition: all var(--transition)
}

.filter-btn img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-bottom: 1px solid var(--border)
}

.filter-btn span {
  padding: 10px 0;
  color: var(--text)
}

.filter-btn:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(90, 122, 90, .12)
}

.filter-btn.active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage)
}

.filter-btn.active span {
  color: var(--white)
}

.lookbook__grid {
  display: grid;
  gap: 32px
}

.catalog__no-results {
  display: none;
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px
}

.lookbook-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  animation: fadeUp .6s ease both
}

.lookbook-row:nth-child(odd) .lookbook-row__visual {
  order: 1
}

.lookbook-row:nth-child(odd) .lookbook-row__info {
  order: 2
}

.lookbook-row:nth-child(even) .lookbook-row__visual {
  order: 2
}

.lookbook-row:nth-child(even) .lookbook-row__info {
  order: 1
}

.lookbook-row__visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition)
}

.lookbook-row__visual:hover {
  transform: scale(1.02)
}

.lookbook-row__visual span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(44, 62, 44, .35);
  text-align: center;
  padding: 20px
}

.lookbook-row__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0
}

.lookbook-row__cat {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 8px
}

.lookbook-row__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px
}

.lookbook-row__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 16px
}

.lookbook-row__desc {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px
}

.lookbook-row__btn {
  align-self: flex-start;
  padding: 10px 24px;
  border: 1px solid var(--sage);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--sage);
  background: transparent;
  transition: all var(--transition)
}

.lookbook-row__btn:hover {
  background: var(--sage);
  color: var(--white)
}

.lookbook-row__btn.added {
  background: #e8faf0;
  border-color: #25D366;
  color: #1ebe57
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease
}

.modal.active {
  opacity: 1;
  pointer-events: all
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px)
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 700px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  transform: scale(.92);
  transition: transform .3s ease
}

.modal.active .modal__content {
  transform: scale(1)
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: var(--text-dim);
  z-index: 2;
  transition: color var(--transition)
}

.modal__close:hover {
  color: var(--text)
}

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

.modal__image-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center
}

.modal__image-wrapper span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(44, 62, 44, .3)
}

.modal__info {
  padding: 28px
}

.modal__category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sage-light);
  color: var(--sage);
  font-size: .75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px
}

.modal__price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 16px
}

.modal__description {
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7
}

.modal__add-btn {
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition)
}

.modal__add-btn.not-in-cart {
  background: var(--sage);
  color: var(--white)
}

.modal__add-btn.not-in-cart:hover {
  background: var(--sage-hover);
  transform: translateY(-1px)
}

.modal__add-btn.in-cart {
  background: #e8faf0;
  color: #1ebe57;
  border: 1px solid #25D366
}

/* ===== UBICACIÓN con mapa (estilo sage) ===== */
.ubicacion {
  padding: 80px 20px;
  background: var(--bg2)
}

.ubicacion__container {
  max-width: 1100px;
  margin: 0 auto
}

.ubicacion__map {
  max-width: 900px;
  margin: 0 auto
}

.ubicacion__map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(44, 62, 44, .12)
}

/* ===== FOOTER (Contacto + marca, estilo sage) ===== */
.footer {
  padding: 0;
  background: var(--sage);
  text-align: center
}

.footer__container {
  max-width: 1100px;
  margin: 0 auto
}

.footer__sections {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 64px 20px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .2)
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 24px
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 560px;
  text-align: center
}

.footer__contact-item h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-light);
  margin-bottom: 8px
}

.footer__contact-item p,
.footer__contact-item a {
  color: var(--white);
  font-size: .95rem;
  transition: color var(--transition)
}

.footer__contact-item a:hover {
  color: var(--sage-light)
}

.footer__socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 6px
}

.footer__socials a {
  color: var(--white);
  transition: color var(--transition), transform var(--transition)
}

.footer__socials a:hover {
  color: var(--sage-light);
  transform: translateY(-2px)
}

.footer__bottom {
  padding: 24px 20px;
  text-align: center
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px
}

.footer__copy {
  font-size: .75rem;
  color: rgba(255, 255, 255, .6)
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2s infinite
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5)
}

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

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

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4)
  }

  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, .6)
  }
}

@media(max-width:768px) {
  .filter-btn {
    width: 100px
  }

  .filter-btn img {
    height: 70px
  }

  .lookbook-row {
    grid-template-columns: 1fr
  }

  .lookbook-row:nth-child(odd) .lookbook-row__visual,
  .lookbook-row:nth-child(even) .lookbook-row__visual {
    order: 1
  }

  .lookbook-row:nth-child(odd) .lookbook-row__info,
  .lookbook-row:nth-child(even) .lookbook-row__info {
    order: 2
  }

  .lookbook-row__visual {
    aspect-ratio: 16/10
  }

  .modal__body {
    flex-direction: column
  }

  .modal__image-wrapper {
    aspect-ratio: 16/9
  }

  .ubicacion {
    padding: 48px 16px
  }

  .ubicacion__map iframe {
    height: 280px
  }

  .footer__sections {
    gap: 36px;
    padding: 48px 20px 32px
  }

  .footer__contact {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
  }
}

@media(min-width:769px) {
  .modal__body {
    flex-direction: row
  }

  .modal__image-wrapper {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 300px
  }

  .modal__info {
    width: 50%;
    padding: 32px
  }
}

/* IMÁGENES DE PRODUCTOS */
.lookbook-row__visual {
  position: relative
}

.lookbook-row__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.modal__image-wrapper {
  position: relative;
  overflow: hidden
}

.modal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius)
}