:root{
  --green1:#2e856e;
  --green2:#246b58;
  --gold:#ffb703;
  --gold2:#ffd166;
  --bg:#fafafa;
  --text:#333;
  --shadow1: 0 10px 25px rgba(0,0,0,0.08);
  --shadow2: 0 18px 45px rgba(0,0,0,0.18);
  --radius: 15px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

html{ scroll-behavior:smooth; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* =========================
   HEADER STICKY + GLASS
========================= */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--green1), var(--green2));
  color:#fff;
  box-shadow: var(--shadow1);
  transform: translateY(0);
  transition: background .28s ease, box-shadow .28s ease, backdrop-filter .28s ease;
}

/* ✅ ya no usamos .hide, pero lo dejo por si existe en HTML viejo */
.site-header.hide{ transform: translateY(0) !important; }

.site-header.compact{
  background: rgba(36,107,88,0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.site-header.compact .headline,
.site-header.compact .mini-badges{ display:none; }
.site-header.compact h1{ font-size: 2.05rem; }
.site-header.compact .header-inner{ padding: 14px 0; }

.header-inner{
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px 0;
  text-align: center;
}

.brand{ display:grid; gap:10px; }

h1{
  margin:0;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
h1 span{ color: var(--gold); }

h1::after{
  content:"";
  display:block;
  width:80px;
  height:4px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius:2px;
}

.headline{
  margin:6px auto 0;
  max-width:900px;
  opacity:.95;
}

/* ✅ Capsule "Handmade • Cricut • Local delivery" (más tenue + más lento) */
.mini-badges{
  position: relative;
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight:600;
  margin: 0 auto;
  overflow: hidden;

  /* más lento y más suave */
  animation: badgePulse 4.8s ease-in-out infinite;
  transform-origin: center;
}

/* rayo de luz tenue (más lento + menos brillo) */
.mini-badges::before{
  content:"";
  position:absolute;
  top:-60%;
  left:-60%;
  width: 70%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.0) 38%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0.0) 62%,
    transparent 100%
  );
  transform: rotate(18deg);
  opacity: .65;                 /* ✅ más tenue */
  animation: badgeShine 6.8s ease-in-out infinite; /* ✅ más lento */
  pointer-events:none;
}

/* glow muy leve (más lento) */
.mini-badges::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 20% 30%, rgba(255,183,3,0.14), transparent 55%);
  opacity: .22;
  animation: badgeGlow 7.5s ease-in-out infinite;
  pointer-events:none;
}

@keyframes badgePulse{
  0%,100%{
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255,183,3,0.0);
  }
  50%{
    transform: scale(1.02); /* ✅ menos fuerte */
    box-shadow: 0 0 16px rgba(255,183,3,0.12);
  }
}

@keyframes badgeShine{
  0%{ transform: translateX(-130%) rotate(18deg); opacity: 0; }
  18%{ opacity: .65; }
  48%{ transform: translateX(240%) rotate(18deg); opacity: .65; }
  68%{ opacity: 0; }
  100%{ transform: translateX(240%) rotate(18deg); opacity: 0; }
}

@keyframes badgeGlow{
  0%,100%{ transform: scale(1); opacity: .18; }
  50%{ transform: scale(1.08); opacity: .28; }
}

