:root {
  --bg-color: #faf9f6;
  --text-main: #3e2723;
  --text-muted: #5d4037;
  --accent-color: #d32f2f;
  --gold-accent: #d4af37;
  --card-bg: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; }

header { position: fixed; top: 0; width: 100%; padding: 0.3rem 2rem; background: var(--bg-color); display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: all 0.3s; }
.logo { display: flex; align-items: center; }
.logo-img { height: 70px; width: auto; object-fit: contain; transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.05); }
.theme-flourish { text-align: center; color: var(--gold-accent); font-size: 4rem; margin-top: -30px; margin-bottom: 25px; font-family: 'Playfair Display', serif; font-style: italic; opacity: 0.9; }

.cart-btn { background: none; border: none; font-size: 1.3rem; color: var(--text-main); cursor: pointer; position: relative; }
.cart-badge { position: absolute; top: -5px; right: -8px; background: var(--accent-color); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }

.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; padding-top: 100px; background: radial-gradient(circle at center, #fff 0%, #faf9f6 100%); }
.hero h1 { font-size: 3.5rem; margin-bottom: 0.5rem; color: var(--text-main); line-height: 1.1; }
.hero p { font-size: 1.1rem; max-width: 600px; color: var(--text-muted); font-weight: 300; margin-bottom: 2rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 0.6rem 1.6rem; font-size: 0.85rem; background: var(--gold-accent); color: white; border-radius: 30px; text-decoration: none; font-weight: 500; font-family: var(--font-body); transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid var(--gold-accent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); background: transparent; color: var(--gold-accent); }
.btn-secondary { display: inline-block; padding: 0.6rem 1.6rem; font-size: 0.85rem; background: white; color: var(--text-main); border-radius: 30px; text-decoration: none; font-weight: 500; font-family: var(--font-body); transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid #eee; }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); border-color: var(--gold-accent); color: var(--gold-accent); }

.about { padding: 5rem 2rem; background: #fff; text-align: center; position: relative; overflow: hidden; }
.about-owner-ghost {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  opacity: 0.40;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
  filter: grayscale(50%) contrast(120%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
}
.about-container { max-width: 1200px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--text-main); margin-bottom: 0.5rem; }
.about-content { max-width: 700px; margin: 0 auto; }
.about h2 { font-size: 2.2rem; margin-bottom: 0.5rem; color: var(--text-main); }
.about p { font-size: 1.05rem; color: var(--text-muted); font-weight: 300; line-height: 1.8; }

.products { padding: 5rem 2rem; }
.products h2 { text-align: center; font-size: 2.2rem; margin-bottom: 0.5rem; }
.product-grid { display: flex; flex-wrap: wrap; gap: 2rem; width: 100%; max-width: 1200px; margin: 0 auto; justify-content: center; align-items: stretch; }
.category-header { font-size: 1.5rem; margin: 2.5rem 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold-accent); color: var(--gold-accent); text-align: center; width: 100%; max-width: 1200px; font-family: var(--font-heading); font-style: italic; display: block; flex: 0 0 100%; }
.product-card { background: var(--card-bg); border-radius: 16px; padding: 1.5rem; text-align: center; box-shadow: var(--shadow-soft); transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column; height: 100%; flex: 0 1 260px; max-width: 260px; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-img-wrapper { width: 100%; aspect-ratio: 1/1; margin-bottom: 1.5rem; border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.product-img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-slider { width: 100%; aspect-ratio: 1/1; margin-bottom: 0.5rem; border-radius: 12px; overflow-x: auto; overflow-y: hidden; display: flex; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; }
.product-gallery-slider::-webkit-scrollbar { display: none; }
.product-gallery-slider .product-img { flex: 0 0 100%; scroll-snap-align: center; object-fit: contain; }
.gallery-hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.product-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--text-main); }
.product-sku { display: block; font-size: 0.5rem; color: var(--text-muted); opacity: 0.35; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; font-family: var(--font-body); }
.product-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.4; flex-grow: 1; }


.price-note { font-size: 0.75rem; color: var(--accent-color); margin-bottom: 0.3rem; font-style: italic; min-height: 18px; }
.variant-selector { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1rem; color: var(--text-muted); }
.variant-selector label { cursor: pointer; display: flex; align-items: center; gap: 0.2rem; font-size: 0.7rem; padding: 0.2rem; background: #fdfdfd; border: 1px solid #eee; border-radius: 4px; }
.variant-selector input[type="radio"] { transform: scale(0.8); margin: 0; }
.product-price { font-size: 1.15rem; color: var(--text-main); margin-bottom: 1.5rem; font-weight: 600; margin-top: auto; }

.add-to-cart { background: transparent; border: 1px solid #ddd; color: var(--text-main); padding: 0.6rem 1.5rem; font-family: var(--font-body); font-size: 0.85rem; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; width: 100%; }
.add-to-cart:hover { border-color: var(--gold-accent); background: var(--gold-accent); color: white; }

.cart-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 380px; height: 100vh; background: white; box-shadow: -5px 0 30px rgba(0,0,0,0.05); z-index: 200; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 0.6rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: var(--font-heading); font-size: 1.15rem; }
.close-cart { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--text-main); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.6rem 1rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(0,0,0,0.03); }
.cart-item-details h4 { font-size: 0.82rem; margin-bottom: 0px; font-weight: 500; line-height: 1.2; }
.cart-item-price { font-size: 0.78rem; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 0.4rem; }
.qty-btn { background: #f5f5f5; border: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; color: var(--text-main); transition: background 0.2s; }
.qty-btn:hover { background: #e0e0e0; }

.cart-footer { padding: 0.6rem 1rem; border-top: 1px solid rgba(0,0,0,0.05); background: var(--bg-color); }
.checkout-data { padding-bottom: 0.4rem; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 0.4rem; }
.checkout-data p { margin-bottom: 2px; font-weight: 500; color: var(--gold-accent); font-size: 0.72rem; }
.checkout-data input { width: 100%; padding: 0.28rem 0.4rem; margin-bottom: 0.25rem; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); font-size: 0.75rem; box-sizing: border-box; }
.checkout-data input:last-child { margin-bottom: 0; }

.discount-section { padding-bottom: 0.4rem; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 0.4rem; font-size: 0.75rem; color: var(--text-muted); }
.discount-section p { margin-bottom: 3px; font-weight: 500; }
.discount-section input { flex: 1; padding: 0.28rem 0.4rem; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); font-size: 0.75rem; box-sizing: border-box; }
.discount-section button { padding: 0.28rem 0.6rem; background: var(--text-main); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.75rem; transition: background 0.2s; }
.discount-section button:hover { background: var(--gold-accent); }

.cart-total { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.cart-payment-note { text-align: center; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.5rem; font-style: italic; line-height: 1.2; }

.whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 80%; max-width: 240px; margin: 0 auto; text-align: center; background: #25D366; color: white; padding: 0.55rem; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.5px; transition: background 0.3s; box-shadow: 0 2px 6px rgba(37,211,102,0.15); }
.whatsapp-btn:hover { background: #128C7E; }
.whatsapp-btn.disabled { background: #e0e0e0; color: #999; cursor: not-allowed; box-shadow: none; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); z-index: 150; display: none; opacity: 0; transition: opacity 0.3s ease; }
.overlay.open { display: block; opacity: 1; }

.newsletter { padding: 5rem 2rem; background: var(--bg-color); text-align: center; border-top: 1px solid rgba(0,0,0,0.03); }
.newsletter-container { max-width: 600px; margin: 0 auto; }
.newsletter h2 { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 0.5rem; font-family: var(--font-heading); font-style: italic; }
.newsletter p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-form input { padding: 0.8rem 1.2rem; border: 1px solid #ddd; border-radius: 30px; font-family: var(--font-body); font-size: 1rem; outline: none; transition: border-color 0.3s; background: white; }
.newsletter-form input:focus { border-color: var(--gold-accent); }
.newsletter-form button { background: var(--text-main); color: white; border: none; cursor: pointer; }
.newsletter-form button:hover { background: var(--gold-accent); color: white; border-color: var(--gold-accent); }

@media (min-width: 768px) {
    .newsletter-form { flex-direction: row; }
    .newsletter-form input { flex: 1; }
    .newsletter-form button { flex: 0 0 auto; }
}

.floating-whatsapp { position: fixed; bottom: 20px; right: 20px; background: #25D366; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.15); z-index: 100; transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; opacity: 0.9; }
.floating-whatsapp:hover { transform: scale(1.1); opacity: 1; box-shadow: 0 6px 20px rgba(37,211,102,0.4); }

footer { background: var(--text-main); color: white; text-align: center; padding: 3rem 1rem; }
footer p { opacity: 0.8; font-size: 0.9rem; }

/* Responsive Mobile */
@media (max-width: 768px) {
    header { padding: 0.2rem 1rem; }
    .logo-img { height: 50px; }
    .hero { padding-top: 80px; min-height: 60vh; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; padding: 0 1rem; }
    .hero-buttons { gap: 0.5rem; flex-wrap: nowrap; }
    .btn-primary, .btn-secondary { padding: 0.5rem 1rem; font-size: 0.75rem; flex: 1; text-align: center; white-space: nowrap; margin-top: 0; }
    .section-title { font-size: 2rem; }
    .theme-flourish { font-size: 3rem; margin-top: -20px; }
    .product-grid { gap: 1rem; padding: 0; }
    .product-card { flex: 0 1 100%; max-width: 320px; }
    .category-header { font-size: 1.4rem; margin: 1.5rem 0 0.5rem 0; }
    .product-title { font-size: 0.95rem; margin-bottom: 0.3rem; }
    .product-desc { font-size: 0.75rem; }
    .product-card { padding: 1rem; }
    .variant-selector label { font-size: 0.75rem; padding: 0.2rem 0.4rem; }
    .floating-whatsapp { width: 50px; height: 50px; font-size: 1.8rem; bottom: 15px; right: 15px; }
}

.developer-strip {
  background-color: #ffffff;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}
.developer-info {
  text-align: center;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dev-logo-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.dev-logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.dev-logo {
  height: 40px;
  width: auto;
  display: block;
}
.dev-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-bottom: 0.3rem;
  letter-spacing: 0.3px;
}
.dev-link a {
  font-size: 0.78rem;
  color: var(--gold-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.dev-link a:hover {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  width: 100%;
}
.qty-savings-badge {
  font-size: 0.65rem;
  background: #fff5e6;
  color: var(--gold-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.unit-price-hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-left: 2px;
  font-weight: normal;
}

/* Modal de Agradecimiento */
.thankyou-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.thankyou-modal.open {
  display: flex;
  opacity: 1;
}
.thankyou-content {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-hover);
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalSlideIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.thankyou-icon {
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem auto;
}
.thankyou-content h3 {
  color: var(--text-main);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.thankyou-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.thankyou-content p.subtext {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.4;
}
.thankyou-content .btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Banner de Instalación iOS */
.ios-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 450px;
  background: #faf9f6;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(62, 39, 35, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}
.ios-install-prompt.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ios-prompt-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ios-prompt-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}
.ios-prompt-text strong {
  color: var(--gold-accent);
}
.ios-prompt-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.ios-prompt-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #faf9f6;
}

