/* ================================
   components.css (DEFINITIVO)
   - Botones + Cards + Colección + Modales + WhatsApp + Footer
   - Sin duplicar cosas del header/home/base
================================= */


/* ─────────────────────────────
   BOTONES (global)
───────────────────────────── */
.btn{
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--text-main-light);
  cursor: pointer;

  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn--primary{
  background: var(--almatti-paper);
  color: var(--text-main-dark);
  border-color: transparent;
}

.btn--primary:hover{
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.btn--ghost{
  background: transparent;
}
.btn--ghost:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.40);
}


/* ─────────────────────────────
   GRID / CARDS PRODUCTO
───────────────────────────── */
.product-grid{
  display: grid;
  gap: 2.2rem;
  padding-top: 0.5rem;
}

@media (min-width: 700px){
  .product-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .product-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.product-card{
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--almatti-paper);
  box-shadow: var(--shadow-soft);
  color: var(--text-main-dark);

  /* hover suave premium (sin depender de .card genérico) */
  transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease;
}
.product-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0,0,0,.45);
}

.product-card__accent{
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 20%;
  background-color: var(--product-accent, var(--almatti-grey));
}

.product-card__inner{
  position: relative;
  padding: 1.6rem 1.6rem 1.4rem;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.product-card__top{
  display:flex;
  justify-content:flex-end;
  margin-bottom: .6rem;
}

.product-gender{
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.65);
  color: rgba(33,35,34,.85);
}

.product-gender--masculino{ background: rgba(208,208,206,.85); }
.product-gender--femenino { background: rgba(255,194,123,.70); }
.product-gender--unisex   { background: rgba(208,222,187,.70); }

.product-card__header{ margin-bottom: 1rem; }

.product-card__name{
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.submark{
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.product-card__tagline{
  margin: 0;
  color: rgba(33,35,34,.65);
}

.product-card__image-wrapper{
  margin: 0.9rem 0 1.1rem;
  display: flex;
  justify-content: center;
}

.product-card__image{
  width: 100%;
  max-width: 140px; /* +grande y consistente */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.18));
}

.product-card__notes{
  font-size: 0.8rem;
  margin: 0 0 1rem;
  line-height: 1.65;
  color: rgba(33,35,34,.80);
}

