/* ==========================================================================
   Sky — Taller de Amigurumis Artesanales
   Paleta principal: Rosa Elegante & Marfil Cálido
   ========================================================================== */

:root {
  /* Paleta Rosa Elegante */
  --rose-950: #29161C;
  --rose-900: #3D232B;
  --rose-700: #8B4358;
  --rose-600: #B65A74;
  --rose-500: #CC738B;
  --rose-400: #DE97AA;
  --rose-300: #ECC0CC;
  --rose-200: #F5DCE3;
  --rose-100: #FAF0F3;
  --rose-50: #FDF9FA;

  /* Neutros y Acentos */
  --white: #FFFFFF;
  --cream: #FBF6F4;
  --muted: #765B63;
  --gold: #C49A6C;
  --gold-soft: #F5EDE3;

  /* Tipografía */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sombras y Radios */
  --shadow-sm: 0 4px 16px rgba(61, 35, 43, 0.05);
  --shadow-md: 0 12px 32px rgba(139, 67, 88, 0.10);
  --shadow-lg: 0 24px 48px rgba(61, 35, 43, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--rose-900);
  background-color: var(--rose-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Utilidades Tipográficas */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--rose-400);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--rose-950);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3.25rem;
}

.section-header .eyebrow {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-600), var(--rose-700));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(182, 90, 116, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(139, 67, 88, 0.36);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--rose-300);
  color: var(--rose-700);
}

.btn-outline:hover {
  background: var(--rose-100);
  border-color: var(--rose-500);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.84rem;
}

/* ==========================================================================
   Barra de Anuncio & Navegación
   ========================================================================== */
.top-ribbon {
  background: var(--rose-900);
  color: var(--rose-100);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}

.top-ribbon span {
  color: var(--rose-300);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(253, 249, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 192, 204, 0.55);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--rose-300);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-mark picture,
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--rose-950);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--rose-900);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--rose-600);
  transition: width 0.28s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--rose-100);
  border: 1px solid var(--rose-300);
  color: var(--rose-700);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.cart-btn:hover {
  background: var(--rose-200);
}

.cart-badge {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--rose-600);
  color: var(--white);
  font-size: 0.74rem;
  display: inline-grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rose-300);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--rose-900);
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(236, 192, 204, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(222, 151, 170, 0.28) 0%, transparent 42%),
    var(--rose-50);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.35rem);
  line-height: 1.06;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--rose-600);
  font-weight: 500;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rose-300);
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--rose-700);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--rose-200);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
  border: 6px solid var(--white);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hero-frame:hover img {
  transform: scale(1.04);
}

.floating-card {
  position: absolute;
  bottom: -18px;
  left: -24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rose-200);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 265px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rose-100);
  color: var(--rose-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--rose-950);
}

.floating-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   Sección Categorías
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--rose-100);
  border-bottom: 1px solid var(--rose-100);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.category-card {
  position: relative;
  background: var(--rose-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rose-200);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose-400);
}

.category-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rose-100);
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.category-card:hover .category-img img {
  transform: scale(1.06);
}

.category-body {
  padding: 1.5rem 1.6rem 1.75rem;
}

.category-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose-600);
}

.category-body h3 {
  font-size: 1.65rem;
  margin: 0.3rem 0 0.5rem;
}

.category-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rose-700);
}

/* ==========================================================================
   Catálogo Interactivo
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.62rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--rose-200);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--rose-400);
  color: var(--rose-700);
}

.filter-btn.active {
  background: var(--rose-600);
  border-color: var(--rose-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(182, 90, 116, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--rose-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--rose-100);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-700);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.product-info {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--rose-500);
  font-weight: 700;
}

.product-info h3 {
  font-size: 1.38rem;
  margin: 0.25rem 0 0.45rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rose-200);
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--rose-950);
}

.product-actions {
  display: flex;
  gap: 0.45rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rose-200);
  background: var(--rose-50);
  color: var(--rose-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--rose-200);
  border-color: var(--rose-400);
}

/* ==========================================================================
   Sección Proceso Artesanal
   ========================================================================== */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.craft-step {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--rose-300);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.craft-step h3 {
  font-size: 1.32rem;
  margin-bottom: 0.5rem;
}

