/* ===========================================================
   Oh My Strass! — Hoja de estilos principal
   Paleta glam: rosa empolvado, dorado champagne, carbón.
   =========================================================== */

:root {
  --rosa:        #d98aa6;
  --rosa-suave:  #f7e4ea;
  --rosa-claro:  #fdf6f8;
  --oro:         #c9913f;
  --oro-claro:   #e8c684;
  --carbon:      #2a2230;
  --carbon-2:    #3a3240;
  --texto:       #3a3340;
  --texto-suave: #8a8290;
  --blanco:      #ffffff;
  --linea:       #eee0e6;
  --sombra:      0 18px 40px -18px rgba(80, 40, 60, 0.35);
  --sombra-sm:   0 8px 20px -10px rgba(80, 40, 60, 0.3);
  --radio:       18px;
  --radio-sm:    12px;
  --max:         1180px;
  --serif:       'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:        'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--texto);
  background: var(--rosa-claro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .serif { font-family: var(--serif); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.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;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--rosa), #c06a8a);
  color: #fff; box-shadow: var(--sombra-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-gold {
  background: linear-gradient(135deg, var(--oro-claro), var(--oro));
  color: #4a370f; box-shadow: var(--sombra-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-ghost {
  background: transparent; color: var(--carbon);
  border: 1.5px solid var(--linea);
}
.btn-ghost:hover { border-color: var(--rosa); color: var(--rosa); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 246, 248, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 52px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--texto); position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--rosa); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--carbon); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(232,198,132,0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(217,138,166,0.35), transparent 60%),
    linear-gradient(180deg, var(--rosa-claro), #fff);
  padding: 90px 0 110px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--linea); color: var(--rosa);
  padding: 7px 16px; border-radius: 100px; font-weight: 600; font-size: 0.8rem;
  letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--sombra-sm);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.05; margin: 22px 0 18px;
  color: var(--carbon);
}
.hero h1 em { font-style: italic; color: var(--oro); }
.hero p { font-size: 1.12rem; color: var(--texto-suave); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 30px;
  background: linear-gradient(135deg, var(--rosa), var(--oro-claro));
  box-shadow: var(--sombra); display: grid; place-items: center;
}
/* Logo del hero en dos capas: texto fijo + estrella que flota */
.hero-logo-stack { position: absolute; inset: 8%; }
.hero-logo-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.hl-text { filter: drop-shadow(0 10px 20px rgba(80,40,60,0.18)); }
.hl-star {
  animation: floatStar 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(80,40,60,0.28));
  will-change: transform;
}
@keyframes floatStar {
  0%   { transform: translate(0, -3px); opacity: .82; }
  50%  { transform: translate(2px, 3px); opacity: 1; }
  100% { transform: translate(0, -3px); opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-star, .sparkle { animation: none; }
}
.sparkle { position: absolute; color: #fff; opacity: .9; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--carbon); color: #f3e9ee; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 28px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; font-size: 0.92rem; }
.trust-item svg { color: var(--oro-claro); flex-shrink: 0; }

/* ---------- Sección ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 38em; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--rosa); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 0.8rem;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--carbon); margin: 10px 0 14px; }
.section-head p { color: var(--texto-suave); font-size: 1.05rem; }

/* ---------- Filtros ---------- */
.catalog-tools {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 34px;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: #fff; border: 1.5px solid var(--linea); color: var(--texto);
  padding: 9px 18px; border-radius: 100px; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--rosa); }
.chip.active { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid var(--linea); border-radius: 100px; padding: 9px 18px; min-width: 220px;
}
.search-box input { border: none; outline: none; font-family: var(--sans); font-size: 0.92rem; width: 100%; background: none; }
.search-box svg { color: var(--texto-suave); flex-shrink: 0; }

/* ---------- Grilla de productos ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px;
}
.card {
  background: #fff; border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra-sm); border: 1px solid var(--linea);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--rosa-suave); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92);
  color: var(--rosa); font-size: 0.72rem; font-weight: 600; padding: 5px 12px;
  border-radius: 100px; letter-spacing: .03em;
}
.card-fav {
  position: absolute; top: 12px; right: 12px; background: var(--oro);
  color: #fff; font-size: 0.7rem; font-weight: 600; padding: 5px 11px; border-radius: 100px;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.18rem; color: var(--carbon); line-height: 1.25; }
.card-desc { color: var(--texto-suave); font-size: 0.9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--carbon); }
.price small { font-size: 0.8rem; color: var(--texto-suave); font-weight: 400; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--texto-suave); grid-column: 1/-1; }
.empty-state svg { color: var(--rosa); margin-bottom: 14px; }

/* ---------- Modal de producto ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(42,34,48,0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 22px; max-width: 860px; width: 100%; max-height: 92vh;
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--sombra);
}
.modal-img { background: var(--rosa-suave); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-info { padding: 34px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-info .card-tag { position: static; align-self: flex-start; margin-bottom: 14px; }
.modal-info h2 { font-size: 1.9rem; color: var(--carbon); margin-bottom: 12px; }
.modal-info .modal-desc { color: var(--texto-suave); margin-bottom: 22px; }
.modal-price { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--carbon); margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.9); border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--sombra-sm); color: var(--carbon);
}

/* ---------- Sobre / About ---------- */
.about { background: linear-gradient(180deg, #fff, var(--rosa-claro)); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-card {
  position: relative; width: 100%; margin: 0;
  border-radius: 26px; padding: 14px;
  background: linear-gradient(135deg, var(--rosa), var(--oro-claro));
  box-shadow: var(--sombra);
}
.about-card img {
  width: 100%; aspect-ratio: 900 / 928; object-fit: cover;
  border-radius: 16px; display: block;
}
.about-card figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  border-radius: 0 0 16px 16px; padding: 26px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(42,34,48,0.72));
  color: #fff; font-family: var(--serif); font-style: italic; font-size: 1rem;
  text-align: center; line-height: 1.35;
}
.about h2 { font-size: clamp(2rem, 4vw, 2.7rem); color: var(--carbon); margin-bottom: 18px; }
.about p { color: var(--texto-suave); margin-bottom: 16px; font-size: 1.05rem; }

/* ---------- CTA WhatsApp ---------- */
.cta-band { background: var(--carbon); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: #d8cdd6; margin-bottom: 28px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: #1f1926; color: #cfc4d0; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 62px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; color: #a89db0; max-width: 28em; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.95rem; margin-bottom: 16px; letter-spacing: .04em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.92rem; color: #cfc4d0; }
.footer a:hover { color: var(--oro-claro); }
.footer-bottom { border-top: 1px solid #352d3d; padding-top: 22px; text-align: center; font-size: 0.85rem; color: #897e91; }
.footer-bottom a { color: var(--oro-claro); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(37,211,102,0.7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* Botón flotante de Instagram (encima del de WhatsApp) */
.ig-float {
  position: fixed; bottom: 92px; right: 24px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(214,36,159,0.6);
  transition: transform .2s ease;
}
.ig-float:hover { transform: scale(1.08); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--carbon); color: #fff; padding: 13px 24px; border-radius: 100px;
  font-size: 0.92rem; box-shadow: var(--sombra); z-index: 300; transition: transform .35s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 340px; margin: 0 auto; order: -1; }
  .hero-cta { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 320px; margin: 0 auto; }
  .modal { grid-template-columns: 1fr; }
  .modal-img img { min-height: 220px; max-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; background: var(--rosa-claro);
    flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--linea);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--sombra-sm);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}
@media (max-width: 460px) {
  .trust-grid { grid-template-columns: 1fr; }
  .catalog-tools { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
}
