/* RESET */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* VARIABLES GLOBALES */

:root{
  --color-principal:#111;
  --color-secundario:#fff;
  --color-acento:#c8a46b;

  --fuente-principal:"Montserrat",sans-serif;

  --transicion:.4s ease;
}

/* BASE */

html{
  scroll-behavior:smooth;
}

body{
  background:
    radial-gradient(
      circle at top left,
      rgba(114,47,55,.05),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(216,188,130,.10),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f7f3ea 0%,
      #ffffff 100%
    );

  background-attachment:fixed;

  color:var(--color-secundario);
  font-family:var(--fuente-principal);

  overflow-x:hidden;

  opacity:0;
  transition:opacity .45s ease;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;

  background:
    radial-gradient(circle at 12% 18%, rgba(114,47,55,.12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(216,188,130,.22), transparent 34%),
    linear-gradient(180deg, #f7f3ea 0%, #fff 100%);
}

body.page-loaded{
  opacity:1;
}

body.menu-open{
  overflow:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  width:100%;
  display:block;
}

section{
  padding:100px 10%;
}

h1,
h2,
h3{
  font-weight:300;
  letter-spacing:2px;
}

/* HEADER */

.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:82px;
  z-index:1000;
  background:#fff;
  transition:
    background .35s ease,
    box-shadow .35s ease,
    transform .35s ease,
    height .35s ease;
}

.site-header.scrolled{
  top:8px;
  left:50%;
  width:96%;
  height:74px;
  transform:translateX(-50%);
  border-radius:10px;
  box-shadow:0 4px 18px rgba(0,0,0,.12);
}

.header-inner{
  max-width:1580px;
  height:100%;
  margin:0 auto;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LOGO */

.logo{
  display:flex;
  align-items:center;
  transition:
    transform .3s ease,
    opacity .3s ease;
}

.logo:hover{
  transform:translateY(-3px);
  opacity:.85;
}

.logo img{
  width:135px;
  height:auto;
  display:block;
  transition:width .3s ease;
}

.site-header.scrolled .logo img{
  width:120px;
}

/* NAV */

.main-nav{
  display:flex;
  align-items:center;
  gap:38px;
}

.main-nav a{
  position:relative;
  padding:5px 0;
  font-size:18px;
  font-weight:500;
  letter-spacing:.3px;
  color:#2d2d2d;
  transition:
    color .3s ease,
    opacity .3s ease;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-2px;
  width:0%;
  height:1px;
  background:#722f37;
  transform:translateX(-50%);
  transition:width .35s ease;
}

.main-nav a:hover{
  color:#722f37;
}

.main-nav a:hover::after,
.main-nav a.active::after{
  width:100%;
}

.main-nav a.active{
  color:#722f37;
  font-weight:700;
}

/* FOOTER ACTIVE */

.footer-column ul li a{
  position:relative;
  display:inline-block;
  transition:color .3s ease;
}

.footer-column ul li a.active{
  color:#722f37;
  font-weight:700;
}

.footer-column ul li a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:1px;
  background:#722f37;
}

/* CARRITO */

.cart{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#555;
  font-size:16px;
  line-height:1;
  transition:
    color .3s ease,
    transform .3s ease;
}

.cart:hover{
  color:#722f37;
  transform:translateY(-2px);
}

.cart-icon{
  width:34px;
  height:34px;
  display:block;
  margin-top:4px;
  background:url("carrito.png") center/contain no-repeat;
  font-size:0;
  line-height:0;
  text-indent:-9999px;
  overflow:hidden;
  white-space:nowrap;
}

/* FOOTER */

.site-footer{
  padding-top:80px;
  background:#111;
  color:#ddd;
}

.footer-container{
  max-width:1400px;
  margin:0 auto;
  padding:0 8%;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:60px;
}

.footer-logo{
  width:170px;
  margin-bottom:20px;
}

.footer-description{
  font-size:15px;
  line-height:1.7;
  color:#888;
}

.footer-column h3{
  margin-bottom:22px;
  font-size:18px;
  font-weight:600;
  letter-spacing:1px;
  color:#fff;
}

.footer-column ul{
  list-style:none;
}

.footer-column ul li{
  margin-bottom:14px;
}

.footer-column a{
  display:inline-block;
  color:#888;
  transition:color .3s ease;
}

.footer-column a:hover{
  color:#722f37;
}

.footer-socials{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.footer-logo-link{
  display:inline-block;
}

.footer-logo{
  width:170px;
  margin-bottom:20px;
  display:block;
  transition:
    transform .3s ease,
    opacity .3s ease;
}

.footer-logo-link:hover .footer-logo{
  transform:translateY(-4px);
  opacity:.8;
}

.footer-legal{
  margin-top:50px;
  padding:0 20px;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.footer-legal a,
.footer-legal span{
  font-size:14px;
  color:#777;
}

.footer-legal a{
  transition:color .3s ease;
}

.footer-legal a:hover{
  color:#722f37;
}

.footer-bottom{
  margin-top:70px;
  padding:25px 10px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom p{
  font-size:14px;
  color:#666;
}

/* BACK TO TOP */

#backToTop{
  position:fixed;
  right:28px;
  bottom:28px;
  width:58px;
  height:58px;
  border:none;
  border-radius:20px;
  background:
    linear-gradient(180deg, #8b3c49 0%, #722f37 100%);
  color:#fff;
  font-size:24px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  z-index:99999;
  opacity:0;
  visibility:hidden;
  box-shadow:
    0 18px 36px rgba(114,47,55,.24),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition:
    opacity .3s ease,
    visibility .3s ease,
    transform .3s ease,
    background .3s ease,
    box-shadow .3s ease,
    border-radius .3s ease;
}

#backToTop.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}

#backToTop:hover{
  background:
    linear-gradient(180deg, #9b4755 0%, #7a333d 100%);
  transform:translateY(-4px) scale(1.04);
  box-shadow:
    0 24px 42px rgba(114,47,55,.32),
    inset 0 1px 0 rgba(255,255,255,.24);
}

#backToTop:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.92),
    0 0 0 8px rgba(114,47,55,.28),
    0 18px 36px rgba(114,47,55,.24);
}

#backToTop:active{
  transform:translateY(-1px) scale(.98);
}

/* EDAD LEGAL */

.age-gate{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(6px);
  z-index:10000;
}

.age-box{
  width:430px;
  padding:48px 42px;
  background:#fff;
  text-align:center;
  box-shadow:0 25px 60px rgba(0,0,0,.35);
}

.age-box img{
  width:170px;
  margin:0 auto 34px;
}

.age-box p{
  margin-bottom:34px;
  font-size:19px;
  line-height:1.7;
  color:#444;
}

.age-buttons{
  display:flex;
  justify-content:center;
  gap:18px;
}

.age-buttons button{
  min-width:132px;
  padding:15px 24px;
  border:none;
  font-size:15px;
  letter-spacing:1px;
  cursor:pointer;
  transition:
    transform .3s ease,
    background .3s ease,
    box-shadow .3s ease,
    color .3s ease;
}

#enterSite{
  background:#722f37;
  color:#fff;
  box-shadow:0 10px 24px rgba(114,47,55,.25);
}

#enterSite:hover{
  background:#8d4350;
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(114,47,55,.35);
}

