/* ================================================
   TORTIGAS — Estilos Premium
   Paleta: Rojo oscuro, neutros limpios, WhatsApp verde
   Tipografía: Playfair Display + DM Sans
   ================================================ */

/* ---- Variables ---- */
:root {
  --rojo-primario: #8B0000;
  --rojo-oscuro:   #5a0000;
  --rojo-suave:    rgba(139, 0, 0, 0.08);

  --wa-green:      #25D366;
  --wa-dark:       #075E54;
  --wa-light-bg:   #ECE5DD;
  --wa-bubble:     #DCF8C6;

  --blanco:        #ffffff;
  --fondo:         #f9f9f9;
  --gris-borde:    #e8e8e8;
  --gris-claro:    #f0f0f0;
  --texto-oscuro:  #2d3436;
  --texto-medio:   #555e6a;
  --texto-suave:   #8a96a3;

  --radio-card:    18px;
  --sombra-card:   0 4px 30px rgba(0, 0, 0, 0.07);
  --sombra-hover:  0 12px 40px rgba(0, 0, 0, 0.13);
  --transicion:    0.3s ease;
}

/* ---- Reset base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--fondo);
  color: var(--texto-oscuro);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }


/* ================================================
   HERO / HEADER
   ================================================ */
.hero {
  position: relative;
  background: url('https://i.imgur.com/WZU7j2t.jpeg') center center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 130px 24px 110px;
  overflow: hidden;
}

/* Overlay en dos capas: oscurecimiento + viñeta de color de marca */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      rgba(90, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.60) 60%,
      rgba(0, 0, 0, 0.50) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.92;
}

.hero-tagline {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 36px;
  font-family: 'DM Sans', sans-serif;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transicion);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

.hero-cta:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
}

.hero-cta i { font-size: 1.2rem; }


/* ================================================
   LAYOUT PRINCIPAL
   ================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}


/* ================================================
   BUSCADOR + FILTROS
   ================================================ */
.search-filter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-suave);
  font-size: 1rem;
  pointer-events: none;
}

.search-box {
  width: 100%;
  padding: 15px 22px 15px 50px;
  border-radius: 50px;
  border: 1.5px solid var(--gris-borde);
  background: var(--blanco);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--texto-oscuro);
  outline: none;
  transition: var(--transicion);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.search-box:focus {
  border-color: var(--rojo-primario);
  box-shadow: 0 0 0 4px var(--rojo-suave);
}

.search-box::placeholder { color: var(--texto-suave); }

/* Botones de filtro */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--gris-borde);
  background: var(--blanco);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texto-medio);
  transition: var(--transicion);
}

.filter-btn:hover {
  border-color: var(--rojo-primario);
  color: var(--rojo-primario);
}

.filter-btn.active {
  background: var(--rojo-primario);
  color: var(--blanco);
  border-color: var(--rojo-primario);
  box-shadow: 0 4px 14px rgba(139,0,0,0.25);
}


/* ================================================
   GRID DE PRODUCTOS
   ================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Tarjeta */
.product-card {
  background: var(--blanco);
  border-radius: var(--radio-card);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
  animation: cardIn 0.4s ease both;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(139, 0, 0, 0.15);
}

/* Imagen */
.img-wrapper {
  position: relative;
  width: 100%;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

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

.product-card:hover .product-img { transform: scale(1.07); }

/* Badge de categoría */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(45, 52, 54, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-badge--premium {
  background: linear-gradient(135deg, var(--rojo-primario), #c0392b);
}

/* Info de la tarjeta */
.product-info {
  padding: 24px 22px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto-oscuro);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rojo-primario);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.product-features {
  flex-grow: 1;
  margin-bottom: 20px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--texto-medio);
  margin-bottom: 7px;
}

.product-features li::before {
  content: "✓";
  color: var(--rojo-primario);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Botón WhatsApp de tarjeta */
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--wa-green);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transicion);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.wa-btn:hover {
  background: #1ebe5d;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.wa-btn i { font-size: 1.1rem; }


/* ================================================
   ESTADO VACÍO (sin resultados)
   ================================================ */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 70px 24px;
  color: var(--texto-suave);
}

.empty-state.visible { display: flex; }

.empty-state i {
  font-size: 3rem;
  color: var(--gris-borde);
}

.empty-state p {
  font-size: 1.05rem;
  color: var(--texto-medio);
}

.empty-reset-btn {
  margin-top: 4px;
  padding: 10px 26px;
  border-radius: 50px;
  border: 1.5px solid var(--rojo-primario);
  background: transparent;
  color: var(--rojo-primario);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transicion);
}

