/* ============================================
   RAZO CONNECT - BRAND DESIGN SYSTEM
   Regalando sonrisas a negocios
   Sistema de Temas Estacionales Integrado
   ============================================ */

/* Import Google Fonts - Poppins (títulos) + Inter (cuerpo) + Pacifico (San Valentín) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Pacifico&display=swap");

/* Import Sistema de Temas Estacionales */
@import url("/css/theme-variables.css");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ============================================
   BRAND COLOR PALETTE
   Ahora conectadas al Sistema de Temas
   ============================================ */
:root {
  /* Colores Primarios de Marca Razo - Conectados a Temas */
  --razo-orange: var(--theme-primary, #ff9966);
  --razo-turquoise: var(--theme-secondary, #4dd4d4);
  --razo-white: #ffffff;

  /* Colores de Soporte - Conectados a Temas */
  --razo-orange-light: var(--theme-primary-light, #ffb894);
  --razo-orange-dark: var(--theme-primary-dark, #ff7733);
  --razo-turquoise-light: var(--theme-secondary-light, #7febe8);
  --razo-turquoise-dark: var(--theme-secondary-dark, #2bb8b8);
  --razo-blue: #4a90e2;
  --razo-blue-light: #e3f2fd;

  /* Neutrales (NO azules) */
  --razo-cream: var(--theme-bg-secondary, #fff8f0);
  --razo-gray-warm: #6b5d57;
  --razo-gray-light: var(--theme-bg-tertiary, #f5f1ed);
  --razo-gray-dark: #2d3748;

  /* Layout helpers */
  --navbar-height: 72px;

  /* Semantic Colors */
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;

  /* Shadows - Conectadas a Temas */
  --shadow: var(--theme-shadow-sm, 0 2px 8px rgba(255, 119, 51, 0.1));
  --shadow-lg: var(--theme-shadow-lg, 0 10px 25px rgba(255, 119, 51, 0.15));
  --shadow-turquoise: 0 4px 15px rgba(77, 212, 212, 0.2);

  /* Colores de Acento del Tema */
  --accent-color: var(--theme-accent, #ffd166);
}

/* ============================================
   TYPOGRAPHY
   Conectadas al Sistema de Temas
   ============================================ */
body {
  font-family: var(--theme-font-body, "Inter"), -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--razo-cream);
  color: var(--razo-gray-warm);
  line-height: 1.6;
  font-size: 16px;
  font-weight: var(--theme-font-weight-body, 400);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--theme-font-title, "Poppins"), sans-serif;
  font-weight: var(--theme-font-weight-title, 600);
  letter-spacing: -0.5px;
}

h1 {
  font-size: 3rem;
  color: var(--razo-orange-dark);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  color: var(--razo-turquoise-dark);
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  color: var(--razo-gray-warm);
  line-height: 1.4;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   CATALOGO
   ============================================ */
.catalog-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - var(--navbar-height) - 2rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background-color: var(--razo-white);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
}

/* Asegura que los dropdowns del navbar puedan expandirse */
.navbar .container {
  overflow: visible;
}

.navbar .dropdown-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-top: 0.35rem;
  z-index: 2000;
}

.navbar .dropdown-menu.show {
  display: block;
  visibility: visible;
  opacity: 1;
}

@media (min-width: 1024px) {
  /* Hover en desktop */
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Espaciador de contenido para páginas internas */
.main-content-spacer {
  padding-top: 2rem;
}

.navbar.fixed-top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  margin-top: 0;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--razo-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.titulo-emoji-reemplazo {
  height: 1.1em;
  width: auto;
  vertical-align: -0.15em;
  margin-right: 0.12em;
  display: inline-block;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.navbar-link {
  color: var(--razo-gray-warm);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--razo-turquoise);
  transition: width 0.3s;
}

.navbar-link:hover {
  color: var(--razo-turquoise);
}

.navbar-link:hover::after {
  width: 100%;
}

.d-none {
  display: none !important;
}

.badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

 .cart-badge {
   position: absolute;
   top: 0.2rem;
   right: 0.05rem;
   width: 8px;
   height: 8px;
   background: #ff0000;
   border: 1px solid #ffffff;
   border-radius: 50%;
 }

.bg-danger {
  background-color: var(--danger-color) !important;
}

.rounded-pill {
  border-radius: 999px;
}

/* Dropdown Marcas */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-toggle {
  color: var(--razo-gray-warm);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  -webkit-user-select: none;
  user-select: none;
}

.navbar-dropdown-toggle:hover {
  color: var(--razo-turquoise);
}

.navbar-dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.navbar-dropdown.active .navbar-dropdown-arrow {
  transform: rotate(180deg);
}

.navbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-dropdown.active .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.navbar-dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--razo-gray-warm);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}

.navbar-dropdown-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.navbar-dropdown-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.navbar-dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 153, 102, 0.08),
    rgba(77, 212, 212, 0.08)
  );
  color: var(--razo-turquoise-dark);
  padding-left: 1.5rem;
}

.navbar-dropdown-item.highlight {
  background: var(--razo-orange);
  color: white;
  font-weight: 600;
}

.navbar-dropdown-item.highlight:hover {
  background: var(--razo-orange-dark);
  color: white;
}

.navbar-dropdown-loading {
  padding: 2rem;
  text-align: center;
  color: #999;
}

.navbar-dropdown-empty {
  padding: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 0.65rem;
}

.btn-md {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  border-radius: 0.6rem;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 0.55rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--razo-orange),
    var(--razo-orange-dark)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(255, 119, 51, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 119, 51, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--razo-turquoise-dark);
  border: 2px solid var(--razo-turquoise);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--razo-turquoise);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--razo-orange-dark);
  border: 2px solid var(--razo-orange);
  box-shadow: none;
}

