:root {
  --color-primary: #D81B60;
  --color-secondary: #F8F5E6;
  --color-gold: #C5A059;
  --color-dark: #2C2C2C;
  --color-text: #555555;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --bottom-nav-height: 72px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #fff;
  padding-bottom: calc(var(--bottom-nav-height) + 60px);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
}

/* NAVBAR SUPERIOR */
.navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  z-index: 1050;
}
.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--color-dark) !important;
  font-weight: 700;
}
.nav-link {
  font-weight: 400;
  color: var(--color-dark) !important;
  margin: 0 8px;
  position: relative;
  font-size: 0.95rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* Cart icon in navbar */
.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--color-dark);
  font-size: 1.3rem;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* BUTTONS */
.btn-gold {
  background-color: var(--color-gold);
  color: white;
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}
.btn-gold:hover {
  transform: translateY(-3px);
  background-color: #b08d4b;
  color: white;
}
.btn-outline-fuchsia {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s;
}
.btn-outline-fuchsia:hover {
  background-color: var(--color-primary);
  color: white;
}
.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background-color: #1da851;
  color: white;
  transform: translateY(-2px);
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .subtitle {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.divider-gold {
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 0 auto;
}

/* HERO SECTION */
.hero-section {
  background: #fff;
  padding: 140px 0 80px;
  position: relative;
}
.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-banner-img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border: 5px solid white;
  transform: rotate(-2deg);
  transition: transform 0.5s;
  width: 100%;
  height: auto;
}
.hero-banner-img:hover {
  transform: rotate(0deg);
}

/* SERVICE CARDS */
.service-card {
  border: none;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(216, 27, 96, 0.15);
  border-color: var(--color-gold);
}
.service-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img-wrapper img {
  transform: scale(1.1);
}
.service-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-title {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}
.service-btn {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
  transition: all 0.3s;
}
.service-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* FAQ ACCORDION */
.accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}
.accordion-button {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
  background: transparent;
  box-shadow: none;
  padding: 18px 0;
}
.accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: transparent;
}
.accordion-body {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  padding-top: 0;
}

/* CONTACT SECTION */
.contact-section {
  background-color: var(--color-secondary);
  position: relative;
}
.contact-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 40px;
}

/* INFO CARDS */
.info-card {
  background: linear-gradient(135deg, #fff 0%, #fffbf2 100%);
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
}
.info-img-container {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.info-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.info-img-container img:hover {
  transform: scale(1.05);
}

/* CART SIDEBAR */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open {
  right: 0;
}
.cart-sidebar-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
}
.cart-sidebar-footer {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* BOTTOM ACTION BAR */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: #fff;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
}
.action-bar-footer {
  padding: 10px 0;
  background: var(--color-dark);
  text-align: center;
}
.action-bar-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.action-bar-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}
.action-bar-footer a:hover {
  color: #fff;
}
.action-bar-btns {
  display: flex;
  padding: 0;
}
.action-bar-btns a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 5px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s;
  gap: 4px;
  border-right: 1px solid #f0f0f0;
}
/* Scroll-reveal animation: only active when .bar-animated is present */
.bottom-action-bar.bar-animated .action-bar-btns a {
  gap: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.bottom-action-bar.bar-animated .action-bar-btns a span {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
  line-height: 1;
}
.bottom-action-bar.bar-animated.bar-expanded .action-bar-btns a span {
  max-height: 18px;
  opacity: 1;
  margin-top: 4px;
}
.action-bar-btns a:last-child {
  border-right: none;
}
.action-bar-btns a i {
  font-size: 1.4rem;
}
.action-bar-btns a:hover {
  background: #f8f8f8;
}
.action-bar-btns a.btn-wa {
  background: #25D366;
  color: #fff;
}
.action-bar-btns a.btn-wa:hover {
  background: #1da851;
  color: #fff;
}
.action-bar-btns a.btn-call {
  background: var(--color-primary);
  color: #fff;
}
.action-bar-btns a.btn-call:hover {
  background: #b0154d;
  color: #fff;
}
.action-bar-btns a.btn-cart-bar {
  position: relative;
  background: #f3e5f5;
  color: var(--color-primary);
}
.action-bar-btns a.btn-cart-bar:hover {
  background: #e1bee7;
  color: var(--color-primary);
}
.action-bar-btns a.btn-cart-bar .cart-badge-bar {
  position: absolute;
  top: 4px;
  right: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.action-bar-btns a.btn-cart-bar .cart-badge-bar.visible {
  display: flex;
}

/* Desktop bottom bar */
@media (min-width: 992px) {
  .action-bar-btns a {
    padding: 10px 5px;
    font-size: 0.8rem;
  }
  .action-bar-btns a i {
    font-size: 1.3rem;
  }
  .bottom-action-bar.bar-animated.bar-expanded .action-bar-btns a span {
    max-height: 20px;
  }
}

/* FOOTER */
.site-footer {
  background: var(--color-dark);
  color: #fff;
  padding: 40px 0 0;
}
.site-footer h5 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.site-footer p, .site-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-gold);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  margin-right: 8px;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 15px 0;
  margin-top: 30px;
}

/* PRODUCT CARDS */
.product-card {
  border: none;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(216, 27, 96, 0.12);
  border-color: var(--color-gold);
}
.product-card .product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-card .img-wrapper {
  overflow: hidden;
  position: relative;
}
.product-card .product-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-card .product-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.product-card .product-desc {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.product-card .btn-add-cart {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}
.product-card .btn-add-cart:hover {
  background: #1da851;
  transform: translateY(-1px);
}
.product-card .btn-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--color-gold);
  border-radius: 8px;
  padding: 8px 14px;
  transition: all 0.3s;
  cursor: pointer;
  white-space: nowrap;
}
.product-card .btn-details:hover {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

/* VALUE CARDS */
.value-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
  height: 100%;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(216, 27, 96, 0.1);
  border-color: var(--color-gold);
}
.value-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.value-card h5 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Page Hero */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #fff 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.page-hero .lead {
  color: var(--color-text);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-custom {
  padding: 15px 0;
  background: #f8f8f8;
  font-size: 0.85rem;
}
.breadcrumb-custom a {
  color: var(--color-text);
  text-decoration: none;
}
.breadcrumb-custom a:hover {
  color: var(--color-primary);
}

/* Category badge */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-badge.pestañas { background: #fce4ec; color: var(--color-primary); }
.category-badge.cejas-pmu { background: #fff3e0; color: #e65100; }
.category-badge.insumos { background: #e8f5e9; color: #2e7d32; }
.category-badge.cursos { background: #e3f2fd; color: #1565c0; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2rem; }
  .section-header h2 { font-size: 2rem; }
  body { padding-bottom: calc(var(--bottom-nav-height) + 80px); }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.8rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .action-bar-btns a { padding: 10px 3px; font-size: 0.65rem; }
  .action-bar-btns a i { font-size: 1.2rem; }
}