.craft-step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Sección Pedidos Personalizados (Banner + Formulario)
   ========================================================================== */
.custom-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(145deg, var(--rose-100), var(--white));
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.custom-copy h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin: 0.6rem 0 1rem;
}

.custom-copy p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.custom-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.custom-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: var(--rose-900);
}

.custom-list li svg {
  color: var(--rose-600);
  flex-shrink: 0;
}

.custom-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rose-200);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rose-200);
  background: var(--rose-50);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose-500);
  background: var(--white);
}

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.testimonial-card p {
  font-size: 0.94rem;
  color: var(--rose-900);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--rose-950);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--rose-950);
  color: var(--rose-100);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(236, 192, 204, 0.18);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand p {
  color: var(--rose-300);
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-300);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--rose-100);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--rose-300);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--rose-300);
}

/* ==========================================================================
   Drawer Bolsa de Pedido & Modal Detalle
   ========================================================================== */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41, 22, 28, 0.45);
  backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open,
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: var(--white);
  z-index: 130;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -12px 0 40px rgba(41, 22, 28, 0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--rose-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.5rem;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rose-200);
  background: var(--rose-50);
  color: var(--rose-900);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
}

.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item h4 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.84rem;
  color: var(--rose-700);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rose-300);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  color: var(--rose-700);
}

.drawer-footer {
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--rose-200);
  background: var(--rose-50);
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.drawer-total strong {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--rose-950);
}

/* Modal Producto */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 760px);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-img {
  background: var(--rose-100);
  min-height: 320px;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal-specs {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.9rem;
  background: var(--rose-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rose-200);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--rose-950);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.35s var(--ease);
}

.toast.show {
  transform: translate(-50%, 0);
}

/* Animación Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .custom-wrapper,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .products-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .floating-card {
    left: 16px;
    bottom: 16px;
  }
}

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

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rose-200);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.1rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .categories-grid,
  .products-grid,
  .craft-grid,
  .testimonials-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .custom-wrapper {
    padding: 1.75rem;
  }
}


/* ==========================================================================
   Contenedores para PNG con fondo transparente (Colecciones & Hero)
   ========================================================================== */
.hero-frame--transparent {
  background: radial-gradient(circle at 50% 42%, var(--white) 0%, var(--rose-100) 62%, var(--rose-200) 100%);
  display: grid;
  place-items: center;
  padding: 1.75rem;
}

.hero-frame--transparent img {
  object-fit: contain;
  max-height: 100%;
  filter: drop-shadow(0 18px 28px rgba(61, 35, 43, 0.18));
}

.collection-thumb {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: radial-gradient(circle at 50% 40%, var(--white) 0%, var(--rose-100) 70%, var(--rose-200) 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
}

.collection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(61, 35, 43, 0.16));
  transition: transform 0.55s var(--ease);
}

.product-card:hover .collection-thumb img {
  transform: scale(1.06) translateY(-4px);
}

.modal-img--transparent {
  background: radial-gradient(circle at 50% 45%, var(--white) 0%, var(--rose-100) 75%, var(--rose-200) 100%);
  display: grid;
  place-items: center;
  padding: 1.75rem;
}

.modal-img--transparent img {
  object-fit: contain;
  max-height: 360px;
  filter: drop-shadow(0 14px 24px rgba(61, 35, 43, 0.18));
}

/* ==========================================================================
   Panel de Administración (Boseto Login + Gestión de Colecciones)
   ========================================================================== */
.admin-login-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
}

.admin-login-card {
  width: min(100%, 430px);
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
}

.admin-login-card h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.admin-hint {
  background: var(--rose-50);
  border: 1px dashed var(--rose-300);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1rem 0 1.4rem;
}

.admin-dashboard {
  padding: 3rem 0 5rem;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--rose-100);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--rose-100);
  padding: 4px;
  object-fit: contain;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill--active {
  background: #E8F7EE;
  color: #1F6F43;
}

.status-pill--hidden {
  background: var(--rose-100);
  color: var(--rose-700);
}

@media (max-width: 980px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}
