/*
Theme Name: Peluches Child
Theme URI: https://memorybears.com
Description: Tema hijo de Astra para Peluches Personalizados. Ositos de recuerdos con voz.
Author: Peluches Team
Author URI: https://memorybears.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peluches-child
Requires PHP: 7.4
*/

/* ====== Base ====== */
html { scroll-behavior: smooth; }

body.peluches {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1E293B;
  background: #fff;
}

/* ====== Announcement Banner ====== */
.pb-announcement {
  background: linear-gradient(90deg, #f43f5e 0%, #db2777 100%);
  color: #fff;
  padding: 8px 40px 8px 16px;
  position: relative;
  overflow: hidden;
}
.pb-announcement .pb-marquee { display: flex; white-space: nowrap; overflow: hidden; }
.pb-announcement .pb-marquee-inner {
  display: flex; animation: pb-marquee 30s linear infinite; gap: 0;
}
.pb-announcement .pb-marquee-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 0 40px;
}
.pb-announcement .pb-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.15); color: #fff; border: none; border-radius: 9999px;
  width: 22px; height: 22px; font-size: 12px; cursor: pointer; line-height: 1;
}
.pb-announcement .pb-close:hover { background: rgba(0,0,0,0.3); }
@keyframes pb-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ====== Utility ====== */
.pb-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pb-hero { background: linear-gradient(135deg, #fff1f2 0%, #ffffff 50%, #fdf2f8 100%); padding: 80px 0; position: relative; }
.pb-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pb-hero-title { font-size: 52px; font-weight: 800; color: #1E293B; line-height: 1.1; margin: 16px 0 24px; }
.pb-hero-title .pb-red { color: #ef4444; }
.pb-hero-sub { font-size: 15px; color: #4b5563; line-height: 1.7; margin-bottom: 32px; }
.pb-hero-badge { display: inline-flex; align-items: center; gap: 8px; color: #ef4444; font-weight: 500; }
.pb-hero-badge svg { width: 20px; height: 20px; }
.pb-btn { display: inline-block; font-weight: 600; border-radius: 8px; padding: 14px 32px; font-size: 16px; text-decoration: none; transition: all .2s; border: none; cursor: pointer; }
.pb-btn-red { background: #ef4444; color: #fff; }
.pb-btn-red:hover { background: #dc2626; color: #fff; }
.pb-btn-outline { background: transparent; color: #1E293B; border: 1.5px solid #d1d5db; }
.pb-btn-outline:hover { background: #f9fafb; color: #1E293B; }
.pb-btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.pb-hero-stats { display: flex; gap: 24px; margin-top: 32px; font-size: 14px; color: #6b7280; }
.pb-hero-stats span { display: inline-flex; align-items: center; gap: 8px; }
.pb-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 9999px; display: inline-block; }
.pb-hero-img { position: relative; }
.pb-hero-img img { width: 100%; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.pb-hero-float {
  position: absolute; bottom: -16px; right: -16px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 16px; display: flex; align-items: center; gap: 12px;
}
.pb-hero-float .pb-icon { width: 48px; height: 48px; background: #fee2e2; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #ef4444; }
.pb-hero-float strong { display: block; color: #1E293B; }
.pb-hero-float small { color: #6b7280; }

/* ====== Section headers ====== */
.pb-section { padding: 80px 0; }
.pb-section-alt { background: #f9fafb; }
.pb-section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.pb-section-head h2 { font-size: 38px; font-weight: 800; color: #1E293B; margin: 0 0 16px; }
.pb-section-head h2 .pb-red { color: #ef4444; }
.pb-section-head p { font-size: 20px; color: #4b5563; line-height: 1.6; }

/* ====== Products grid ====== */
.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pb-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all .3s; display: flex; flex-direction: column; }
.pb-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.pb-card-img { position: relative; overflow: hidden; padding-top: 100%; background: #f3f4f6; }
.pb-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pb-card:hover .pb-card-img img { transform: scale(1.08); }
.pb-card-popular { position: absolute; top: 16px; left: 16px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 9999px; }
.pb-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pb-card-title { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pb-card-title h3 { font-size: 20px; font-weight: 600; color: #1E293B; margin: 0; }
.pb-card-desc { color: #4b5563; margin-bottom: 16px; }
.pb-features { list-style: none; padding: 0; margin: 0 0 20px; }
.pb-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6b7280; padding: 3px 0; }
.pb-features li::before { content: ""; width: 6px; height: 6px; background: #ef4444; border-radius: 9999px; flex-shrink: 0; }
.pb-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pb-price { font-size: 26px; font-weight: 800; color: #1E293B; }
.pb-price-old { font-size: 18px; color: #9ca3af; text-decoration: line-through; margin-left: 8px; }
.pb-stars { color: #facc15; font-size: 14px; letter-spacing: 2px; }

/* ====== Process ====== */
.pb-process-step { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.pb-process-step.reverse { direction: rtl; }
.pb-process-step.reverse > * { direction: ltr; }
.pb-process-media img { width: 100%; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.pb-process-badge { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pb-process-icon { width: 64px; height: 64px; background: #fee2e2; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: #ef4444; }
.pb-process-num { width: 32px; height: 32px; background: #ef4444; color: #fff; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pb-process-step h3 { font-size: 26px; font-weight: 700; color: #1E293B; margin: 0 0 12px; }
.pb-process-step p { font-size: 18px; color: #4b5563; line-height: 1.7; }
.pb-note { margin-top: 24px; padding: 16px; border-radius: 8px; font-size: 15px; }
.pb-note-gray { background: #f9fafb; }
.pb-note-red { background: #fef2f2; }
.pb-note h4 { margin: 0 0 8px; font-weight: 600; }
.pb-note-gray h4 { color: #1E293B; }
.pb-note-red h4 { color: #7f1d1d; }
.pb-note-red ul { margin: 0; padding-left: 18px; color: #991b1b; font-size: 14px; }
.pb-note-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-note-tags span { background: #fff; border: 1px solid #e5e7eb; padding: 4px 12px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: #374151; }
.pb-process-cta { text-align: center; margin-top: 16px; }
.pb-process-cta .pb-eta { display: inline-flex; align-items: center; gap: 12px; background: #f0fdf4; color: #166534; font-weight: 500; padding: 16px 32px; border-radius: 9999px; }
.pb-pulse { width: 12px; height: 12px; background: #22c55e; border-radius: 9999px; animation: pb-pulse 2s infinite; }
@keyframes pb-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ====== Testimonials ====== */
.pb-testimonials { background: linear-gradient(135deg, #fff1f2 0%, #ffffff 50%, #fdf2f8 100%); }
.pb-test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pb-test-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all .3s; }
.pb-test-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.pb-test-media { padding-top: 56.25%; position: relative; overflow: hidden; background: #f3f4f6; }
.pb-test-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-test-body { padding: 24px; }
.pb-test-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pb-test-story { color: #374151; line-height: 1.7; margin: 0 0 16px; }
.pb-test-foot { border-top: 1px solid #f3f4f6; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.pb-test-name { font-weight: 600; color: #1E293B; }
.pb-test-loc { font-size: 14px; color: #6b7280; }
.pb-test-bear { font-size: 14px; font-weight: 600; color: #dc2626; }
.pb-test-verified { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 4px; }
.pb-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 800px; margin: 48px auto 0; text-align: center; }
.pb-stat-val { font-size: 34px; font-weight: 800; color: #ef4444; }
.pb-stat-label { color: #6b7280; }

/* ====== Contact ====== */
.pb-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pb-contact-info h3 { font-size: 24px; font-weight: 700; margin: 0 0 16px; color: #1E293B; }
.pb-contact-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #4b5563; }
.pb-contact-item .pb-icon { color: #ef4444; width: 20px; height: 20px; }
.pb-form label { display: block; font-weight: 500; margin: 12px 0 4px; font-size: 14px; }
.pb-form input, .pb-form select, .pb-form textarea {
  width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: inherit;
}
.pb-form input:focus, .pb-form select:focus, .pb-form textarea:focus { outline: none; border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.pb-form .pb-btn { margin-top: 16px; }

/* ====== Footer ====== */
.pb-footer { background: #1E293B; color: #fff; padding: 64px 0 0; }
.pb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; padding-bottom: 48px; }
.pb-footer h3 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.pb-footer p { color: #9ca3af; line-height: 1.6; }
.pb-footer ul { list-style: none; padding: 0; margin: 0; }
.pb-footer ul li { padding: 4px 0; }
.pb-footer ul a { color: #9ca3af; text-decoration: none; }
.pb-footer ul a:hover { color: #fff; }
.pb-footer .pb-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.pb-footer .pb-brand svg { color: #ef4444; }
.pb-social a { color: #9ca3af; margin-right: 16px; text-decoration: none; }
.pb-social a:hover { color: #fff; }
.pb-newsletter input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #374151; background: #1f2937; color: #fff; margin-bottom: 8px; }
.pb-newsletter .pb-btn { width: 100%; }
.pb-footer-bottom { border-top: 1px solid #1f2937; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #9ca3af; flex-wrap: wrap; gap: 12px; }
.pb-footer-bottom a { color: #9ca3af; text-decoration: none; margin-left: 24px; }
.pb-footer-bottom a:hover { color: #fff; }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .pb-hero-grid, .pb-process-step, .pb-contact-grid { grid-template-columns: 1fr; }
  .pb-hero-title { font-size: 40px; }
  .pb-grid, .pb-test-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pb-grid, .pb-test-grid, .pb-footer-grid { grid-template-columns: 1fr; }
  .pb-stats { grid-template-columns: 1fr; gap: 24px; }
  .pb-hero-title { font-size: 34px; }
  .pb-btn-row { flex-direction: column; }
  .pb-hero-stats { flex-direction: column; gap: 12px; }
}
