/* ============================================
    VARIABLES GLOBALES - Moderno y balanceado
    ============================================ */
:root {
  --primary-color: #2563eb;
  --primary-light: #dbeafe;
  --secondary-color: #3b82f6;
  --accent-color: #ef4444;
  --accent-light: #fee2e2;
  --light-color: #ffffff;
  --dark-color: #1f2937;
  --gray-color: #6b7280;
  --gray-light: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
    ANIMACIONES Y KEYFRAMES
    ============================================ */
@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes slideDown {
  0% {
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes categorySelect {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes highlightPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 99, 235, 0.1);
  }
}

@keyframes highlightWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes modalAppear {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
    RESET Y ESTILOS BASE
    ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: #fafafa;
  color: var(--dark-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

/* ============================================
    HEADER - Moderno con toque premium
    ============================================ */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  color: white;
  width: 100px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-color);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary-color);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* ============================================
    NAVEGACIÓN - Elegante y funcional
    ============================================ */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

nav a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.6rem 0;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a i {
  font-size: 1.1rem;
  opacity: 0.8;
}

nav a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  order: 3;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: var(--secondary-color);
}

/* ============================================
    HERO - Impactante pero limpio
    ============================================ */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  margin-bottom: 4rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  display: flex;
  align-items: center;
  z-index: 2;
  color: white;
}

.hero-overlay .container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 600px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-color), #922525);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 220px;
  width: fit-content;
}

.hero .btn-scroll::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.hero .btn-scroll:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

.hero .btn-scroll:hover::before {
  left: 100%;
}