.btn-outline-primary:hover:not(:disabled) {
  background-color: var(--razo-orange);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 119, 51, 0.35);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #ffffff;
  color: #757575;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  margin-top: 0.75rem;
}

.btn-google img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.btn-google span {
  line-height: 1;
}

.btn-google:hover {
  background-color: #f8f9fa;
  border-color: #d2e3fc;
  box-shadow: 0 1px 3px rgba(66, 133, 244, 0.3);
}

.btn-google:active {
  background-color: #e8f0fe;
}

.carousel-container {
  position: relative;
  margin-top: 1.5rem;
}

#ofertasTrack {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

#ofertasTrack::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.flash-product-card {
  min-width: 280px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.12);
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease-in-out;
}

.carousel-btn.prev {
  left: -8px;
}

.carousel-btn.next {
  right: -8px;
}

.carousel-btn:hover {
  background-color: #f97316;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(
    135deg,
    var(--razo-cream) 0%,
    #ffebdb 50%,
    #e6f9f9 100%
  );
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 153, 102, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  z-index: 1;
}

.hero-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 1.125rem;
  color: var(--razo-turquoise-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--razo-orange-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--razo-gray-warm);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--razo-gray-warm);
}

.hero-benefit::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--razo-turquoise);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(77, 212, 212, 0.2);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 4rem 0;
  background: var(--razo-white);
}

.features-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--razo-orange-dark);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--razo-white);
  border: 2px solid var(--razo-gray-light);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--razo-turquoise);
  box-shadow: var(--shadow-turquoise);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--razo-orange);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--razo-turquoise-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--razo-gray-warm);
  line-height: 1.6;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background: linear-gradient(
    135deg,
    var(--razo-orange),
    var(--razo-orange-dark)
  );
  padding: 3rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.95;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 4rem 0;
  background: var(--razo-cream);
}

.testimonials-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--razo-orange-dark);
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--razo-white);
  border: 2px solid var(--razo-turquoise);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--razo-gray-warm);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--razo-turquoise-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--razo-turquoise-dark);
  font-size: 1.25rem;
}

.testimonial-info strong {
  display: block;
  color: var(--razo-orange-dark);
  margin-bottom: 0.25rem;
}

.testimonial-info span {
  color: var(--razo-gray-warm);
  font-size: 0.875rem;
}

.testimonial-stars {
  color: var(--razo-orange);
  margin-top: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-container {
  max-width: 450px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--razo-white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--razo-orange-dark);
}

.form-subtitle {
  text-align: center;
  color: var(--razo-gray-warm);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--razo-gray-warm);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--razo-gray-light);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--razo-turquoise);
  box-shadow: 0 0 0 3px rgba(77, 212, 212, 0.1);
}

.form-input.error {
  border-color: var(--danger-color);
}

.form-error {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--razo-white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--razo-gray-light);
}

.card-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--razo-orange-dark);
}

/* ============================================
   CART ITEMS
   ============================================ */
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--razo-gray-light);
  border-radius: 1rem;
  margin-bottom: 1rem;
  background-color: var(--razo-white);
  transition: border-color 0.3s;
}

.cart-item:hover {
  border-color: var(--razo-turquoise);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-title {
  font-weight: 600;
  color: var(--razo-orange-dark);
  margin-bottom: 0.25rem;
}

.cart-item-details {
  color: var(--razo-gray-warm);
  font-size: 0.875rem;
}

.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.cart-item-subtotal {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--razo-orange);
}

