/* ----------------------------
    MODO BESTIA — STYLE DEPURADO
    (sin duplicados, sin conflictos)
-----------------------------*/

/* ---------- VARIABLES ---------- */
:root {
  --blue: #0D4AA6;
  --blue-light: #2B8AF6;
  --dark: #0A0A0A;
  --light: #F5F7FA;
  --text: #111;
  --gray: #888;
}

/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- BODY ---------- */
body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------------- NAVBAR ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(
    135deg,
    rgba(180, 195, 220, 1) 0%,
    rgba(100, 130, 169, 1) 50%,
    #493ad1 100%
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  transition: box-shadow 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .logo img { height: 48px; }

.site-header .logo a {
  text-decoration: none;
}

.site-header .logo .brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.site-header .nav {
  display: flex;
  gap: 1.8rem;
}

.site-header .nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 600;
}

/* ---------------- NAVBAR MOBILE ---------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#cart-count {
  background: #2B8AF6;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(73, 58, 209, 0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    gap: 0;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: block;
  }

  .nav-link:last-child {
    border-bottom: none;
  }
/* ---------------- CATEGORÍAS ---------------- */
.category-nav-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(180deg, #493ad1, #232425);
  overflow-x: auto;
}

.cat-link {
  padding: 8px 18px;
  background: #f0f2f5;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.3s;
}

.cat-link:hover,
.cat-link.active {
  background: var(--blue);
  color: white;
}

/* ---------------- HERO ---------------- */
.hero-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--dark), #1c1c1c 60%, var(--blue));
  color: white;
  gap: 2rem;
}

.hero-premium-text { max-width: 50%; }

.hero-premium-text h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-premium-text h2 {
  font-size: 1.8rem;
  margin: 1rem 0;
  color: var(--blue-light);
}

.hero-premium-img img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* CTA */
.cta-big {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--blue-light);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-big:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

/* ---------------- CARRUSEL ---------------- */
.carousel-container {
  position: relative;
  width: 100vw;
  left: calc(-50vw + 50%);
  overflow: hidden;
  background: black;
  padding: 2.5rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track img {
  width: 200px;
  height: 120px;
  object-fit: contain;
  background-color: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.carousel-track img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.carousel-item {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}

.carousel-item img {
  width: 200px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin: 0 15px;
  transition: transform 0.3s ease;
}

.carousel-item:hover img {
  transform: scale(1.1);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- TITULOS ---------------- */
.section-title {
  font-size: 2rem;
  color: #333;
  margin: 100px 0 50px;
  text-align: center;
}

/* ---------------- GRID PRODUCTOS ---------------- */
.grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.card-premium {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(10, 169, 218, 0.2);
  border-color: #0aa9da;
}

.card-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-25deg);
  transition: 0.7s;
}

.card-premium:hover::after {
  left: 125%;
}

.card-img {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 15px;
  overflow: hidden;
}

.card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.card-premium:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  overflow: visible;
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
}

/* ---------------- BOTONES CARD ---------------- */
.btn-group {
  display: flex;
  overflow: visible;
  gap: 5px;
  margin-top: 15px;
}

.btn-card-index {
  border-radius: 15px;
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(10, 169, 218, 0.3);
  text-decoration: none;
  color: #0cd8e3;
  background: linear-gradient(135deg, #020f3d, #051a5e);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-card-index:hover {
  background: #0aa9da;
  color: white;
  box-shadow: 0 0 20px rgba(10, 169, 218, 0.6);
  transform: translateY(-3px);
  filter: brightness(1.2);
}

.btn-fill-home {
  background: var(--blue);
  text-decoration: none;
  outline: none;
}

/* ---------------- BOTONES FLOTANTES ---------------- */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 9999;
  animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-btn {
  animation: floatAnimation 3s ease-in-out infinite;
  display: block;
}

.contact-btn.instagram { animation-delay: 0.5s; }

.contact-btn img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #1fca0c;
}