.empty-reset-btn:hover {
  background: var(--rojo-primario);
  color: #fff;
}


/* ================================================
   SECCIÓN DE CONFIANZA
   ================================================ */
.trust-section {
  margin-top: 80px;
  background: var(--blanco);
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: var(--sombra-card);
  text-align: center;
}

.trust-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rojo-primario);
  margin-bottom: 12px;
}

.trust-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--texto-oscuro);
  margin-bottom: 48px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.trust-item { padding: 10px; }

.trust-icon-wrap {
  width: 68px;
  height: 68px;
  background: var(--rojo-suave);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transicion);
}

.trust-item:hover .trust-icon-wrap {
  background: var(--rojo-primario);
}

.trust-icon-wrap i {
  font-size: 1.7rem;
  color: var(--rojo-primario);
  transition: var(--transicion);
}

.trust-item:hover .trust-icon-wrap i { color: #fff; }

.trust-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--texto-oscuro);
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--texto-medio);
  line-height: 1.6;
}


/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--rojo-oscuro);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 48px 24px 30px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 48px;
  margin-bottom: 30px;
}

.footer-logo {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wa-green);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transicion);
}

.footer-contact a:hover { opacity: 0.8; }

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.45;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}


/* ================================================
   WIDGET DE WHATSAPP (Estilo Jetstereo)
   ================================================ */
.wa-widget-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  /* Crítico: el contenedor no debe bloquear clics fuera de sus hijos */
  pointer-events: none;
}

/* Restaurar clics en los hijos directos */
.wa-widget-container > *,
.wa-chat-window,
.wa-float-btn {
  pointer-events: all;
}

/* ---- Ventana de chat ---- */
.wa-chat-window {
  width: 330px;
  background: var(--blanco);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,0.22);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-chat-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Cabecera del chat */
.wa-chat-header {
  background: var(--wa-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.wa-chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.wa-chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

.wa-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: var(--wa-green);
  border-radius: 50%;
  border: 2px solid var(--wa-dark);
}

.wa-chat-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.wa-chat-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.wa-chat-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.wa-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background var(--transicion), color var(--transicion);
  line-height: 1;
}

.wa-close-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Cuerpo del chat */
.wa-chat-body {
  background-color: var(--wa-light-bg);
  /* Patrón sutil tipo WhatsApp */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23c8bdb4' opacity='0.4'/%3E%3C/svg%3E");
  padding: 18px 14px;
  min-height: 130px;
}

.wa-message-wrap {
  display: flex;
  justify-content: flex-start;
}

.wa-bubble {
  background: var(--blanco);
  border-radius: 0 12px 12px 12px;
  padding: 12px 15px;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--texto-oscuro);
  line-height: 1.5;
  animation: bubbleIn 0.4s 0.1s ease both;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wa-timestamp {
  display: block;
  font-size: 0.68rem;
  color: var(--texto-suave);
  text-align: right;
  margin-top: 6px;
}

/* Pie del chat */
.wa-chat-footer {
  padding: 12px 14px 10px;
  background: var(--blanco);
  border-top: 1px solid var(--gris-borde);
}

.wa-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gris-claro);
  border-radius: 25px;
  padding: 6px 6px 6px 16px;
  border: 1.5px solid transparent;
  transition: border-color var(--transicion);
}

.wa-input-bar:focus-within {
  border-color: var(--wa-green);
}

.wa-real-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--texto-oscuro);
  outline: none;
  min-width: 0;
}

.wa-real-input::placeholder { color: var(--texto-suave); }

.wa-input-placeholder {
  flex-grow: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--texto-suave);
  user-select: none;
}

.wa-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wa-green);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transicion);
  flex-shrink: 0;
}

.wa-send-btn:hover { background: #1ebe5d; }

.wa-powered {
  text-align: center;
  font-size: 0.7rem;
  color: var(--texto-suave);
  margin-top: 8px;
}

.wa-powered i { color: var(--wa-green); margin-right: 3px; }

/* ---- Botón flotante ---- */
.wa-float-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa-green);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--transicion), background var(--transicion), box-shadow var(--transicion);
}

.wa-float-btn:hover {
  transform: scale(1.1);
  background: #1ebe5d;
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}

.wa-notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}


/* ================================================
   BOTÓN "AGREGAR A COTIZACIÓN" en tarjetas
   ================================================ */
.quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--rojo-primario);
  background: transparent;
  color: var(--rojo-primario);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transicion), color var(--transicion), transform var(--transicion);
}
.quote-btn:hover,
.quote-btn:focus-visible {
  background: var(--rojo-primario);
  color: #fff;
  outline: none;
}
.quote-btn:active { transform: scale(0.97); }
.quote-btn.added {
  background: var(--rojo-primario);
  color: #fff;
  border-color: var(--rojo-primario);
}
.quote-btn i { font-size: 0.85rem; pointer-events: none; }


