/* ===============================
   CAROUSEL (safeguard)
================================= */
.carousel { position: relative; overflow: hidden; width: 100%; border-radius: 18px; box-shadow: 0 12px 28px rgba(26,38,52,0.10); background:#fff; }
.carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 8px; justify-content: center; }
.carousel-dot { width: 10px; height: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.35); cursor: pointer; }
.carousel-dot.is-active { background: rgba(255,255,255,0.9); }

/* ===============================
   GRID
================================= */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width:1100px){ .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width:820px){  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:520px){  .grid{ grid-template-columns: repeat(1, minmax(0,1fr)); } }

/* ===============================
   PRODUCT FLIP (método estable)
================================= */
.p-card{ perspective: 1200px; }

.p-card-inner{
  position:relative;
  width:100%;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 24px rgba(26,38,52,0.12);
  border: 1px solid rgba(26,38,52,0.08);
}

.p-face{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transition: transform 600ms ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.p-front{ transform: rotateY(0deg); }
.p-back{  transform: rotateY(-180deg); }

.p-card:hover .p-front{ transform: rotateY(180deg); }
.p-card:hover .p-back{  transform: rotateY(0deg); }

.p-face img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background:#fff;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

.p-name{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.2;
  text-align:center;
  color: rgba(26,38,52,0.86);
}

/* ===============================
   PRODUCTS COLLAPSIBLE
================================= */
.products-collapsible[data-collapsed="true"]{
  max-height: 360px;
  overflow:hidden;
  position:relative;
}

.products-collapsible[data-collapsed="true"]::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(243,239,230,0), rgba(243,239,230,1));
}

.btn-link{
  margin-top: 14px;
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  color: rgba(26,38,52,0.86);
}
.btn-link:hover{ opacity: 0.7; }

/* ============================================================
   FRAGRANCES CAROUSEL (HOME) — Full width, con nav + autoplay
============================================================ */

:root{ --page-side: 40px; }
@media (max-width: 720px){ :root{ --page-side: 14px; } }

.fr-carousel--full{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  position: relative;
  overflow: hidden;

  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  box-shadow: none;
  border: none;
}

.fr-carousel-track{
  display:flex;
  gap:16px;
  padding: 18px var(--page-side);
  overflow: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.fr-carousel-track::-webkit-scrollbar{ height: 0; }

.fr-card{
  flex: 0 0 450px;
  text-decoration:none;
  color:inherit;
  scroll-snap-align: start;
}
@media (max-width: 1100px){ .fr-card{ flex-basis: 450px; } }
@media (max-width: 820px){ .fr-card{ flex-basis: calc(100% - 80px); } }

.fr-card .p-card-inner{
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.fr-card .p-face img{ object-fit: cover; }

/* Back de fragancia corregido */
.fr-card-back{
  height: 100%;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  background: linear-gradient(180deg, rgba(243,239,230,0.92), rgba(230,221,206,0.96));
}

.fr-card-back-title{
  font-family: "ClashDisplay","Gotham",sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: rgba(26,38,52,0.92);
  letter-spacing: -0.2px;
  line-height: 1.12;
  margin-bottom: 4px;
}

.fr-card-back-desc{
  font-family: "Gotham", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(48,59,65,0.85);
  margin-bottom: 8px;
}

/* Meta compacto: SIN margin-top:auto para evitar hueco gigante */
.fr-meta{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.fr-card-back-notes,
.fr-card-back-mood{
  font-family: "Gotham", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(26,38,52,0.78);
}

.fr-card-back-notes strong,
.fr-card-back-mood strong{
  display: block;
  margin-bottom: 4px;
  font-family: "ClashDisplay","Gotham",sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(26,38,52,0.88);
}

.fr-card .p-name{
  font-size: 12.5px;
  margin-top: 10px;
}

/* Nav buttons */
.fr-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:5;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  border: 1px solid rgba(26,38,52,0.14);
  background: rgba(243,239,230,0.88);
  backdrop-filter: blur(10px);

  cursor:pointer;
  display:grid;
  place-items:center;

  font-size: 20px;
  line-height:1;
  color: rgba(26,38,52,0.86);
  opacity: 0.92;
}
.fr-nav:hover{ border-color: rgba(199,132,4,0.55); }

.fr-nav--prev{ left: 10px; }
.fr-nav--next{ right: 10px; }

.fr-carousel-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding-top:12px;
}
.fr-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border: 1px solid rgba(26,38,52,0.25);
  background: transparent;
  cursor:pointer;
}
.fr-dot.active{
  background: rgba(199,132,4,0.65);
  border-color: rgba(199,132,4,0.65);
}