/* NAV */
.nav{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.14);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* ✅ BANDERAS (glass, flotantes, sin mover layout) */
.header-actions{
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
}
.lang-switch{
  display:flex;
  gap:10px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lang-flag{
  border:0;
  background: transparent;
  cursor:pointer;
  font-size: 22px;
  padding: 6px 8px;
  border-radius:999px;
  opacity:.82;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.lang-flag:hover{ opacity:1; transform: translateY(-1px) scale(1.03); }
.lang-flag.active{
  opacity:1;
  background: rgba(255,255,255,0.20);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* Offset por header fijo */
main{ padding-top: 280px; }

/* =========================
   HERO
========================= */
.hero{
  height:80vh;
  background-image:url("imagenes/hero.webp");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  will-change: background-position;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  pointer-events:none;
}

.hero-content{
  position:relative;
  z-index:1;
  color:#fff;
  text-align:center;
  padding: 0 18px;
  animation: fadeUp 1.15s ease forwards;
}

.hero h2{ font-size:3rem; margin-bottom:1rem; }
.hero p{ font-size:1.2rem; margin-bottom:2rem; opacity:.95; }

.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn-hero{
  background: var(--gold);
  color:#333;
  padding:.9rem 2rem;
  border-radius:30px;
  text-decoration:none;
  font-weight:800;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}
.btn-hero:hover{ background: var(--gold2); transform: translateY(-3px) scale(1.02); }

.btn-outline{
  background: rgba(255,255,255,0.16);
  color:#fff;
  border:1px solid rgba(255,255,255,0.22);
}
.btn-outline:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.22);
}

/* =========================
   SECTIONS
========================= */
.section{
  padding:4rem 1.5rem;
  max-width:1200px;
  margin:auto;
  text-align:center;
}
.section.alt{ background:#e8f5f1; }

.section-head{
  display:grid;
  gap:10px;
  justify-items:center;
  margin-bottom:12px;
}
.section-sub{ margin:0; opacity:.85; }

/* =========================
   PRODUCT GRID + CARDS
========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:2rem;
  margin-top:30px;
}

.card{
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow1);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform .22s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform;
}

.card img{
  width:100%;
  height:250px;
  object-fit:cover;
  transition: transform .35s ease;
}

.card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow2);
  filter: saturate(1.03);
}
.card:hover img{ transform: scale(1.07); }

.card h3{ margin:1rem 0 .35rem; padding:0 14px; }

.card .price{
  margin:0 0 10px;
  padding:0 14px;
  font-weight:800;
  color: var(--green1);
  font-size:1.05rem;
}

.card-actions{
  display:grid;
  gap:10px;
  padding: 0 14px 16px;
}

.btn-card{
  width:100%;
  border:none;
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  cursor:pointer;
  transition: transform .16s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-ghost{
  background: rgba(36,107,88,0.08);
  color: var(--green2);
  border: 1px solid rgba(36,107,88,0.18);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

/* =========================
   LISTA
========================= */
.lista{
  list-style:none;
  padding:0;
  max-width:520px;
  margin:18px auto 0;
  text-align:left;
}
.lista li{ padding:.9rem 0; border-bottom:1px solid #ddd; }

/* =========================
   CONTACT
========================= */
.contact-box{
  background:#fff;
  padding:2rem;
  display:inline-block;
  border-radius:12px;
  box-shadow: var(--shadow1);
  text-align:left;
  max-width:640px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.contact-box:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
}

.contact-cta{
  display:inline-block;
  margin-top:14px;
  background: var(--gold);
  color:#333;
  font-weight:900;
  padding:12px 18px;
  border-radius:999px;
  text-decoration:none;
  transition: transform .18s ease, background .2s ease;
}
.contact-cta:hover{ background: var(--gold2); transform: translateY(-2px); }

/* =========================
   FOOTER
========================= */
footer{
  background: var(--green2);
  padding:25px;
  color:#fff;
  text-align:center;
}
footer .powered a{ color:inherit; text-decoration:none; }
footer .powered a:hover{ text-decoration:underline; }

/* =========================
   REVEAL ANIMATION
========================= */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.show{ opacity:1; transform: translateY(0); }

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(30px); }
  to{ opacity:1; transform: translateY(0); }
}

/* =========================
   FLOATING SOCIALS
========================= */
.whatsapp-float,
.tiktok-float{
  position:fixed !important;
  right:25px !important;
  width:55px;
  height:55px;
  border-radius:50%;
  display:flex !important;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,0.25);
  z-index:99999 !important;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration:none;
}

.tiktok-float{
  bottom: 90px !important;
  background: linear-gradient(135deg,#25F4EE,#000,#FE2C55);
  color:#fff;
  font-size:26px;
  animation: tiktokGlow 3.5s ease-in-out infinite;
}
@keyframes tiktokGlow{
  0%{ box-shadow:0 6px 20px rgba(0,0,0,0.25); }
  50%{ box-shadow:0 10px 28px rgba(254,44,85,0.45); }
  100%{ box-shadow:0 6px 20px rgba(0,0,0,0.25); }
}

.whatsapp-float{
  bottom:25px !important;
  background:#25d366;
  animation: pulse 2.7s ease-in-out infinite;
}
.whatsapp-float img{ width:28px; height:28px; }

@keyframes pulse{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.08); }
  100%{ transform: scale(1); }
}

.whatsapp-float:hover,.tiktok-float:hover{
  transform: scale(1.12);
  box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px){
  main{ padding-top: 260px; }
  h1{ font-size: 2.1rem; }
  .hero{ height: 70vh; }
  .hero h2{ font-size: 2rem; }
  .hero p{ font-size: 1rem; }
  .header-actions{ right: 12px; top: 12px; }
}

/* Fade idioma */
body.lang-fade{
  transition: opacity .18s ease;
  opacity: .92;
}