/* Badges suaves de estatus de pedido (uso global clientes/admin/agentes) */
.pedido-estatus-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.pedido-estatus-badge.pendiente {
  background: #fff7ed;
  color: var(--razo-orange);
}

.pedido-estatus-badge.confirmado {
  background: #dcfce7;
  color: #16a34a;
}

.pedido-estatus-badge.en-ruta,
.pedido-estatus-badge.enviado {
  background: #dbeafe;
  color: #2563eb;
}

.pedido-estatus-badge.entregado,
.pedido-estatus-badge.completado {
  background: #f0fdf4;
  color: #15803d;
}

.pedido-estatus-badge.cancelado {
  background: #fef2f2;
  color: #dc2626;
}

/* ============================================
   SUMMARY
   ============================================ */
.summary {
  background-color: var(--razo-white);
  border: 2px solid var(--razo-turquoise);
  border-radius: 1rem;
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid var(--razo-gray-light);
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--razo-orange);
  border-bottom: none;
  margin-bottom: 0;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ====================================
   PRODUCT CARD - NIKE MINIMAL STYLE
   ==================================== */

.product-card {
  background: #fff;
  border-radius: 0.75rem;
  border: none;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover .product-title {
  color: var(--razo-orange, #FF7733);
}

/* Contenedor de Imagen - Estilo Nike EXACTO */
.imagen-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #F6F6F6;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

/* Imagen del Producto - Centrada sin recortar */
.imagen-wrapper img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  mix-blend-mode: normal;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .imagen-wrapper img {
  transform: scale(1.05);
}

/* ====================================
   BADGE FLOTANTE - Nuevo/Oferta
   ==================================== */

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Badge Nuevo - Estilo Nike (blanco con borde) */
.product-badge--nuevo {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Badge Oferta - Estilo Razo (naranja) */
.product-badge--oferta {
  background: linear-gradient(135deg, #FF7733, #FF6B35);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 119, 51, 0.3);
}

/* ====================================
   BOTÓN FLOTANTE DE CARRITO
   ==================================== */

.cart-floating-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
  z-index: 10;
}

.cart-floating-btn svg {
  color: #111;
  transition: transform 0.2s;
}

.product-card:hover .cart-floating-btn {
  opacity: 1;
  transform: translateY(0);
}

.cart-floating-btn:hover {
  background: var(--razo-orange, #FF7733);
  transform: scale(1.1) translateY(0);
  box-shadow: 0 6px 16px rgba(255, 119, 51, 0.4);
}

.cart-floating-btn:hover svg {
  color: #fff;
  transform: rotate(90deg);
}

/* Fallback para productos sin imagen */
.imagen-wrapper .product-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  font-size: 3.5rem;
  width: 100%;
  height: 100%;
  border-radius: 8px 8px 0 0;
}

.packs-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pack-chip {
  border: 1px solid var(--razo-gray-light);
  background-color: #f9fafb;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.1s ease;
}

.pack-chip:hover {
  background-color: #eef2ff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.pack-chip-icon {
  font-size: 0.9em;
  color: #6b7280;
}

.packs-suggestions-wrapper {
  margin-bottom: 0.5rem;
}

.packs-suggestions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pack-suggestion-chip {
  border-radius: 999px;
  border: 1px dashed var(--razo-gray-light);
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.1s ease;
}

.pack-suggestion-chip:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
}

.pack-suggestion-chip--active {
  background-color: var(--razo-turquoise);
  color: #ffffff;
  border-color: var(--razo-turquoise-dark, var(--razo-turquoise));
}

/* ====================================
   CONTENIDO DE LA TARJETA
   ==================================== */

.product-info {
  padding: 1rem 0.5rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Categoría - Gris claro y pequeña */
.product-category {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: block;
}

/* Título del Producto - Font-weight 600, color oscuro */
.product-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: #111;
  margin: 0;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

/* Precio - Grande y negrita */
.product-price {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

/* ====================================
   SISTEMA DE PRECIOS CON OFERTA
   ==================================== */

.precio-contenedor {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price .precio-original,
.precio-original {
  font-size: 0.9em !important;
  color: #999 !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

.product-price .precio-oferta,
.precio-oferta {
  font-size: 1.2em !important;
  color: #D32F2F !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Precio normal sin oferta */
.precio-normal {
  font-size: 1.125rem;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Badge de descuento porcentaje */
.descuento-badge {
  background: #D32F2F;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.cart-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--razo-orange),
    var(--razo-orange-dark)
  );
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 119, 51, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 119, 51, 0.35);
}

.cart-icon-button:active {
  transform: scale(0.95);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--razo-orange-dark);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--razo-orange);
  margin-bottom: 0.5rem;
}

.product-details {
  font-size: 0.875rem;
  color: var(--razo-gray-warm);
  margin-bottom: 1rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  border: 4px solid var(--razo-gray-light);
  border-top: 4px solid var(--razo-orange);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background-color: var(--razo-gray-warm);
  color: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
  max-width: 400px;
  font-weight: 500;
}

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

.toast-success {
  background-color: var(--success-color);
}

.toast-error {
  background-color: var(--danger-color);
}

.toast-warning {
  background-color: var(--warning-color);
}

.toast-info {
  background: linear-gradient(
    135deg,
    var(--razo-turquoise),
    var(--razo-turquoise-dark)
  );
}

/* ============================================
   ALERT
   ============================================ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

.alert-info {
  background-color: #e6f9f9;
  color: var(--razo-turquoise-dark);
  border: 2px solid var(--razo-turquoise);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--razo-orange-dark);
}

.empty-state-text {
  color: var(--razo-gray-warm);
  margin-bottom: 1.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--razo-turquoise),
    var(--razo-turquoise-dark)
  );
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-section .btn {
  background: white;
  color: var(--razo-turquoise-dark);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.cta-section .btn:hover {
  background: var(--razo-orange);
  color: white;
}
/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #111827 100%);
  color: white;
  padding: 4.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(255, 153, 102, 0.18) 0%,
    rgba(15, 23, 42, 0) 70%
  );
  border-radius: 50%;
  filter: blur(0.5px);
}

footer::before {
  top: -60px;
  left: -60px;
}

footer::after {
  bottom: -80px;
  right: -40px;
  background: radial-gradient(
    circle,
    rgba(77, 212, 212, 0.2) 0%,
    rgba(17, 24, 39, 0) 70%
  );
}

.rz-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #0b1220 0%, #060a12 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.5rem;
}

.rz-footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  .rz-footer-top {
    grid-template-columns: 1.2fr 1.8fr;
    align-items: start;
  }
}

.rz-footer-name {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.rz-footer-tagline {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 28rem;
}

.rz-footer-columns {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .rz-footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rz-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.rz-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.rz-footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.rz-footer-col a:hover {
  color: #ffffff;
}

.rz-footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .rz-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.rz-footer-copy {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.rz-footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rz-footer-social-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rz-footer-social-link:hover {
  color: #ffffff;
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.12);
}

.footer-content {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 2.25rem;
  align-items: start;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--razo-orange-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-tagline {
  color: rgba(241, 245, 249, 0.88);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-size: 0.98rem;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-newsletter input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: transparent;
  color: white;
  border-radius: 999px;
  outline: none;
  font-size: 0.95rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.footer-newsletter button {
  background: linear-gradient(135deg, var(--razo-orange) 0%, #ff9f68 100%);
  color: #1f2937;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
}

.footer-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 153, 102, 0.25);
}

.footer-newsletter-hint {
  color: rgba(203, 213, 225, 0.8);
  font-size: 0.8rem;
}

.footer-section h4 {
  color: var(--razo-turquoise-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(241, 245, 249, 0.78);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--razo-orange-light);
  transform: translateX(4px);
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0),
    rgba(248, 250, 252, 0.35),
    rgba(148, 163, 184, 0)
  );
  margin-bottom: 2.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
}

.footer-copy,
.footer-made {
  color: rgba(226, 232, 240, 0.85);
  margin: 0;
  font-size: 0.9rem;
}

.footer-made span {
  display: inline-block;
  transform: translateY(2px);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.footer-social a {
  color: rgba(226, 232, 240, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.footer-social-link.instagram {
  background: linear-gradient(
    135deg,
    rgba(252, 214, 112, 0.15),
    rgba(244, 114, 182, 0.15)
  );
  border-color: rgba(244, 114, 182, 0.3);
}

.footer-social-link.facebook {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(30, 64, 175, 0.15)
  );
  border-color: rgba(96, 165, 250, 0.3);
}

.footer-social-link.whatsapp {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.18),
    rgba(14, 165, 233, 0.12)
  );
  border-color: rgba(45, 212, 191, 0.35);
}

.footer-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social a:hover {
  color: #f8fafc;
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(94, 234, 212, 0.6);
  box-shadow: 0 15px 30px rgba(13, 148, 136, 0.25);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
  }

  .cart-item-price {
    grid-column: 2;
    align-items: flex-start;
    margin-top: 0.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .navbar-menu {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