.product-card__notes.is-clamped{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.product-card__meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.product-card__volume{
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__price{
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Footer de acciones dentro de card */
.product-card__footer{
  margin-top: .9rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
}

.product-card__cta{
  border: none;
  background-color: var(--almatti-nero);
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.product-card__cta:hover{
  background-color: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.product-card__footer .product-card__cta{
  width: auto;
  padding: .65rem 1.1rem;
  font-size: .76rem;
}

.product-card__detail{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
  color: rgba(33,35,34,.75);
}
.product-card__detail:hover{ opacity: 1; }

/* Botón “Ver más” si lo usás como texto */
.product-card__more{
  margin-top: .75rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  color: rgba(33,35,34,.72);
  text-align: left;
}
.product-card__more:hover{
  color: rgba(33,35,34,.92);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Panel de detalles inline (si lo usás) */
.product-card__details{
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(33,35,34,.12);
}
.product-card__details-title{
  margin: 0 0 .55rem;
  font-family: var(--font-heading);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}
.product-card__details-text{
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(33,35,34,.78);
}

/* Variantes por perfume */
.product-card--libero   { --product-accent: var(--almatti-libero); }
.product-card--amoretta { --product-accent: var(--almatti-amoretta); }
.product-card--luce     { --product-accent: var(--almatti-luce); }
.product-card--leone    { --product-accent: var(--almatti-leone); }
.product-card--nero     { --product-accent: var(--almatti-nero-accent); }

/* Mensaje sin resultados */
.search-empty{
  margin-top: 1rem;
  opacity: 0.85;
  letter-spacing: 0.06em;
}


/* ─────────────────────────────
   COLECCIÓN: filtros (único)
───────────────────────────── */
.collection-toolbar{
  display:flex;
  justify-content:center;
  margin: 0.2rem 0 2rem;
}

.collection-filters{
  display:flex;
  flex-wrap:wrap;
  gap: .6rem;
  align-items:center;
  justify-content:center;
}

.filter-pill{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.88);
  padding: .45rem .9rem;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.filter-pill:hover{
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.filter-pill.is-active{
  background: var(--almatti-paper);
  color: var(--text-main-dark);
  border-color: transparent;
}


/* ─────────────────────────────
   SEARCH MODAL
───────────────────────────── */
.search-modal{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.search-modal.search-modal--open{ display: block; }

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

.search-modal__panel{
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin: calc(var(--header-height) + 18px) auto 0;
  border-radius: var(--radius-xl);
  background: rgba(239,239,239,0.96);
  color: var(--text-main-dark);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.2rem 1rem;
}

.search-modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.9rem;
}

.search-modal__title{
  font-family: var(--font-heading);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: .95rem;
  margin: 0;
}

.search-modal__close{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(33,35,34,0.18);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
}

.search-modal__form{
  display:flex;
  gap:.6rem;
  align-items:center;
}

.search-modal__input{
  flex:1;
  border-radius:999px;
  border:1px solid rgba(33,35,34,0.18);
  background: rgba(255,255,255,0.85);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  outline:none;
}
.search-modal__input:focus{ border-color: rgba(33,35,34,0.35); }

.search-modal__hint{
  margin: .7rem 0 0;
  font-size: .82rem;
  color: rgba(33,35,34,0.7);
}


/* ─────────────────────────────
   MODAL PERFUME (si lo usás)
───────────────────────────── */
.product-modal{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.product-modal.product-modal--open{ display:block; }

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

.product-modal__panel{
  position: relative;
  width: min(980px, calc(100% - 2rem));
  margin: calc(var(--header-height) + 18px) auto 0;
  border-radius: var(--radius-xl);
  background: rgba(239,239,239,.97);
  color: var(--text-main-dark);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.2rem 1.1rem;
}

.product-modal__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  margin-bottom: .9rem;
}

.product-modal__eyebrow{
  font-family: var(--font-mono);
  letter-spacing:.18em;
  text-transform: uppercase;
  font-size:.7rem;
  opacity:.7;
  margin:0 0 .35rem;
}

.product-modal__title{
  font-family: var(--font-heading);
  letter-spacing:.18em;
  text-transform: uppercase;
  margin:0;
  font-weight:500;
}

.product-modal__tagline{ margin:.45rem 0 0; opacity:.75; }

.product-modal__close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(33,35,34,.18);
  background: rgba(255,255,255,.75);
  cursor:pointer;
}

.product-modal__body{
  display:grid;
  gap: 1.2rem;
}
@media (min-width: 860px){
  .product-modal__body{
    grid-template-columns: 320px 1fr;
    align-items:start;
  }
}

.product-modal__media img{
  width:100%;
  border-radius: 18px;
  background: rgba(0,0,0,.03);
  object-fit: contain;
  max-height: 360px;
  padding: 1rem;
}

.product-modal__meta{
  display:flex;
  justify-content:space-between;
  margin-top:.8rem;
  font-family: var(--font-mono);
  letter-spacing:.12em;
  text-transform: uppercase;
  font-size:.78rem;
}

.product-modal__notes{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(33,35,34,.10);
  border-radius: 18px;
  padding: 1rem;
  line-height: 1.75;
  font-size: .95rem;
}

.product-modal__actions{
  margin-top: 1rem;
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
}


/* ─────────────────────────────
   WHATSAPP FLOAT
───────────────────────────── */
.whatsapp-float{
  position: fixed;
  right: max(1.2rem, env(safe-area-inset-right));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  height: 52px;
  padding: 0 14px;
  border-radius: 999px;

  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);

  box-shadow: 0 16px 38px rgba(0,0,0,0.55);
  z-index: 60;
  text-decoration: none;

  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.62);
  border-color: rgba(255, 255, 255, 0.22);
}

.whatsapp-float__icon{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: radial-gradient(circle at 30% 20%, rgba(37,211,102,0.35), rgba(37,211,102,0.18));
  color: #25D366;
  box-shadow: inset 0 0 0 1px rgba(37,211,102,0.25);
}

.whatsapp-float__label{
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  padding-right: 6px;
}

@media (max-width: 768px){
  .whatsapp-float{
    width: 52px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-float__label{ display: none; }
}


/* ─────────────────────────────
   EFECTOS PREMIUM (reveal + stagger)
───────────────────────────── */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .reveal, .reveal *{ transition: none !important; animation: none !important; }
}

.reveal{
  opacity: 0;
  transform: translate3d(0,16px,0);
  filter: blur(2px);
  transition:
    opacity .75s ease,
    transform .85s cubic-bezier(.2,.9,.2,1),
    filter .85s ease;
  will-change: opacity, transform, filter;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal[data-reveal="left"]{ transform: translate3d(-16px,0,0); }
.reveal[data-reveal="right"]{ transform: translate3d(16px,0,0); }
.reveal[data-reveal="zoom"]{ transform: scale(.98); }
.reveal.is-visible[data-reveal="zoom"]{ transform: scale(1); }

.stagger > *{
  opacity: 0;
  transform: translate3d(0,14px,0);
  transition:
    opacity .65s ease,
    transform .75s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}
.stagger.is-visible > *{
  opacity: 1;
  transform: none;
}


/* ─────────────────────────────
   FOOTER (GLOBAL / PREMIUM)
───────────────────────────── */
.site-footer{
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(255,255,255,.06), transparent 60%),
    #0b0b0b;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2.8rem 0 2rem;
  font-size: .86rem;

  /* deja aire para botón flotante WhatsApp */
  padding-bottom: calc(2.8rem + 90px);
}

.footer__top{
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 980px){
  .footer__top{
    grid-template-columns: 1.3fr 0.9fr 1.2fr;
    gap: 2.4rem;
  }
}

.footer__brand{
  font-family: var(--font-heading);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.95);
}

.footer__text{
  color: rgba(255,255,255,.70);
  line-height: 1.75;
  max-width: 34rem;
  margin: 0;
}

.footer__title{
  font-family: var(--font-heading);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 .9rem;
  color: rgba(255,255,255,.92);
}

.footer__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}

.footer__list a{
  color: rgba(255,255,255,.72);
  text-decoration: none;
  letter-spacing: .06em;
  transition: opacity .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.footer__list a:hover{
  opacity: 1;
  transform: translateX(2px);
}

/* Newsletter */
.footer__newsletter{
  display: grid;
  gap: .6rem;
}

/* soporta tu HTML actual (input + button en columna) */
.footer__input{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  padding: .7rem 1rem;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
  outline: none;
}

.footer__input::placeholder{ color: rgba(255,255,255,.45); }

.footer__input:focus{
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
}

.footer__cta{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.92);
  color: #111;
  padding: .72rem 1.05rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}

.footer__cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,1);
}

.footer__bottom{
  display:flex;
  flex-wrap:wrap;
  gap: .6rem 1.25rem;
  justify-content: space-between;
  align-items:center;
  padding-top: 1.2rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.50);
}

.footer__motto{ opacity: .85; }
.footer__dev{ opacity: .9; }

@media (max-width: 720px){
  .footer__bottom{
    justify-content:center;
    text-align:center;
  }
}

/* accesibilidad */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

