.hb-desktop {
  display: none;
}
@media (min-width: 768px) {
  .hb-desktop {
    display: block;
  }
}

/* Permitir columnas personalizadas en header builder: define --hb-cols con minmax/1fr, etc. */
@media (min-width: 768px) {
  .hb-md-cols {
    display: grid;
    grid-template-columns: var(--hb-cols, repeat(3, minmax(0, 1fr)));
  }
}

/* Dropdown para menú desktop (hover con retardo mínimo y soporte de subniveles) */
@media (min-width: 768px) {
  .menu-group {
    position: relative;
  }
  .menu-group > .menu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
    padding: 0.25rem 0;
    background: #fff;
  }
  .menu-group:hover > .menu-dropdown,
  .menu-group .menu-dropdown:hover {
    display: block;
  }
  .menu-dropdown .menu-group {
    position: relative;
  }
  .menu-dropdown .menu-group > .menu-dropdown {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
  }
  .menu-link.has-children .caret {
    font-size: 0.8em;
  }
}

/* Dropdown para menú desktop (hover) */
@media (min-width: 768px) {
  .menu-group {
    position: relative;
  }
  .menu-group > .menu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
  }
  .menu-group:hover > .menu-dropdown {
    display: block;
  }
}

/* Mobile: details cerrado por defecto */
#mobile-menu details {
  margin: 0;
}
#mobile-menu details > summary {
  list-style: none;
}
/* ========================================
   ESTILOS PARA MÓDULOS DEL SISTEMA
   ======================================== */

/* ========================================
   MÓDULO HERO
   ======================================== */
.hero-full-width {
  position: relative;
  /* margin-left: -2rem;
  margin-right: -2rem;
  width: calc(100% + 4rem); */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ========================================
     MÓDULO SLIDER
     ======================================== */
.slider-module {
  position: relative;
  margin-left: -2rem;
  margin-right: -2rem;
  width: calc(100% + 4rem);
}

/* Prevenir scroll horizontal en móvil */
@media (max-width: 768px) {
  .slider-module {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 1.5rem);
  }
}

@media (max-width: 480px) {
  .slider-module {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-slide {
  flex: 0 0 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  height: 400px; /* Default height, will be overridden by JS */
  object-fit: cover;
}

.slider-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 1rem;
}

.slider-nav.next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #3b82f6;
  transition: width 0.1s linear;
  z-index: 10;
}

/* ========================================
     MÓDULO BRANDS (SLIDER INFINITO)
     ======================================== */
.brands-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brands-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: calc(200px * 20); /* Ajustar según cantidad de logos */
}

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

.brand-logo {
  flex: 0 0 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.brand-logo:hover img {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 10)); /* Mitad del ancho total */
  }
}

/* ========================================
     MÓDULO GALLERY
     ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* ========================================
     MÓDULO CTA (CALL TO ACTION)
     ======================================== */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  margin: 2rem 0;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #667eea;
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
     MÓDULO CONTACT FORM
     ======================================== */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Estilos para inputs de color */