#leaveSite{
  background:#efefef;
  color:#333;
}

#leaveSite:hover{
  background:#dcdcdc;
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(0,0,0,.12);
}

/* PAGE TRANSITION */

.page-transition{
  position:fixed;
  inset:0;
  background:#f5f5f3;
  z-index:99999;

  transform:translateY(100%);
  pointer-events:none;

  transition:
    transform .8s cubic-bezier(.77,0,.18,1);
}

body.page-loaded .page-transition{
  transform:translateY(-100%);
}

body.page-exit .page-transition{
  transform:translateY(0%);
}

.menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(17,17,17,.36);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:950;
  transition:opacity .3s ease, visibility .3s ease;
}

.menu-backdrop.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.menu-toggle{
  width:34px;
  height:26px;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  background:none;
  border:none;
  cursor:pointer;
  z-index:2000;
  padding:0;
  border-radius:999px;
  transition:
    transform .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.menu-toggle span{
  width:100%;
  height:2px;
  background:#222;
  border-radius:0;
  transition:.35s ease;
}

.menu-toggle:hover{
  transform:none;
}

.menu-toggle.active span:nth-child(1){
  width:100%;
  transform:none;
}

.menu-toggle.active span:nth-child(2){
  opacity:1;
  transform:none;
}

.menu-toggle.active span:nth-child(3){
  width:100%;
  transform:none;
}

@media (max-width:1100px){
  .menu-toggle{
    display:flex;
  }

  .main-nav{
    position:fixed;
    top:18px;
    right:18px;
    width:min(360px, calc(100vw - 36px));
    max-height:calc(100vh - 36px);
    padding:86px 26px 32px;
    background:#fffdf8;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:22px;
    border:1px solid rgba(114,47,55,.08);
    border-radius:28px;
    box-shadow:0 24px 60px rgba(33,18,12,.16);
    overflow:auto;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(18px) scale(.98);
    transition:
      opacity .35s ease,
      visibility .35s ease,
      transform .35s ease;
    z-index:1500;
  }

  .main-nav.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0) scale(1);
  }

  .main-nav a{
    width:100%;
    padding:10px 0;
    font-size:20px;
    border-bottom:1px solid rgba(114,47,55,.08);
  }
}