/* ================================================
   BOTÓN FLOTANTE DEL CARRITO
   ================================================ */
.cart-float-wrap {
  position: fixed;
  /* 28px bottom + 62px WA btn + 16px gap = 106px */
  bottom: 106px;
  right: 28px;
  z-index: 10002; /* por encima de todo, incluido el panel */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: all;
}

.cart-tooltip {
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.cart-float-wrap:hover .cart-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.cart-float-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--rojo-primario);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(139,0,0,0.4);
  transition: transform var(--transicion), background var(--transicion), box-shadow var(--transicion);
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}
.cart-float-btn:hover {
  transform: scale(1.1);
  background: var(--rojo-oscuro);
  box-shadow: 0 10px 36px rgba(139,0,0,0.55);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  background: #fff;
  color: var(--rojo-primario);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--rojo-primario);
  line-height: 1;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-badge.visible {
  transform: scale(1);
}


/* ================================================
   PANEL LATERAL DEL CARRITO
   ================================================ */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
.cart-panel.open { pointer-events: all; }

.cart-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.cart-panel.open .cart-panel__overlay { opacity: 1; }

.cart-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-panel.open .cart-panel__drawer {
  transform: translateX(0);
}

/* Header del panel */
.cart-panel__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--gris-borde);
  background: var(--blanco);
}
.cart-panel__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-panel__title-wrap > i {
  font-size: 1.3rem;
  color: var(--rojo-primario);
}
.cart-panel__title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--texto-oscuro);
}
.cart-panel__subtitle {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-top: 2px;
}
.cart-panel__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gris-claro);
  border: none;
  color: var(--texto-medio);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transicion), color var(--transicion);
  flex-shrink: 0;
}
.cart-panel__close:hover { background: var(--rojo-primario); color: #fff; }

/* Body — lista de items */
.cart-panel__body {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0;
}

/* Estado vacío */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 200px;
  text-align: center;
  color: var(--texto-suave);
}
.cart-empty i {
  font-size: 2.8rem;
  color: var(--gris-borde);
}
.cart-empty p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto-medio);
}
.cart-empty span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Lista de productos añadidos */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--fondo);
  border-radius: 12px;
  border: 1px solid var(--gris-borde);
  animation: itemIn 0.25s ease both;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--gris-borde);
  flex-shrink: 0;
}

.cart-item__info {
  flex-grow: 1;
  min-width: 0;
}
.cart-item__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--texto-oscuro);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rojo-primario);
  margin-top: 3px;
}

/* Controles de cantidad */
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cart-item__qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gris-borde);
  background: #fff;
  color: var(--texto-oscuro);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transicion), background var(--transicion), color var(--transicion);
  line-height: 1;
}
.cart-item__qty-btn:hover {
  border-color: var(--rojo-primario);
  background: var(--rojo-primario);
  color: #fff;
}
.cart-item__qty-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--texto-oscuro);
}

.cart-item__remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--texto-suave);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transicion), color var(--transicion);
  flex-shrink: 0;
}
.cart-item__remove:hover { background: #fee2e2; color: #e53e3e; }

/* Footer — total y botón */
.cart-panel__footer {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--gris-borde);
  background: var(--blanco);
  display: none;
  flex-direction: column;
  gap: 10px;
}
.cart-panel__footer.visible { display: flex; }

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-total-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--texto-medio);
  font-weight: 600;
}
.cart-total-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rojo-primario);
  letter-spacing: -0.5px;
}
.cart-total-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--texto-suave);
  margin-top: -4px;
}

.cart-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--wa-green);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transicion), transform var(--transicion);
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.cart-send-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}
.cart-send-btn i { font-size: 1.1rem; }

.cart-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--gris-borde);
  background: transparent;
  color: var(--texto-suave);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transicion), color var(--transicion);
}
.cart-clear-btn:hover {
  border-color: #e53e3e;
  color: #e53e3e;
}

/* Responsive */
@media (max-width: 480px) {
  .cart-float-wrap { bottom: 92px; right: 16px; }
  .cart-float-btn  { width: 54px; height: 54px; font-size: 1.3rem; }
  .cart-panel__drawer { width: 100vw; }
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 80px; }

  .trust-section { padding: 40px 24px; }

  .wa-chat-window { width: 300px; }

  .footer-inner { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 32px 16px 60px; }

  .wa-widget-container { bottom: 18px; right: 16px; }

  .wa-chat-window { width: calc(100vw - 32px); }
}