.form-input[type='color'] {
  padding: 0.25rem;
  height: 3rem;
  cursor: pointer;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input[type='color']:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input[type='color']:hover {
  border-color: #9ca3af;
}

.form-button {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background: #2563eb;
}

/* ========================================
     MÓDULO RICHTEXT
     ======================================== */
.richtext-content {
  line-height: 1.7;
  color: #374151;
}

.richtext-content h1,
.richtext-content h2,
.richtext-content h3,
.richtext-content h4,
.richtext-content h5,
.richtext-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.richtext-content p {
  margin-bottom: 1.5rem;
}

.richtext-content ul,
.richtext-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.richtext-content li {
  margin-bottom: 0.5rem;
}

.richtext-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

.richtext-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* ========================================
     EDITOR INLINE (ADMIN)
     ======================================== */
.module-editor {
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 50;
}

.edit-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #3b82f6;
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.edit-button:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.editor-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.editor-actions {
  display: flex;
  gap: 0.5rem;
}

.editor-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editor-button.primary {
  background: #3b82f6;
  color: white;
}

.editor-button.primary:hover {
  background: #2563eb;
}

.editor-button.secondary {
  background: #6b7280;
  color: white;
}

.editor-button.secondary:hover {
  background: #4b5563;
}

/* ========================================
     RESPONSIVE DESIGN
     ======================================== */
@media (max-width: 768px) {
  /* .hero-full-width,
  .slider-module {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  } */

  .slider-nav {
    width: 35px;
    height: 35px;
  }

  .slider-nav.prev {
    left: 0.5rem;
  }

  .slider-nav.next {
    right: 0.5rem;
  }

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

  .brand-logo {
    flex: 0 0 150px;
    height: 80px;
  }

  .cta-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-full-width,
  .slider-module {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .slider-slide-content {
    padding: 1rem;
  }

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

  .brand-logo {
    flex: 0 0 120px;
    height: 60px;
  }
}

/* ========================================
     UTILIDADES
     ======================================== */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gradient-overlay {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* ========================================
     ANIMACIONES
     ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ========================================
     MÓDULO HTML
     ======================================== */
.html-content {
  line-height: 1.6;
  color: #374151;
}

.html-content pre {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.html-content code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.html-editor-container {
  height: 400px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #1e1e1e;
}

/* Estilos para el editor Monaco */
.monaco-editor {
  border-radius: 0.5rem;
}

.monaco-editor .overflow-guard {
  border-radius: 0.5rem;
}

/* Personalización del tema oscuro */
.monaco-editor.vs-dark {
  background-color: #1e1e1e !important;
}

.monaco-editor.vs-dark .monaco-editor-background {
  background-color: #1e1e1e !important;
}

.monaco-editor.vs-dark .monaco-editor .margin {
  background-color: #1e1e1e !important;
}

/* Estilos para el contenido HTML renderizado */
.html-content h1,
.html-content h2,
.html-content h3,
.html-content h4,
.html-content h5,
.html-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #111827;
  font-weight: 600;
}

.html-content h1 {
  font-size: 2rem;
}
.html-content h2 {
  font-size: 1.75rem;
}
.html-content h3 {
  font-size: 1.5rem;
}
.html-content h4 {
  font-size: 1.25rem;
}
.html-content h5 {
  font-size: 1.125rem;
}
.html-content h6 {
  font-size: 1rem;
}

.html-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.html-content ul,
.html-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.html-content li {
  margin-bottom: 0.5rem;
}

.html-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
}

.html-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.html-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.html-content th,
.html-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.html-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.html-content tr:hover {
  background-color: #f9fafb;
}

.html-content a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.html-content a:hover {
  border-bottom-color: #3b82f6;
}

.html-content strong {
  font-weight: 600;
  color: #111827;
}

.html-content em {
  font-style: italic;
  color: #6b7280;
}

/* Estilos para código inline y bloques */
.html-content code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: #dc2626;
}

.html-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Estilos para listas */
.html-content ul {
  list-style-type: disc;
}

.html-content ol {
  list-style-type: decimal;
}

.html-content li ul,
.html-content li ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Estilos para formularios dentro del HTML */
.html-content form {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.html-content input,
.html-content textarea,
.html-content select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.html-content input:focus,
.html-content textarea:focus,
.html-content select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.html-content button {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.html-content button:hover {
  background: #2563eb;
}

/* Estilos para alertas y mensajes */
.html-content .alert,
.html-content .message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  border-left: 4px solid;
}

.html-content .alert-success,
.html-content .message-success {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.html-content .alert-error,
.html-content .message-error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.html-content .alert-warning,
.html-content .message-warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.html-content .alert-info,
.html-content .message-info {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

/* Responsive para el editor */
@media (max-width: 768px) {
  .html-editor-container {
    height: 300px;
  }

  .html-content {
    font-size: 0.875rem;
  }

  .html-content h1 {
    font-size: 1.75rem;
  }
  .html-content h2 {
    font-size: 1.5rem;
  }
  .html-content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .html-editor-container {
    height: 250px;
  }

  .html-content {
    font-size: 0.8rem;
  }

  .html-content h1 {
    font-size: 1.5rem;
  }
  .html-content h2 {
    font-size: 1.25rem;
  }
  .html-content h3 {
    font-size: 1.125rem;
  }
}

/* ========================================
     MÓDULO DE CARDS
     ======================================== */
.cards-grid {
  display: grid;
  width: 100%;
}

.card-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-2px);
}

/* Estilos de cards según el tipo */
.card-item.elevated {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-item.elevated:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-item.outlined {
  border: 2px solid #e5e7eb;
}

.card-item.outlined:hover {
  border-color: #d1d5db;
}

.card-item.flat {
  background: #f9fafb;
}

.card-item.flat:hover {
  background: #f3f4f6;
}

.card-item.gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.card-item.gradient:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Imagen de la card */
.card-image {
  margin-bottom: 1rem;
}

.card-img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.card-item:hover .card-img {
  transform: scale(1.02);
}

/* Título de la card */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Descripción de la card */
.card-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Botón de la card */
.card-button {
  margin-top: auto;
}

.card-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.card-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.card-btn:active {
  transform: translateY(0);
}

/* Responsive para el grid de cards */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
  }

  .card-item {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.125rem;
  }

  .card-description {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .card-item {
    padding: 0.75rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-description {
    font-size: 0.8rem;
  }

  .card-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Estilos para el editor de cards */
.card-editor {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.card-editor h5 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-editor .form-input,
.card-editor .form-textarea {
  margin-bottom: 0.5rem;
}

.card-editor .form-input[type='color'] {
  height: 2.5rem;
  padding: 0.25rem;
}

/* Animaciones para las cards */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-item {
  animation: cardFadeIn 0.6s ease-out;
}

.card-item:nth-child(1) {
  animation-delay: 0.1s;
}
.card-item:nth-child(2) {
  animation-delay: 0.2s;
}
.card-item:nth-child(3) {
  animation-delay: 0.3s;
}
.card-item:nth-child(4) {
  animation-delay: 0.4s;
}
.card-item:nth-child(5) {
  animation-delay: 0.5s;
}
.card-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hover effects mejorados */
.card-item {
  position: relative;
  overflow: hidden;
}

.card-item::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: left 0.5s ease;
}

.card-item:hover::before {
  left: 100%;
}

/* Estados de carga para imágenes */
.card-img {
  position: relative;
}

.card-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.card-img[src]::before {
  display: none;
}

/* Estilos para cards vacías */
.card-item:empty::before {
  content: 'Card vacía';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #9ca3af;
  font-style: italic;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
}

/* Estilos para botones de acción en cards */
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.card-action-btn.primary {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.card-action-btn.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* Estilos para badges o etiquetas en cards */
.card-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-badge.primary {
  background: #dbeafe;
  color: #1e40af;
}

.card-badge.success {
  background: #d1fae5;
  color: #065f46;
}

.card-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.card-badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

/* ========================================
     MÓDULO DE PREGUNTAS FRECUENTES (FAQ)
     ======================================== */
.faq-container {
  max-width: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Layout de 2 columnas */
.faq-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Breakpoint intermedio para tablets */
@media (max-width: 1024px) {
  .faq-grid-2 {
    gap: 1.5rem;
  }
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background: #f8fafc;
  border: none;
  border-radius: 0.75rem 0.75rem 0 0;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-question:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.faq-question-text {
  color: #111827;
  line-height: 1.4;
  flex: 1;
  margin-right: 1rem;
}

.faq-icon {
  color: #6b7280;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-icon i {
  font-size: 0.875rem;
}

.faq-answer {
  padding: 1.25rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  animation: slideDown 0.3s ease-out;
}

.faq-answer.hidden {
  display: none;
}

.faq-answer-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 0;
}

.faq-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.faq-link-btn {
  display: inline-flex;
  align-items: center;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: rgba(59, 130, 246, 0.1);
}

.faq-link-btn:hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.faq-link-btn i {
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

/* Animaciones */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para el editor de FAQs */
.faq-editor {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-editor h5 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.faq-editor .form-input,
.faq-editor .form-textarea {
  margin-bottom: 0.75rem;
}

.faq-editor .form-input[type='color'] {
  height: 2.5rem;
  padding: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-container {
    max-width: 100%;
    margin: 0;
    padding: 0 0.5rem;
  }

  .faq-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 1rem;
  }

  .faq-answer-text {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 0 0.25rem;
  }

  .faq-grid-2 {
    gap: 1rem;
  }

  .faq-question {
    padding: 0.875rem;
    font-size: 0.875rem;
  }

  .faq-answer {
    padding: 0.875rem;
  }

  .faq-link-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Prevenir overflow en móvil */
.hero-full-width {
  overflow-x: hidden;
  width: 100%;
}

.hero-content {
  overflow-x: hidden;
  width: 100%;
}

/* Asegurar que el grid no cause overflow */
@media (max-width: 767px) {
  .hero-content .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero-content .flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }

  .hero-content .flex.gap-3 a {
    text-align: center;
    width: 100%;
  }
}

.desktop-menu {
  display: flex;
}

.mobile-toggle {
  display: none;
}

/* En pantallas pequeñas (móviles) */
@media (max-width: 767px) {
  .desktop-menu {
    display: none !important;
  }

  .mobile-toggle {
    display: block !important;
  }
}

/* En pantallas medianas y grandes (tablets y desktop) */
@media (min-width: 768px) {
  .desktop-menu {
    display: flex !important;
  }

  .mobile-toggle {
    display: none !important;
  }
}

/* Desktop dropdown robusto con subniveles */
@media (min-width: 768px) {
  .menu-group {
    position: relative;
  }
  .menu-group > .menu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 60;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    min-width: 12rem;
  }
  .menu-group:hover > .menu-dropdown,
  .menu-group:focus-within > .menu-dropdown,
  .menu-group > .menu-dropdown:hover {
    display: block;
  }
  .menu-dropdown .menu-group {
    position: relative;
  }
  .menu-dropdown .menu-group > .menu-dropdown {
    top: 0;
    left: 100%;
    margin-left: 0; /* evita huecos que hacen perder el hover */
  }
  .menu-link.has-children .caret {
    font-size: 0.8em;
  }
  .menu-item {
    white-space: nowrap;
  }
}

.hidden {
  display: none !important;
}

/* Prevenir focus automático en inputs del editor */
.module-editor input:focus,
.module-editor textarea:focus,
.module-editor select:focus {
  outline: none !important;
}

/* Asegurar que el primer input no reciba focus automático */
.module-editor input:first-of-type:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Estilos específicos para cards tipo steps */
/* Estilos para los elementos details/summary */
.faq-item details {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item details:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background-color: #f3f4f6;
}

.faq-item details[open] summary .faq-icon i {
  transform: rotate(180deg);
}

.faq-item .faq-icon i {
  transition: transform 0.2s ease;
}

/* Grid para 2 columnas */
.faq-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  align-items: start; /* Evita que se estiren para igualar altura */
}

/* Asegura que cada FAQ mantenga su altura natural */
.faq-grid-2 .faq-item {
  height: fit-content;
  align-self: start;
}

/* Evita que el contenido se estire */
.faq-grid-2 .faq-item details {
  height: auto;
  min-height: 0;
}

.faq-grid-2 .faq-item summary {
  height: auto;
}

.faq-grid-2 .faq-item .faq-answer {
  height: auto;
}

@media (max-width: 768px) {
  .faq-grid-2 {
    grid-template-columns: 1fr;
  }
}

article img {
  height: 200px;
}

/* ========================================
     MÓDULO DE VIDEOS DE YOUTUBE
     ======================================== */
.yt-container {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

/* Layout Grid */
.yt-container.yt-grid {
  grid-template-columns: repeat(var(--yt-cols, 2), minmax(0, 1fr));
}

/* Layout Lista */
.yt-container.yt-list {
  grid-template-columns: 1fr;
}

.yt-container.yt-list .yt-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.yt-container.yt-list .yt-embed {
  flex: 0 0 300px;
  max-width: 300px;
}

.yt-item {
  width: 100%;
}

.yt-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-embed:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.yt-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .yt-container.yt-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .yt-container.yt-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .yt-container.yt-list .yt-item {
    flex-direction: column;
  }

  .yt-container.yt-list .yt-embed {
    flex: none;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .yt-container {
    gap: 0.75rem;
  }

  .yt-embed {
    border-radius: 0.375rem;
  }

  .yt-embed iframe {
    border-radius: 0.375rem;
  }
}

/* ========================================
     MÓDULO DE TÍTULO
     ======================================== */
.title-container {
  width: 100%;
  margin-bottom: 1rem;
}

.title-text {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
}

/* Tamaños personalizados */
.title-text.title-xs {
  font-size: 0.75rem;
}

.title-text.title-sm {
  font-size: 0.875rem;
}

.title-text.title-lg {
  font-size: 1.5rem;
}

.title-text.title-xl {
  font-size: 1.875rem;
}

.title-text.title-2xl {
  font-size: 2.25rem;
}

.title-text.title-3xl {
  font-size: 3rem;
}

/* Responsive para títulos grandes */
@media (max-width: 768px) {
  .title-text.title-3xl {
    font-size: 2.25rem;
  }

  .title-text.title-2xl {
    font-size: 1.875rem;
  }

  .title-text.title-xl {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .title-text.title-3xl {
    font-size: 1.875rem;
  }

  .title-text.title-2xl {
    font-size: 1.5rem;
  }

  .title-text.title-xl {
    font-size: 1.25rem;
  }
}

/* ========================================
     MÓDULO WYSIWYG
     ======================================== */
.wysiwyg-container {
  width: 100%;
}

/* Anchos máximos */
.wysiwyg-container.wysiwyg-full {
  max-width: 100%;
}

.wysiwyg-container.wysiwyg-prose {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.wysiwyg-container.wysiwyg-narrow {
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

.wysiwyg-container.wysiwyg-wide {
  max-width: 85ch;
  margin-left: auto;
  margin-right: auto;
}

/* Espaciado */
.wysiwyg-container.wysiwyg-padding-none {
  padding: 0;
}

.wysiwyg-container.wysiwyg-padding-small {
  padding: 0.5rem 0;
}

.wysiwyg-container.wysiwyg-padding-default {
  padding: 1rem 0;
}

.wysiwyg-container.wysiwyg-padding-large {
  padding: 2rem 0;
}

/* Contenido del editor */
.wysiwyg-content {
  line-height: 1.7;
  color: #374151;
}

.wysiwyg-content h1,
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #111827;
  font-weight: 600;
  line-height: 1.2;
}

.wysiwyg-content h1 {
  font-size: 2rem;
}

.wysiwyg-content h2 {
  font-size: 1.75rem;
}

.wysiwyg-content h3 {
  font-size: 1.5rem;
}

.wysiwyg-content h4 {
  font-size: 1.25rem;
}

.wysiwyg-content h5 {
  font-size: 1.125rem;
}

.wysiwyg-content h6 {
  font-size: 1rem;
}

.wysiwyg-content p {
  margin-bottom: 1rem;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.wysiwyg-content li {
  margin-bottom: 0.5rem;
}

.wysiwyg-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
}

.wysiwyg-content a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.wysiwyg-content a:hover {
  border-bottom-color: #3b82f6;
}

.wysiwyg-content strong {
  font-weight: 600;
  color: #111827;
}

.wysiwyg-content em {
  font-style: italic;
  color: #6b7280;
}

/* Editor WYSIWYG */
.wysiwyg-editor {
  min-height: 200px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wysiwyg-editor:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wysiwyg-editor.empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  font-style: italic;
  pointer-events: none;
}

/* Barra de herramientas del editor */
.wysiwyg-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  flex-wrap: wrap;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.toolbar-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.toolbar-btn:active,
.toolbar-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: #d1d5db;
  margin: 0 0.25rem;
}

.toolbar-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.toolbar-select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Vista previa del editor */
.wysiwyg-preview {
  min-height: 100px;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  background: white;
}

/* Responsive para el editor */
@media (max-width: 768px) {
  .wysiwyg-toolbar {
    gap: 0.125rem;
    padding: 0.25rem;
  }

  .toolbar-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .toolbar-select {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
  }

  .wysiwyg-editor {
    min-height: 150px;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .wysiwyg-container.wysiwyg-prose,
  .wysiwyg-container.wysiwyg-narrow,
  .wysiwyg-container.wysiwyg-wide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .wysiwyg-content h1 {
    font-size: 1.75rem;
  }

  .wysiwyg-content h2 {
    font-size: 1.5rem;
  }

  .wysiwyg-content h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
     MÓDULO DE CARRUSEL DE PRODUCTOS
     ======================================== */
.product-carousel-container {
  position: relative;
  width: 100%;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  padding: 0 12px;
}

.product-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.2);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px 12px 0 0;
}

.product-image-container img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.product-brand {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  color: #000000 !important;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: #059669;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card a {
  margin-top: auto;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
}

.product-card a::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: left 0.5s;
}

.product-card a:hover::before {
  left: 100%;
}

.product-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Controles del carrusel */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  color: #3b82f6;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 20px -5px rgba(59, 130, 246, 0.3);
  border-color: transparent;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #f9fafb;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.carousel-prev:active,
.carousel-next:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev i,
.carousel-next i {
  font-size: 18px;
  font-weight: bold;
}

/* Indicadores del carrusel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 0;
}

.carousel-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-indicator:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: scale(1.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.carousel-indicator.bg-blue-600 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  transform: scale(1.2);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.carousel-indicator.bg-gray-300 {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Efectos adicionales para el carrusel */
.product-carousel-container {
  position: relative;
  overflow: hidden;
}

.product-carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.02) 0%,
    rgba(16, 185, 129, 0.02) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.carousel-wrapper {
  position: relative;
  z-index: 1;
}

/* Grid de productos */
.product-grid {
  display: grid;
  gap: 24px;
}

.product-grid .product-card {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-slide {
    padding: 0 8px;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .product-content {
    padding: 12px;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .carousel-prev,
  .carousel-next {
    display: none;
  }

  .carousel-indicators {
    margin-top: 16px;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Animaciones adicionales */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-slide {
  animation: slideIn 0.3s ease-out;
}

/* Estados de carga */
.product-carousel-container.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-carousel-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Mejoras de accesibilidad */
.carousel-prev:focus,
.carousel-next:focus,
.carousel-indicator:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.product-card:focus-within {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
  .product-card {
    background: #1f2937;
    color: #f9fafb;
  }

  .product-title {
    color: #f9fafb;
  }

  .product-description {
    color: #d1d5db;
  }

  .product-brand {
    color: #9ca3af;
  }

  .carousel-prev,
  .carousel-next {
    background: white;
    color: #f9fafb;
  }

  .carousel-prev:hover,
  .carousel-next:hover {
    background: #4b5563;
  }
}