@media (max-width:992px){
  .site-header{
    height:74px;
  }

  .header-inner{
    padding:0 24px;
  }

  .logo img{
    width:115px;
  }

  .main-nav{
    gap:16px;
  }

  .main-nav a{
    font-size:18px;
  }

  .footer-container{
    grid-template-columns:1fr 1fr;
    gap:50px;
  }
}

@media (max-width:768px){
  .site-header{
    height:68px;
  }

  .header-inner{
    padding:0 18px;
  }

  .logo img{
    width:100px;
  }

  .menu-toggle{
    display:flex;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin-left:auto;
    margin-right:14px;
    background:#722f37;
    border:1px solid rgba(114,47,55,.18);
    border-radius:50%;
    box-shadow:0 12px 24px rgba(114,47,55,.18);
    z-index:3000;
  }

  .menu-toggle span{
    width:18px;
    height:2px;
    background:#fff;
    border-radius:999px;
  }

  .menu-toggle.active span:nth-child(1){
    width:18px;
    background:#fff;
    transform:translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2){
    opacity:0;
    transform:scaleX(.3);
  }

  .menu-toggle.active span:nth-child(3){
    width:18px;
    background:#fff;
    transform:translateY(-7px) rotate(-45deg);
  }

  .main-nav{
    top:68px;
    right:0;
    width:100%;
    max-height:calc(100vh - 68px);
    gap:14px;
    padding:20px 22px 28px;
    background:#fff;
    border:none;
    border-top:1px solid rgba(114,47,55,.08);
    border-radius:0 0 22px 22px;
    box-shadow:0 20px 35px rgba(33,18,12,.08);
    transform:translateY(-12px);
  }

  .main-nav a{
    position:relative;
    padding:10px 0;
    font-size:17px;
    font-weight:700;
    letter-spacing:.4px;
    color:#2b201d;
  }

  .main-nav a::after{
    left:0;
    bottom:0;
    width:0;
    height:1px;
    background:#722f37;
    transform:none;
  }

  .cart{
    font-size:14px;
  }

  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }

  .footer-logo-link{
    justify-content:center;
  }

  .footer-socials{
    align-items:center;
  }

  .footer-country{
    justify-content:center;
  }

  .age-box{
    width:92%;
    padding:38px 24px;
  }

  .age-box img{
    width:140px;
  }

  .age-box p{
    font-size:17px;
  }

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

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

@media (max-width:640px){
  .footer-legal{
    flex-direction:column;
    gap:8px;
  }
}

@media (max-width:480px){
  .logo img{
    width:92px;
  }

  .cart{
    font-size:13px;
  }

  .cart-icon{
    width:30px;
    height:30px;
  }

  .main-nav{
    top:68px;
    right:0;
    width:100%;
    padding:18px 16px 24px;
  }

  .menu-toggle{
    margin-right:10px;
  }

  .main-nav a{
    font-size:16px;
  }
}
