/* ========================================
   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);
}

.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;
  }
}

.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;
  }
}
