/*
Theme Name: Bebú Pima
Theme URI: https://bebupima.com
Author: Bebú Pima
Description: Tema personalizado para Bebú Pima – Algodón Pima Peruano
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: bebu-pima
WooCommerce: true
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --cream:       #FAF8F4;
  --cream-dark:  #F0EDE6;
  --sage:        #7D9485;
  --sage-dark:   #5E7566;
  --taupe:       #3A2F1E;
  --taupe-light: #6B5D4A;
  --white:       #FFFFFF;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Lato', sans-serif;
  --nav-h:       96px;
}

body {
  background: var(--cream);
  color: var(--taupe);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
}

/* ══ NAV ══ */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 0 48px;
  background: transparent;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 80px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 10.5px; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--taupe);
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--sage); }
.nav-links .arrow::after { content: ' ▾'; font-size: 8px; }
.nav-icons { display: flex; gap: 16px; align-items: center; }
.nav-icons button {
  background: none; border: none;
  cursor: pointer; color: var(--taupe);
  padding: 4px; position: relative;
}
.nav-icons svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px;
  background: var(--sage); border-radius: 50%;
  font-size: 7.5px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.nav-hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; color: var(--taupe);
  padding: 4px; flex-shrink: 0;
}
.nav-hamburger svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-text-link {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--taupe); white-space: nowrap; transition: color .2s;
}
.nav-text-link:hover { color: var(--sage); }

/* ══ MOBILE MENU ══ */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 25;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 28px;
  font-weight: 400; color: var(--taupe);
  letter-spacing: .05em; transition: color .2s;
}
.mobile-menu a:hover { color: var(--sage); }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; cursor: pointer; color: var(--taupe);
}
.mobile-menu-close svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.mobile-menu-icons { display: flex; gap: 24px; margin-top: 16px; }
.mobile-menu-icons button { background: none; border: none; cursor: pointer; color: var(--taupe); }
.mobile-menu-icons svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ══ HERO ══ */
.hero-wrapper {
  position: relative; width: 100%;
  height: 100vh; min-height: 580px; max-height: 860px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(250,248,244,.84) 0%,
    rgba(250,248,244,.52) 38%,
    rgba(250,248,244,.0)  62%
  );
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4px) 0 60px 72px;
  width: 50%;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--taupe-light); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 400; line-height: 1.12;
  color: var(--taupe); margin-bottom: 34px;
}
.btn-primary {
  display: inline-block; background: var(--sage); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; padding: 14px 28px;
  border: none; cursor: pointer; align-self: flex-start; transition: background .2s;
}
.btn-primary:hover { background: var(--sage-dark); }

/* ══ FEATURES ══ */
.features-strip { background: var(--white); border-bottom: 1px solid var(--cream-dark); }
.features-strip-inner {
  max-width: 1100px; margin: 0 auto; padding: 52px 40px;
  display: grid; grid-template-columns: repeat(3,1fr);
}
.feature-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 0 40px; border-right: 1px solid var(--cream-dark);
}
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child { border-right: none; padding-right: 0; }
.feature-icon svg { width: 42px; height: 42px; stroke: var(--sage); fill: none; stroke-width: 1.1; }
.feature-item h4 { font-family: var(--font-serif); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--taupe-light); line-height: 1.55; }

/* ══ PRODUCTOS ══ */
.products-section {
  max-width: 1200px; margin: 0 auto; padding: 88px 56px;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 64px; align-items: start;
}
.eyebrow {
  display: block; font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--taupe-light); margin-bottom: 16px;
}
.products-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400; line-height: 1.2; margin-bottom: 28px;
}
.link-arrow {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; display: inline-flex;
  align-items: center; gap: 8px; transition: gap .2s;
}
.link-arrow:hover { gap: 14px; }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.product-card { cursor: pointer; }
.product-card-image {
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--cream-dark); margin-bottom: 14px;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card h3 {
  font-family: var(--font-serif); font-size: 17px;
  font-weight: 400; margin-bottom: 4px;
}
.product-card .price { font-size: 13px; color: var(--taupe-light); }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.carousel-nav button {
  width: 36px; height: 36px; border: 1px solid var(--cream-dark);
  background: var(--white); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: border-color .2s;
}
.carousel-nav button:hover { border-color: var(--taupe-light); }
.carousel-nav svg { width: 14px; height: 14px; stroke: var(--taupe); fill: none; stroke-width: 2; }

/* ══ HISTORIA ══ */
.story-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.story-image { overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s; }
.story-image:hover img { transform: scale(1.03); }
.story-content {
  background: var(--cream-dark);
  display: flex; flex-direction: column;
  justify-content: center; padding: 48px 60px;
}
.story-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400; line-height: 1.18; margin-bottom: 24px;
}
.story-content p { font-size: 14px; color: var(--taupe-light); max-width: 400px; margin-bottom: 12px; line-height: 1.7; }
.story-content p strong { color: var(--taupe); font-weight: 700; }
.btn-secondary {
  display: inline-block; background: var(--sage); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; padding: 14px 28px; margin-top: 28px;
  align-self: flex-start; transition: background .2s;
}
.btn-secondary:hover { background: var(--sage-dark); }

