/* ===== PATA SHOP — estilos compartidos (todas las páginas) ===== */

:root {
  --forest: #1F3B2E;
  --forest-dark: #16291f;
  --terracotta: #E07A5F;
  --sand: #E7DCC6;
  --sage: #A6B69A;
  --charcoal: #2B2B2B;
  --cream: #FBF8F2;
  --card-bg: #FFFFFF;
  --wa-green: #25D366;
  --header-h: 7.6rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--charcoal); font-family: 'Inter', sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== TOPBAR + HEADER (fijo, todas las páginas) ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

.topbar {
  background: var(--forest); color: var(--cream);
  text-align: center; padding: 0.5rem 1.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em;
}
.topbar .sep { opacity: 0.5; margin: 0 0.5rem; }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 4rem;
  background: rgba(251,248,242,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,59,46,0.1);
}
.nav-left { display: flex; align-items: center; flex-shrink: 0; }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-brand-icon { height: 46px; width: 50px; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-word { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--forest); letter-spacing: -0.01em; }
.nav-brand-word span { font-weight: 500; }
.nav-brand-tagline { font-size: 0.5rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); opacity: 0.6; margin-top: 0.3rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--forest); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  opacity: 0.75; transition: opacity 0.2s; padding-bottom: 0.3rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom-color: var(--terracotta); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }

.btn-wa-outline {
  display: flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--wa-green);
  border: 1.5px solid var(--wa-green);
  padding: 0.55rem 1.3rem; border-radius: 2rem;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-wa-outline:hover { transform: translateY(-2px); background: rgba(37,211,102,0.08); }
.btn-wa-outline svg { width: 16px; height: 16px; fill: var(--wa-green); flex-shrink: 0; }

.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; color: var(--forest); text-decoration: none;
  opacity: 0.85; transition: opacity 0.2s;
}
.icon-btn:hover { opacity: 1; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -0.15rem; right: -0.15rem;
  background: var(--terracotta); color: white;
  font-size: 0.62rem; font-weight: 700; line-height: 1;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* spacer para que el contenido no quede bajo el header fijo */
.page-top { padding-top: var(--header-h); }

/* ===== BOTONES GENERALES ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--forest); color: var(--cream);
  padding: 1rem 2rem; border-radius: 3rem; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: transform 0.2s, background 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--forest);
  border: 1.5px solid var(--forest);
  padding: 1rem 2rem; border-radius: 3rem; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: transform 0.2s, background 0.2s;
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(31,59,46,0.06); }
.btn-wa-big {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: transparent; color: var(--forest);
  border: 1.5px solid var(--forest);
  padding: 1rem 2rem; border-radius: 3rem; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: transform 0.2s, background 0.2s;
}
.btn-wa-big:hover { transform: translateY(-2px); background: rgba(31,59,46,0.06); }
.btn-wa-big svg { width: 20px; height: 20px; fill: var(--forest); }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 200;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--terracotta); color: white;
  padding: 0.9rem 1.4rem; border-radius: 3rem;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; box-shadow: 0 8px 30px rgba(224,122,95,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(224,122,95,0.55); }
@keyframes pulse {
  0%,100% { box-shadow: 0 8px 30px rgba(224,122,95,0.45); }
  50% { box-shadow: 0 8px 40px rgba(224,122,95,0.7); }
}
.wa-float svg { width: 22px; height: 22px; fill: white; }

/* ===== SECTION LABEL/TITLE (reutilizado en tienda/categorias) ===== */
.section-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 0.8rem; }
.section-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--forest); }

/* ===== HOME: HERO ===== */
.hero {
  min-height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: stretch;
  padding-left: 4rem;
}
.hero-content { padding: 3rem 0 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--forest);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem; animation: fadeUp 0.6s ease forwards;
}
.hero-badge .heart { color: var(--terracotta); font-size: 0.9rem; }
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--forest);
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-sub {
  margin-top: 1.4rem; font-size: 1.05rem; line-height: 1.7;
  color: var(--charcoal); opacity: 0.72; max-width: 460px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }
.hero-visual { align-self: stretch; animation: fadeUp 0.8s 0.2s ease both; }
.hero-visual img {
  width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block;
}
.hero-features { display: flex; gap: 2.4rem; margin-top: 2.8rem; flex-wrap: wrap; animation: fadeUp 0.7s 0.4s ease both; }
.hero-feature { display: flex; align-items: flex-start; gap: 0.7rem; max-width: 200px; }
.hero-feature-icon {
  flex-shrink: 0; width: 1.6rem; height: 1.6rem; color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.hero-feature-icon svg { width: 100%; height: 100%; }
.hero-feature-title { font-size: 0.85rem; font-weight: 700; color: var(--forest); margin-bottom: 0.15rem; }
.hero-feature-desc { font-size: 0.76rem; color: var(--charcoal); opacity: 0.65; line-height: 1.4; }

/* ===== CATEGORY STRIP (home + categorias) ===== */
.cat-section { padding: 4rem 4rem; background: var(--cream); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.cat-grid.cat-grid-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }

.cat-card {
  display: flex; align-items: stretch; gap: 0; background: var(--sand);
  border-radius: 1.1rem; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,59,46,0.15); }
.cat-card-img {
  width: 38%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; position: relative;
}
.cat-grid-lg .cat-card-img { font-size: 3.4rem; }
.cat-card:nth-child(3n+1) .cat-card-img { background: linear-gradient(135deg, #EDF1EC, var(--sage)); }
.cat-card:nth-child(3n+2) .cat-card-img { background: linear-gradient(135deg, #FBEEE7, var(--terracotta)); }
.cat-card:nth-child(3n) .cat-card-img { background: linear-gradient(135deg, #F5EFE1, var(--sand)); }
.cat-card-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: center; flex: 1; position: relative; }
.cat-card-title { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: 0.3rem; }
.cat-grid-lg .cat-card-title { font-size: 1.25rem; }
.cat-card-desc { font-size: 0.78rem; color: var(--charcoal); opacity: 0.68; line-height: 1.4; padding-right: 2.2rem; }
.cat-card-arrow {
  position: absolute; bottom: 0.9rem; right: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--card-bg); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(31,59,46,0.15);
  transition: background 0.2s, color 0.2s;
}
.cat-card:hover .cat-card-arrow { background: var(--forest); color: var(--cream); }
.cat-card-tag {
  position: absolute; bottom: 0.4rem; left: 0.5rem;
  font-size: 0.52rem; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(43,43,43,0.55); background: rgba(255,255,255,0.75);
  padding: 0.1rem 0.4rem; border-radius: 1rem;
}

/* ===== PRODUCTOS (tienda) ===== */
.products-section { padding-right: 4rem; padding-bottom: 5rem; padding-left: 4rem; background: var(--forest); position: relative; }
.products-section-header { margin-bottom: 2.5rem; }
.products-section-header .products-sub { color: rgba(251,248,242,0.6); font-size: 0.9rem; max-width: 420px; line-height: 1.6; margin-top: 0.8rem; }

.cat-block { margin-bottom: 3.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.cat-block:last-child { margin-bottom: 0; }
.cat-block-title { display: flex; align-items: center; gap: 0.7rem; font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--cream); margin-bottom: 1.4rem; }
.cat-block-title .cat-block-emoji { font-size: 1.5rem; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.product-card {
  background: var(--card-bg); border-radius: 1.2rem; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }

.product-placeholder-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; position: relative; }
.product-card:nth-child(3n+1) .product-placeholder-img { background: linear-gradient(135deg, #EDF1EC, var(--sage)); }
.product-card:nth-child(3n+2) .product-placeholder-img { background: linear-gradient(135deg, #FBEEE7, var(--terracotta)); }
.product-card:nth-child(3n) .product-placeholder-img { background: linear-gradient(135deg, #F5EFE1, var(--sand)); }

.placeholder-tag {
  position: absolute; bottom: 0.6rem; left: 0.7rem;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(43,43,43,0.55); background: rgba(255,255,255,0.7);
  padding: 0.15rem 0.5rem; border-radius: 1rem;
}
.product-badge {
  position: absolute; top: 0.8rem; right: 0.8rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 1rem; color: white;
}
.product-badge.hot { background: var(--terracotta); }
.product-badge.new { background: var(--forest); }
.product-badge.top { background: var(--charcoal); }

.product-info { padding: 1rem 1.2rem 1.2rem; }
.product-category { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin-bottom: 0.3rem; }
.product-name { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; color: var(--forest); margin-bottom: 0.4rem; line-height: 1.3; }
.product-desc { font-size: 0.8rem; color: rgba(43,43,43,0.65); line-height: 1.5; margin-bottom: 1rem; }

.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.price-sell { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--terracotta); }

.btn-wa {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--terracotta); color: white;
  border: none; cursor: pointer;
  padding: 0.6rem 1rem; border-radius: 2rem;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn-wa:hover { transform: scale(1.04); opacity: 0.9; }
.btn-wa svg { width: 16px; height: 16px; fill: white; flex-shrink: 0; }

/* ===== NOSOTROS / CONTACTO (layout tipo mockup) ===== */
.info-page {
  position: relative; overflow: hidden;
  background: var(--sand);
  display: grid; grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - var(--header-h));
}
.info-blob {
  position: absolute; top: -4rem; left: -4rem; width: 26rem; height: 26rem;
  background: var(--forest); border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%;
  opacity: 0.95; z-index: 0;
}
.info-content {
  position: relative; z-index: 2; background: var(--sand);
  padding: 4.5rem 5rem 4.5rem 4rem; margin-right: -5rem;
  border-radius: 0 9rem 9rem 0;
  display: flex; flex-direction: column; justify-content: center;
}
.info-content h1 { font-family: 'Poppins', sans-serif; font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 800; color: var(--forest); letter-spacing: -0.02em; }
.info-rule { width: 4.5rem; height: 3px; background: var(--terracotta); border: none; margin: 1.1rem 0; }
.info-subtitle { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--charcoal); margin-bottom: 1.1rem; }
.info-subtitle.sage { color: #5f7a56; }
.info-divider { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; color: var(--terracotta); }
.info-divider::before, .info-divider::after { content: ''; flex: 1; height: 1px; background: rgba(31,59,46,0.18); }
.info-text { font-size: 1rem; line-height: 1.8; color: var(--charcoal); opacity: 0.8; max-width: 460px; }
.info-text strong { color: var(--forest); }
.info-actions { margin-top: 1.8rem; }
.info-features { display: flex; gap: 2.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.info-feature { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--forest); }
.info-feature svg { width: 18px; height: 18px; flex-shrink: 0; }
.info-image { position: relative; z-index: 1; }
.info-image img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px; display: block;
}
.contact-bar {
  position: relative; z-index: 1; grid-column: 1 / -1;
  background: var(--card-bg); border-top: 1px solid rgba(31,59,46,0.08);
  padding: 1.3rem 4rem; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--forest); font-weight: 500;
}
.contact-bar strong { color: var(--terracotta); }

/* ===== BLOG ===== */
.blog-empty {
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: var(--cream);
  padding-right: 1.5rem; padding-bottom: 4rem; padding-left: 1.5rem;
}
.blog-empty .emoji { font-size: 3.4rem; margin-bottom: 1.2rem; }
.blog-empty h1 { font-family: 'Poppins', sans-serif; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--forest); font-weight: 700; margin-bottom: 1rem; }
.blog-empty p { font-size: 1.05rem; color: var(--charcoal); opacity: 0.7; max-width: 440px; line-height: 1.7; }

/* ===== FOOTER ===== */
footer { background: var(--forest); color: var(--cream); padding: 3.5rem 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(251,248,242,0.12); }
.footer-logo-img { height: 60px; width: 93px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-col-title { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { color: var(--cream); opacity: 0.8; text-decoration: none; font-size: 0.88rem; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-wa { display: flex; align-items: center; gap: 0.5rem; color: var(--terracotta); font-size: 0.9rem; font-weight: 600; text-decoration: none; margin-bottom: 0.8rem; }
.footer-desc { font-size: 0.85rem; opacity: 0.65; line-height: 1.6; max-width: 260px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; }
.footer-copy { font-size: 0.8rem; opacity: 0.5; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .info-page { grid-template-columns: 1fr; }
  .info-image { order: -1; }
  .info-image img { min-height: 280px; }
  .info-content { margin-right: 0; border-radius: 0; }
  .info-blob { width: 14rem; height: 14rem; top: -3rem; left: -3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --header-h: 6.6rem; }
  .topbar { font-size: 0.66rem; padding: 0.45rem 1rem; }
  .topbar .sep-text { display: none; }
  nav { padding: 0.8rem 1.5rem; }
  .nav-brand-icon { height: 36px; width: 39px; }
  .nav-brand-word { font-size: 1.15rem; }
  .nav-brand-tagline { display: none; }
  .nav-links { display: none; }
  .btn-wa-outline span { display: none; }
  .hero { grid-template-columns: 1fr; padding-left: 0; gap: 0; }
  .hero-content { padding: 2rem 1.5rem 2.5rem; }
  .hero-visual img { min-height: 260px; }
  .hero-features { gap: 1.4rem; }
  .cat-section { padding: 3rem 1.5rem; }
  .products-section { padding-right: 1.5rem; padding-bottom: 3rem; padding-left: 1.5rem; }
  .info-content { padding: 3.5rem 1.5rem 2.5rem; }
  .contact-bar { padding: 1.2rem 1.5rem; gap: 1.2rem; flex-direction: column; text-align: center; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