@media (prefers-reduced-motion: reduce){
  .fr-carousel-track{ scroll-behavior: auto; }
}

/* =====================================================
   CONTACT — split layout (image + form)
===================================================== */
.section-contact{ background: #ECE5D8; }

.contact-wrap{
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.contact-visual{
  flex: 1.15;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
  box-shadow: 0 12px 28px rgba(26,38,52,0.06);
  border: 1px solid rgba(26,38,52,0.08);
  min-height: 520px;
}

.contact-visual img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.contact-visual-placeholder{
  width:100%;
  height:100%;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(230,221,206,.65));
}

.contact-card{
  flex: 0.85;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(26,38,52,0.08);
  box-shadow: 0 12px 28px rgba(26,38,52,0.06);
  padding: 26px;
}

.contact-title{ margin: 0 0 10px 0; }

.contact-subtitle{
  margin: 0 0 18px 0;
  color: rgba(48,59,65,.72);
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field span{
  display:block;
  font-size: 12px;
  letter-spacing: .2px;
  color: rgba(26,38,52,.78);
  margin-bottom: 6px;
}

.field input,
.field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(26,38,52,0.12);
  background: rgba(243,239,230,0.55);
  padding: 12px 12px;
  font-family: "Gotham", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: rgba(26,38,52,0.88);
  outline: none;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(199,132,4,.55);
  box-shadow: 0 0 0 3px rgba(199,132,4,.15);
}

.contact-cta{
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.contact-meta{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(48,59,65,.72);
}

@media (max-width: 920px){
  .contact-wrap{ flex-direction: column; }
  .contact-visual{ min-height: 360px; }
}

/* ===============================
   LEGAL
================================= */
.section-legal{ background:#ECE5D8; }
.legal-wrap{ max-width:760px; }
.section-legal h1{ margin-bottom:20px; }
.section-legal h2{ margin-top:28px; margin-bottom:10px; font-size:20px; }
.section-legal p{ line-height:1.65; margin-bottom:12px; color:rgba(26,38,52,.85); }
.section-legal ul{ margin-left:20px; margin-bottom:14px; }
.legal-date{ margin-top:30px; font-size:13px; color:rgba(26,38,52,.55); }

/* ===============================
   Cookie banner (basic, premium)
================================= */
.cookie-banner{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2000;

  background: rgba(243,239,230,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(26,38,52,0.12);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(26,38,52,0.18);
}

.cookie-banner__inner{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content: space-between;
  padding: 14px 14px;
}

.cookie-banner__text{
  font-size: 13px;
  color: rgba(26,38,52,0.78);
  line-height: 1.35;
  max-width: 780px;
}

.cookie-banner__actions{
  display:flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(26,38,52,0.14);
}

.cookie-btn--ghost{ background: rgba(255,255,255,0.35); }

.cookie-btn--primary{
  background: #A55439;
  border-color: rgba(165,84,57,0.55);
  color: #fff;
}
.cookie-btn--primary:hover{ opacity: .92; }

@media (max-width: 720px){
  .cookie-banner__inner{ flex-direction: column; align-items: stretch; }
  .cookie-banner__actions{ justify-content: stretch; }
  .cookie-btn{ width: 100%; }
}

/* ===============================
   PRODUCTS — always fill square
================================= */
#products .p-card-inner{
  aspect-ratio: 1 / 1;
  min-height: 0;
}

#products .p-face img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* ===============================
   ABOUT — centered editorial premium
================================= */
.section-about{
  background: linear-gradient(180deg, rgba(243,239,230,0.0), rgba(230,221,206,0.45));
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-about .container{
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
  padding-block: 72px;
  display: flex;
  justify-content: center;
}

.about-wrap{
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.about-kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(26,38,52,.62);
  margin-bottom: 14px;
}

.about-title{
  margin: 0 0 18px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

.about-lead{
  font-size: 18px;
  line-height: 1.65;
  color: rgba(26,38,52,.78);
  margin-bottom: 18px;
  max-width: 70ch;
}

.about-body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  margin-top: 18px;
}

.about-body p{
  margin: 0;
  color: rgba(26,38,52,.74);
  font-size: 16px;
  line-height: 1.75;
}

.about-quote{
  margin-top: 26px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(26,38,52,0.10);
  color: rgba(26,38,52,.78);
  font-style: italic;
  max-width: none;
}

@media (max-width: 900px){
  .about-body{ grid-template-columns: 1fr; }
  .about-wrap{ max-width: 720px; }
}