/* ══ BENEFICIOS ══ */
.benefits-section { background: var(--white); padding: 80px 40px; }
.benefits-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.benefit-item {
  text-align: center; padding: 0 32px;
  border-right: 1px solid var(--cream-dark);
}
.benefit-item:last-child { border-right: none; }
.benefit-item svg { width: 36px; height: 36px; stroke: var(--sage); fill: none; stroke-width: 1.2; margin: 0 auto 18px; }
.benefit-item h4 { font-family: var(--font-serif); font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.benefit-item p { font-size: 12px; color: var(--taupe-light); }

/* ══ INSTAGRAM ══ */
.instagram-section { padding: 80px 0 0; text-align: center; }
.instagram-section h2 {
  font-family: var(--font-serif); font-size: 24px;
  font-weight: 400; letter-spacing: .08em; margin-bottom: 36px;
}
.instagram-grid { display: grid; grid-template-columns: repeat(5,1fr); }
.ig-item { aspect-ratio: 1; overflow: hidden; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-item:hover img { transform: scale(1.06); }

/* ══ FOOTER ══ */
footer { background: var(--cream-dark); border-top: 1px solid rgba(92,79,58,.1); }
.footer-top {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 56px 52px;
  display: grid; grid-template-columns: 160px 1fr 155px 155px 200px;
  gap: 48px; align-items: start;
}
.footer-brand img { height: 160px; width: auto; mix-blend-mode: multiply; }
.footer-newsletter p { font-size: 13px; color: var(--taupe-light); margin-bottom: 18px; line-height: 1.55; }
.footer-newsletter strong { color: var(--taupe); font-weight: 700; }
.newsletter-form { display: flex; max-width: 360px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border: 1px solid rgba(92,79,58,.2);
  background: var(--white); font-family: var(--font-sans);
  font-size: 13px; color: var(--taupe); outline: none;
}
.newsletter-form input::placeholder { color: var(--taupe-light); }
.newsletter-form button {
  padding: 12px 20px; background: var(--sage); color: var(--white);
  border: none; font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--sage-dark); }
.footer-links h5 { font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--taupe-light); transition: color .2s; }
.footer-links a:hover { color: var(--taupe); }
.footer-contact h5 { font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; color: var(--taupe-light); line-height: 1.7; margin-bottom: 10px; }
.footer-contact a { color: var(--sage); transition: color .2s; }
.footer-contact a:hover { color: var(--sage-dark); }
.footer-bottom {
  border-top: 1px solid rgba(92,79,58,.1);
  max-width: 1200px; margin: 0 auto;
  padding: 24px 56px; display: flex;
  justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 11px; color: var(--taupe-light); letter-spacing: .05em; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--taupe-light); transition: color .2s; }
.social-links a:hover { color: var(--taupe); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

/* ══ WHATSAPP ══ */
.whatsapp-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: transform .2s;
}
.whatsapp-btn:hover { transform: scale(1.08); }
.whatsapp-btn svg { width: 27px; height: 27px; fill: #fff; }

/* ══ WOOCOMMERCE OVERRIDES ══ */
.woocommerce .products { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 20px !important; }
.woocommerce ul.products li.product { margin: 0 !important; width: 100% !important; }
.woocommerce ul.products li.product a img { border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif) !important; font-size: 17px !important;
  font-weight: 400 !important; padding: 14px 0 4px !important;
}
.woocommerce ul.products li.product .price { color: var(--taupe-light) !important; font-size: 13px !important; }
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
  background: var(--sage) !important; color: var(--white) !important;
  border-radius: 0 !important; font-size: 10px !important;
  letter-spacing: .15em !important; text-transform: uppercase !important;
  transition: background .2s !important;
}
.woocommerce ul.products li.product a.button:hover { background: var(--sage-dark) !important; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .nav-links { gap: 22px; }
  .hero-content { padding-left: 48px; width: 55%; }
  .products-section { grid-template-columns: 1fr; gap: 40px; padding: 64px 32px; }
  .products-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px; }
  .products-intro h2 { margin-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  nav {
    display: grid; grid-template-columns: 1fr auto 1fr;
    padding: 0 20px; gap: 0; justify-items: unset;
  }
  .nav-links { display: none; }
  .nav-icons  { display: none; }
  .nav-logo { grid-column: 2; justify-self: center; }
  .nav-logo img { height: 60px; }
  .nav-hamburger { display: flex; grid-column: 3; justify-self: end; align-self: center; }
  .hero-wrapper { max-height: none; height: 75vh; min-height: 480px; }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(250,248,244,.6) 0%, rgba(250,248,244,.75) 60%, rgba(250,248,244,.92) 100%);
  }
  .hero-content { width: 100%; padding: 0 24px; justify-content: center; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 32px; }
  .hero-title { font-size: clamp(30px, 7vw, 44px); }
  .features-strip-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--cream-dark); padding: 0 0 32px; }
  .feature-item:last-child { border-bottom: none; padding-bottom: 0; }
  .products-section { padding: 56px 24px; }
  .products-intro { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .story-section { grid-template-columns: 1fr; }
  .story-image { height: 280px; }
  .story-content { padding: 40px 28px; }
  .benefits-inner { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .benefit-item { border-right: none; padding: 0; }
  .instagram-grid { grid-template-columns: repeat(3,1fr); }
  .ig-item:nth-child(4), .ig-item:nth-child(5) { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .footer-brand { text-align: center; }
  .footer-brand img { height: 160px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 20px 24px; }
  .woocommerce .products { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .benefits-inner { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(2,1fr); }
  .ig-item { display: block !important; aspect-ratio: 1; }
  .ig-item:nth-child(5) { display: none !important; }
  .woocommerce .products { grid-template-columns: 1fr !important; }
}