.contact-btn.whatsapp:hover img {
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.8);
  transform: scale(1.15) translateY(-5px);
}

.contact-btn.instagram:hover img {
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.8);
  transform: scale(1.15) translateY(-5px);
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- FOOTER ---------------- */
footer {
  background: #1a1a1a;
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

/* ---------------- BUSCADOR ---------------- */
.search-wrapper {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

#global-search {
  width: 100%;
  padding: 12px 45px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  background-color: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#global-search:focus {
  background-color: #fff;
  border-color: #0aa9da;
  box-shadow: 0 10px 15px -3px rgba(10, 169, 218, 0.1);
}

#global-search::placeholder {
  color: #94a3b8;
  font-style: normal;
  font-weight: 400;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: #94a3b8;
  pointer-events: none;
}

#clear-search {
  position: absolute;
  right: 15px;
  background: #e2e8f0;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  z-index: 5;
}

#clear-search:hover {
  background: #cbd5e1;
  color: #020f3d;
}

#clear-search.hidden {
  display: none;
}

/* ---------------- CARRITO ---------------- */
.cart-page {
  background-color: #f4f4f4;
  min-height: 100vh;
  padding: 60px 20px;
  width: 100%;
}

.cart-page .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cart-page h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 30px;
  display: inline-block;
  border-left: 5px solid var(--blue, #0D4AA6);
  padding-left: 15px;
  color: #1a1a1a;
}

.cart-table {
  width: 100%;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}

.cart-table thead th {
  background-color: #01081f;
  color: #0aa9da;
  padding: 20px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.cart-table tbody td {
  background: linear-gradient(135deg, #0aa9daa5 0%, #020f3d 100%);
  color: #ffffff;
  padding: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border: none;
  text-align: center;
}

.cart-table tbody tr td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
.cart-table tbody tr td:last-child { border-radius: 0 12px 12px 0; }

.cart-table tbody tr:hover td {
  filter: brightness(1.2);
  transition: 0.3s;
}

.cart-summary {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: none;
  border: none;
  box-shadow: none;
}

#cart-total-container {
  text-align: right;
  margin-bottom: 25px;
}

#cart-total-container p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 5px;
}

#cart-total-container strong {
  font-size: 2.8rem;
  color: #1a1a1a;
  letter-spacing: -1px;
  display: block;
}

.btn-delete {
  background: rgba(10, 169, 218, 0.15);
  color: #0aa9da;
  border: 1px solid #0aa9da;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-delete:hover {
  background: #0aa9da;
  color: white;
}