.hero .btn-scroll i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.hero .btn-scroll:hover i {
  transform: translateX(5px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
  left: 25px;
}
.hero-nav.next {
  right: 25px;
}

.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* ============================================
    CATEGORÍAS - Atractivas y claras
    ============================================ */
.categories-section {
  margin-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.categories-grid > * {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.categories-grid > *:nth-child(1) {
  animation-delay: 0.1s;
}
.categories-grid > *:nth-child(2) {
  animation-delay: 0.2s;
}
.categories-grid > *:nth-child(3) {
  animation-delay: 0.3s;
}
.categories-grid > *:nth-child(4) {
  animation-delay: 0.4s;
}

.category-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.category-link:hover {
  transform: translateY(-8px);
}

.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.category-link:hover .category-card::before {
  opacity: 1;
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.category-icon {
  margin-bottom: 1.5rem;
}

.category-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: var(--transition);
}

.category-link:hover .category-icon img {
  transform: scale(1.08);
}

.category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  transition: var(--transition);
}

.category-link:hover .category-title {
  color: var(--primary-color);
}

.category-count {
  color: var(--gray-color);
  font-size: 0.95rem;
  background: var(--gray-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  display: inline-block;
}

/* Indicador de categoría */
.category-indicator {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-indicator.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: slideDown 0.5s ease-out;
}

.category-indicator i {
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}

/* Sección activa */
.products-section.active-section {
  animation: categorySelect 0.6s ease-out;
  position: relative;
}

.products-section.active-section::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-light);
  border-radius: calc(var(--radius) + 4px);
  pointer-events: none;
  animation: highlightPulse 1.5s ease-out;
}

.section-title-highlight {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title-highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  animation: highlightWidth 0.8s ease-out forwards;
  border-radius: 2px;
}

/* ============================================
    SUB-CATEGORÍAS
    ============================================ */
.subcategory-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.subcategory-btn {
  padding: 12px 24px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.subcategory-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.subcategory-btn.active {
  background-color: #2c3e50;
  border-color: #2c3e50;
  color: white;
}

/* ============================================
    PRODUCTOS - Diseño limpio con toques especiales
    ============================================ */
.catalog-layout {
  padding: 2rem 0;
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

.products-section {
  margin-bottom: 4rem;
  padding: 3rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.products-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.products-section .container {
  display: flex;
  justify-content: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2.5rem;
}

.products-grid > * {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-color), transparent)
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image-container {
  height: 160px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.product-image {
  width: auto;
  height: auto;
  max-width: 120%;
  max-height: 120%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-actions {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: 0.5s;
}

.btn-details:hover::before {
  left: 100%;
}

.btn-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-details i {
  font-size: 0.85rem;
  transition: transform 0.3s;
}

.btn-details:hover i {
  transform: translateX(4px);
}

/* ============================================
    MODAL - NUEVA DISPOSICIÓN: Imagen arriba, detalles abajo
    ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.modal-close:hover {
  background: #dc2626;
  transform: rotate(90deg);
}

/* NUEVO DISEÑO DEL MODAL: Columna única */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Sección de imagen - Ahora arriba */
.modal-carousel {
  padding: 3rem 2.5rem 2.5rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.main-image-container {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.main-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-bottom: 1rem;
}

.carousel-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  background: var(--gray-color);
  cursor: not-allowed;
  opacity: 0.5;
}

.carousel-counter {
  font-size: 1rem;
  color: var(--gray-color);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

.thumbnail-gallery {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  background: white;
  padding: 2px;
}

.thumbnail:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Sección de información - Ahora abajo */
.modal-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-category {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  line-height: 1.3;
}

.modal-description {
  color: var(--gray-color);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--border-color);
}

.modal-specs-section {
  margin-top: 1.5rem;
}

.modal-specs-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-specs-title i {
  color: var(--primary-color);
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.modal-spec-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.modal-spec-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.modal-spec-label {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-spec-value {
  color: var(--dark-color);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ============================================
    BOTÓN DESCARGAR CATÁLOGO
    ============================================ */
#btnDescargarCatalogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 15px;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  min-width: 280px;
}

#btnDescargarCatalogo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: 0.6s;
}

#btnDescargarCatalogo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

#btnDescargarCatalogo:hover::before {
  left: 100%;
}

#btnDescargarCatalogo:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

#btnDescargarCatalogo i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

#btnDescargarCatalogo:hover i {
  animation: bounce 0.8s infinite alternate;
}

/* Contenedor especial para el botón */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  margin-top: 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
    BOTÓN WHATSAPP FLOTANTE
    ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* ============================================
    FOOTER - Moderno y completo
    ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #111827 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer-column h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.footer-column p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-radius: 4px;
}

.footer-column ul li a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 10px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.95rem;
}

/* ============================================
    RESPONSIVE DESIGN - MODIFICADO PARA 2 PRODUCTOS POR FILA EN MÓVIL
    ============================================ */

/* Tablet grande */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .hero-overlay h1 {
    font-size: 2.5rem;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  nav ul {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid var(--border-color);
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PRODUCTOS - 2 por fila en tablet */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  /* Modal responsive para tablet */
  .modal-carousel {
    padding: 2.5rem 2rem 2rem;
  }

  .main-image-container {
    height: 280px;
  }

  .modal-info {
    padding: 2rem;
  }

  .modal-title {
    font-size: 2rem;
  }

  .category-indicator {
    top: 80px;
    padding: 0.8rem 1.8rem;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: start;
    gap: 3rem;
  }

  .footer-column {
    text-align: left;
    align-items: flex-start;
  }

  .footer-column:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .btn-container {
    margin-top: 2.5rem;
    padding: 2rem;
    max-width: 400px;
  }

  #btnDescargarCatalogo {
    margin: 0;
    width: 100%;
  }

  .footer-column + .footer-column {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* Tablet pequeña */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
    min-height: 350px;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .category-card {
    height: 190px;
    padding: 1.5rem;
  }

  .category-icon img {
    width: 80px;
    height: 80px;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .category-count {
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
  }

  /* PRODUCTOS - 2 por fila en tablet pequeña */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .product-image-container {
    height: 140px;
  }

  .product-content {
    padding: 1.2rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  /* Modal responsive para tablet pequeña */
  .modal-carousel {
    padding: 2rem 1.5rem 1.5rem;
  }

  .main-image-container {
    height: 250px;
  }

  .modal-info {
    padding: 1.8rem;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .products-section {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .category-indicator {
    top: 75px;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }

  .subcategory-buttons {
    gap: 10px;
  }

  .subcategory-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 15px;
    right: 15px;
  }
}

/* En pantallas muy grandes */
@media (min-width: 1024px) {
  #btnDescargarCatalogo {
    padding: 1.3rem 3.5rem;
    font-size: 1.2rem;
    min-width: 280px;
  }

  .btn-container {
    margin-top: 1rem;
    padding: 1rem;
  }
}

/* MÓVIL - MODIFICADO PARA 2 PRODUCTOS POR FILA */
@media (max-width: 576px) {
  .hero {
    height: 45vh;
    min-height: 300px;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .hero .btn-scroll {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* CATEGORÍAS - 2 por fila en móvil */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    height: 180px;
    padding: 1.2rem;
  }

  .category-icon img {
    width: 70px;
    height: 70px;
  }

  .category-title {
    font-size: 1.1rem;
  }

  .category-count {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
  }

  .categories-section {
    margin-bottom: 3rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .category-card {
    min-height: 160px;
  }

  .category-link {
    height: 100%;
  }

  /* PRODUCTOS - CAMBIO PRINCIPAL: 2 productos por fila en móvil */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
  }

  .product-card {
    max-width: 100%;
  }

  .product-image-container {
    height: 130px;
    padding: 1rem;
  }

  .product-content {
    padding: 1rem;
  }

  .product-name {
    font-size: 0.85rem;
    height: 2.5em;
  }

  .product-price {
    font-size: 1rem;
  }

  .btn-details {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .modal-carousel {
    padding: 1.8rem 1.2rem 1.5rem;
  }

  .main-image-container {
    height: 220px;
    margin-bottom: 1.2rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .modal-info {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .modal-description {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .modal-specs-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-spec-item {
    padding: 1rem;
  }

  .modal-spec-label {
    font-size: 0.85rem;
  }

  .modal-spec-value {
    font-size: 1rem;
  }

  .products-section {
    padding: 1.5rem;
  }

  .category-indicator {
    top: 70px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  #btnDescargarCatalogo {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }

  .btn-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
  }

  .subcategory-buttons {
    flex-direction: column;
    align-items: center;
  }

  .subcategory-btn {
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .category-card {
    height: 170px;
    padding: 1rem;
  }

  .category-icon img {
    width: 60px;
    height: 60px;
  }

  .category-title {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-card {
    max-width: 100%;
  }

  .product-image-container {
    height: 120px;
    padding: 0.8rem;
  }

  .product-content {
    padding: 0.8rem;
  }

  .product-name {
    font-size: 0.8rem;
    height: 2.3em;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .btn-details {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 0 20px;
  }

  .main-image-container {
    height: 180px;
  }

  .thumbnail {
    width: 45px;
    height: 45px;
  }

  #btnDescargarCatalogo {
    padding: 1rem 1.8rem;
    font-size: 1rem;
  }

  #btnDescargarCatalogo i {
    font-size: 1.1rem;
  }

  .btn-container {
    padding: 1.2rem;
    margin-top: 1.8rem;
  }
}

@media (max-width: 380px) {
  .categories-grid {
    gap: 0.7rem;
  }

  .category-card {
    height: 165px;
    padding: 0.9rem;
  }

  .category-icon img {
    width: 55px;
    height: 55px;
  }

  .category-title {
    font-size: 0.95rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .product-image-container {
    height: 110px;
    padding: 0.7rem;
  }

  .main-image-container {
    height: 180px;
  }

  .thumbnail {
    width: 45px;
    height: 45px;
  }

  #btnDescargarCatalogo {
    padding: 1rem 1.8rem;
    font-size: 1rem;
  }

  #btnDescargarCatalogo i {
    font-size: 1.1rem;
  }

  .btn-container {
    padding: 1.2rem;
    margin-top: 1.8rem;
  }
}
/* ===============================
   CARRITO FIJO EN HEADER - MÓVIL
================================ */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ===============================
   HAMBURGUESA
================================ */
.menu-toggle {
  font-size: 22px;
  cursor: pointer;
  z-index: 1200;
}

/* ===============================
   CARRITO
================================ */
.nav-cart {
  position: absolute;
  right: 90px; 
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
}

.nav-cart a {
  position: relative;
  font-size: 22px;
  color: #333;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ==========================================
   FIX DEFINITIVO HEADER (MÓVIL + DESKTOP)
========================================== */
@media (max-width: 991px) {
  .nav-cart {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
  }
}

@media (min-width: 992px) {
  header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  header .logo {
    display: flex;
    align-items: center;
  }

  header nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  header nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  header .nav-cart {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: 25px;
    display: flex;
    align-items: center;
  }

  header .nav-cart a {
    font-size: 20px;
  }

  header .menu-toggle {
    display: none !important;
  }
}

/* ===============================
   MENÚ MÓVIL
================================ */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
}

/* ===========================
   MODAL DE COTIZACIÓN (PRO)
=========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  width: 92%;
  max-width: 720px;
  max-height: 85vh;
  border-radius: 18px;

  padding: 26px 26px 26px;

  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.35s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.modal h2 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #ff5252, #e53935);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.5);
}

#quotationList {
  flex: 1;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 6px;
}

#quotationList::-webkit-scrollbar {
  width: 6px;
}

#quotationList::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.quotation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fafafa, #f0f0f0);
  border: 1px solid #e5e5e5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quotation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.quotation-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.quotation-info {
  flex: 1;
}

.quotation-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.quotation-info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #777;
}

.remove-btn {
  background: linear-gradient(135deg, #ff6b6b, #e53935);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.remove-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.5);
}

.modal .btn-primary {
  margin-top: 18px;
  width: 100%;
  font-size: 17px;
  font-weight: 600;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* ===============================
   BOTÓN FLOTANTE AGREGAR COTIZACIÓN
=============================== */
.quote-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;

  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: white;
  border: none;

  padding: 14px 22px;
  border-radius: 30px;

  cursor: pointer;
  font-weight: 600;
  font-size: 15px;

  display: flex;
  align-items: center;
  gap: 8px;

  z-index: 50;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* ===============================
   TOAST MODAL - COTIZACIÓN
=============================== */
.toast-modal {
  position: fixed;
  top: 90px;
  right: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast-modal.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-content i {
  color: #28a745;
  font-size: 22px;
}

.toast-content span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .modal {
    width: 95%;
    max-height: 90vh;
    padding: 22px 18px 90px;
    border-radius: 16px;
  }

  .modal h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 100%;
    height: 100vh;
    max-height: 97vh;
    border-radius: 1;
    padding: 20px 14px 70px;
  }

  /* ===============================
   BOTÓN FLOTANTE STICKY - COTIZAR
=============================== */
.quote-btn {
  position: sticky;
  bottom: 20px;

  margin-left: auto; 
  margin-top: 20px;

  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: white;
  border: none;

  padding: 14px 22px;
  border-radius: 30px;

  cursor: pointer;
  font-weight: 600;
  font-size: 15px;

  display: flex;
  align-items: center;
  gap: 8px;

  z-index: 30;

  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

}

@media (min-width: 1200px) {
  .modal {
    max-width: 760px;
  }
}
.modal-content {
  overflow-y: auto;
  max-height: calc(85vh - 40px);
}
@media (max-width: 480px) {
  .quote-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;

    width: auto;
    justify-content: center;

    border-radius: 14px;
    font-size: 16px;
    padding: 15px;

    z-index: 10000;
  }
}