.btn-fill {
  display: inline-block;
  background: linear-gradient(135deg, #1a1a1a 0%, #0b0000 100%);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-fill:hover {
  background: linear-gradient(135deg, #0aa9daa5 0%, #020f3d 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px rgba(10, 169, 218, 0.4);
}

/* ---------------- CARRITO VACÍO ---------------- */
.empty-cart {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.empty-cart-box {
  text-align: center;
  max-width: 400px;
}

.empty-cart-box i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart-box h2 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.empty-cart-box p {
  color: #888;
  margin-bottom: 30px;
}

/* ---------------- IMAGEN EN CARRITO ---------------- */
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.cart-thumb {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
  border: 1px solid #eee;
  padding: 4px;
  flex-shrink: 0;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.btn-clear-cart {
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.btn-clear-cart:hover {
  color: #e53e3e;
}

/* ---------------- CHECKOUT ---------------- */
.checkout-premium-page {
  background-color: #f4f7f9;
  padding: 60px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.checkout-container {
  max-width: 600px;
  margin: 0 auto;
  width: 90%;
}

.checkout-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  padding: 40px;
  border: 1px solid rgba(10, 169, 218, 0.1);
}

.checkout-header h1 {
  color: #020f3d;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.checkout-header p {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
}

.checkout-shield {
  display: block;
  font-size: 2rem;
  color: #0aa9da;
  text-align: center;
  margin-bottom: 10px;
}

.checkout-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-thumb {
  width: 45px;
  height: 45px;
  min-width: 45px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8f8f8;
  border: 1px solid #eee;
  padding: 3px;
}

.order-summary {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.order-summary h3 {
  font-size: 1.1rem;
  color: #020f3d;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #444;
  font-size: 0.95rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px dashed #ccc;
}

.order-total span {
  font-size: 1.1rem;
  font-weight: bold;
}

.order-total strong {
  font-size: 1.5rem;
  color: #0aa9da;
}

.order-number {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}

.order-number strong {
  color: #020f3d;
}

.finalize-whatsapp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  text-decoration: none;
  padding: 18px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.finalize-whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
  filter: brightness(1.1);
}

.finalize-whatsapp-btn span {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.finalize-whatsapp-btn small {
  font-weight: normal;
  opacity: 0.9;
  font-size: 0.75rem;
}

.wa-info {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}

.back-to-cart {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.back-to-cart:hover {
  color: #020f3d;
}

/* ---------------- TOAST ---------------- */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #020f3d;
  color: #0aa9da;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 1px solid #0aa9da;
  z-index: 10000;
  font-weight: bold;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------------- HERO DIVIDER ---------------- */
.hero-divider {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin: 80px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('../assets/img/hero2.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(2, 15, 61, 0.95) 0%,
    rgba(2, 15, 61, 0.7) 40%,
    rgba(2, 15, 61, 0.2) 100%);
  z-index: 1;
}

.divider-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.divider-text {
  color: #ffffff;
  padding: 20px;
}

.badge-new {
  display: inline-block;
  background: #0aa9da;
  color: #020f3d;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.divider-text h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.divider-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 500px;
}

.btn-divider {
  display: inline-block;
  padding: 16px 40px;
  background: #0aa9da;
  color: #020f3d;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #0aa9da;
}

.btn-divider:hover {
  background: transparent;
  color: #0aa9da;
  transform: scale(1.05);
}

.divider-product {
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider-product img {
  max-width: 100%;
  height: auto;
  max-height: 450px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: transform 0.6s ease;
}

.hero-divider:hover .divider-product img {
  transform: scale(1.08) rotate(-3deg);
}

/* ---------------- HERO DIVIDER SCIENCE ---------------- */
.hero-divider-science {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin: 80px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('../assets/img/hero2.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.divider-overlay-science {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-90deg,
    rgba(2, 15, 61, 0.95) 0%,
    rgba(2, 15, 61, 0.7) 40%,
    rgba(2, 15, 61, 0.2) 100%);
  z-index: 1;
}

.divider-content-science {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
  padding: 0 10%;
}

.divider-text-science {
  color: #ffffff;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.badge-science {
  background: #ffffff;
  color: #020f3d;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.divider-text-science h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.divider-text-science p {
  font-size: 1.1rem;
  max-width: 550px;
  margin-bottom: 30px;
}

.btn-divider-science {
  padding: 16px 40px;
  background: #0aa9da;
  color: #020f3d;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.btn-divider-science:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.divider-product-science img {
  max-height: 400px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: transform 0.6s ease;
}

.hero-divider-science:hover .divider-product-science img {
  transform: scale(1.1) rotate(3deg);
}

/* ---------------- SKELETON ---------------- */
.skeleton-loader {
  background: #e2e2e2;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}

@keyframes shine { to { background-position-x: -200%; } }

/* ---------------- HERO CATÁLOGO ---------------- */
.products-hero {
  height: 300px;
  background: linear-gradient(rgba(2,15,61,0.8), rgba(2,15,61,0.8)), url('../assets/img/hero2.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 40px;
}

.hero-content-mini h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #0aa9da;
}

/* ---------------- TABS ---------------- */
.product-tabs { margin-top: 40px; border-top: 1px solid #ddd; }

.tabs-header { display: flex; gap: 20px; padding: 20px 0; }

.tab-btn {
  background: none;
  border: none;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}

.tab-btn.active { color: #0aa9da; border-bottom: 2px solid #0aa9da; }

.tab-pane { display: none; line-height: 1.6; padding: 15px 0; color: #444; }
.tab-pane.active { display: block; animation: fadeIn 0.4s; }

/* ---------------- PRODUCT DETAIL ---------------- */
.product-detail-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0;
}

.price-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: #020f3d;
  margin: 20px 0;
}

.stock-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
}

.out-of-stock {
  background: #fdecea;
  color: #c0392b;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

#main-view {
  transition: opacity 0.2s ease;
}

.product-gallery {
  flex: 1;
  max-width: 480px;
  width: 100%;
}

/* ---------------- MINIATURAS FRONTEND ---------------- */
.thumbnails-grid {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumb-wrapper {
  width: 120px;
  height: 120px;
  border: 2px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.thumb-wrapper:hover {
  border-color: #0aa9da;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f8f8;
  padding: 5px;
}

/* ---------------- BOTÓN COMPRA ---------------- */
.purchase-box { margin: 30px 0; }

.btn-bestia-add {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  background: #020f3d;
  color: #0aa9da;
  border: 2px solid #0aa9da;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-bestia-add:hover {
  background: #0aa9da;
  color: #020f3d;
  box-shadow: 0 10px 20px rgba(10, 169, 218, 0.3);
  transform: translateY(-3px);
}

.btn-bestia-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.btn-bestia-disabled:hover {
  background: #020f3d;
  transform: none;
  box-shadow: none;
}

.breadcrumb {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.product-page-wrapper { padding: 20px 0 60px; }

/* ---------------- CATALOG DIVIDER ---------------- */
.catalog-divider {
  width: 100%;
  background: #020f3d;
  padding: 80px 0;
  margin: 60px 0;
  border-top: 2px solid #0aa9da;
  border-bottom: 2px solid #0aa9da;
  text-align: center;
}

.divider-info h2 {
  color: #fff;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.divider-info p {
  color: #0aa9da;
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.badge-bestia {
  color: #fff;
  border: 1px solid #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.catalog-divider-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn-divider-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-divider-wa:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: white;
}

.btn-divider-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-divider-ig:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: white;
}

/* ---------------- BOTÓN VOLVER ---------------- */
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: 0.3s;
}

.btn-volver:hover {
  color: var(--blue);
  transform: translateX(-5px);
}

/* ---------------- SELECTOR CANTIDAD ---------------- */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #0aa9da;
  background: transparent;
  color: #0aa9da;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.qty-btn:hover {
  background: #0aa9da;
  color: white;
}

.qty-value {
  font-weight: 700;
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
  color: white;
}

/* ---------------- RESEÑAS ---------------- */
.reviews-section {
  padding: 80px 0;
  background: #f8fafc;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(10,169,218,0.12);
}

.review-stars { display: flex; gap: 4px; }
.review-stars i { color: #f5a623; font-size: 1rem; }

.review-body {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #020f3d, #0aa9da);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author span {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem;
}

/* ---------------- COMBOS ---------------- */
.combos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0 60px;
}

.combo-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.combo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(10,169,218,0.15);
}

.combo-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #020f3d, #0aa9da);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.combo-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #020f3d;
  margin-top: 10px;
}

.combo-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.combo-products {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.combo-product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.combo-product-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.combo-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.combo-product-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.combo-product-item small {
  font-size: 0.78rem;
  color: #0aa9da;
  font-weight: 700;
}

.combo-plus {
  color: #0aa9da;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.combo-pricing {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #eee;
}

.combo-original {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 6px;
}

.combo-original s { color: #c0392b; }

.combo-final {
  font-size: 2rem;
  font-weight: 800;
  color: #020f3d;
  margin-bottom: 6px;
}

.combo-saving {
  font-size: 0.85rem;
  color: #2e7d32;
  font-weight: 600;
  background: #e8f5e9;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
}

.combo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.combo-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: white;
}

.combo-btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #020f3d;
  color: #0aa9da;
  border: 2px solid #0aa9da;
  padding: 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.combo-btn-add:hover {
  background: #0aa9da;
  color: white;
  transform: translateY(-2px);
}

.combo-btn-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.combo-tag {
  display: inline-block;
  background: linear-gradient(135deg, #020f3d, #0aa9da);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* ---------------- THANK YOU PAGE ---------------- */
.thankyou-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.thankyou-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  padding: 50px 40px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(10, 169, 218, 0.1);
}

.thankyou-icon {
  font-size: 4rem;
  color: #25D366;
  margin-bottom: 20px;
}

.thankyou-card h1 {
  font-size: 2rem;
  color: #020f3d;
  margin-bottom: 10px;
}

.thankyou-sub {
  color: #888;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

.thankyou-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 35px;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 18px;
  border: 1px solid #eee;
}

.step i {
  font-size: 1.3rem;
  color: #0aa9da;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.step span {
  font-size: 0.95rem;
  color: #444;
  font-weight: 600;
}

.thankyou-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ---------------- PRODUCTS PAGE ---------------- */
.empty-products {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-products i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

/* ---------------- IMÁGENES ADICIONALES ADMIN ---------------- */
.extra-images-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.extra-img-item {
  position: relative;
  width: 200px;
  height: 200px;
}

.extra-img-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #f8f8f8;
  padding: 3px;
}

.btn-delete-img {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #c0392b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-decoration: none;
  transition: 0.2s;
}

.btn-delete-img:hover {
  background: #96281b;
  color: white;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 992px) {
  .divider-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .divider-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .divider-product { margin-top: 30px; }
  .divider-product img { max-height: 300px; }
  .hero-divider { background-attachment: scroll; }
  .divider-overlay { background: rgba(2, 15, 61, 0.85); }

  .divider-content-science { grid-template-columns: 1fr; text-align: center; }
  .divider-text-science { align-items: center; text-align: center; }
  .divider-product-science { order: 2; }
  .divider-text-science { order: 1; }

  .combos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-premium {
    flex-direction: column;
    text-align: center;
  }
  .hero-premium-text { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero-premium {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
  .hero-premium-text { max-width: 100%; }
  .hero-premium-text h1 { font-size: 2rem; }
  .hero-premium-text h2 { font-size: 1.3rem; }
  .hero-premium-img img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
  }
  .hero-premium-img { width: 100%; }

  .grid-premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
}

  .card-img { height: 180px; }
  .card-body { padding: 1rem; }
  .card-body h3 { font-size: 0.85rem; }
  .price { font-size: 1.1rem; }
  .btn-card-index { height: 40px; font-size: 0.75rem; }

  .section-title { font-size: 1.5rem; margin: 50px 0 30px; }

  .hero-divider,
  .hero-divider-science {
    background-attachment: scroll;
    min-height: auto;
    padding: 40px 0;
  }
  .divider-content,
  .divider-content-science {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 0 1rem;
  }
  .divider-text h2,
  .divider-text-science h2 { font-size: 1.8rem; }
  .divider-product,
  .divider-product-science { display: none; }

  .cart-table thead { display: none; }
  .cart-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 10px;
  }
  .cart-table tbody td { border: none; padding: 0; }
  .cart-product-cell { width: 100%; }

  .checkout-card { padding: 25px 15px; }

  .product-detail-premium {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-gallery { max-width: 100%; }
  .btn-bestia-add { max-width: 100%; }

  .thumb-wrapper { width: 80px; height: 80px; }

  .combos-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .catalog-divider { padding: 40px 20px; }
  .divider-info h2 { font-size: 1.6rem; }
  .catalog-divider-btns {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn img { width: 45px; height: 45px; }
  .floating-contact { bottom: 20px; right: 20px; }

  .thankyou-card { padding: 35px 20px; }
  .thankyou-card h1 { font-size: 1.6rem; }
}

@media (max-width: 600px) {
  .combos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .thankyou-card { padding: 35px 20px; }
  .thankyou-card h1 { font-size: 1.6rem; }
}