/**
 * Editorial Yisus - Componentes Reutilizables CSS
 * 
 * Archivo de componentes CSS modulares y reutilizables
 * para usar en cualquier página WordPress
 */

/* ============================================================
   ALERTAS Y NOTIFICACIONES
   ============================================================ */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border-color: #4CAF50;
}

.alert-error,
.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: #dc3545;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ff9800;
  border-color: #ff9800;
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  border-color: #2196F3;
}

/* ============================================================
   BADGES Y ETIQUETAS
   ============================================================ */
.badge,
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 107, 53, 0.2);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 5px;
}

.badge-primary {
  background: var(--color-primary);
  color: white;
}

.badge-success {
  background: #4CAF50;
  color: white;
}

.badge-danger {
  background: #dc3545;
  color: white;
}

/* ============================================================
   BOTONES DE VARIANTES
   ============================================================ */
.btn-filled {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  color: white;
}

.btn-filled:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--color-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* ============================================================
   TABLAS
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-dark-lighter);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.table th {
  background: rgba(255, 107, 53, 0.1);
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-primary);
}

.table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--color-border);
}

.table tbody tr:hover {
  background: rgba(255, 107, 53, 0.05);
}

/* ============================================================
   LISTAS
   ============================================================ */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-unstyled li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.list-unstyled li:last-child {
  border-bottom: none;
}

.list-inline {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* ============================================================
   TEXTOS
   ============================================================ */
.text-muted {
  color: var(--color-text-muted);
}

.text-primary {
  color: var(--color-primary);
}

.text-success {
  color: #4CAF50;
}

.text-danger {
  color: #dc3545;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.font-bold {
  font-weight: 700;
}

.font-italic {
  font-style: italic;
}

/* ============================================================
   ESPACIAMIENTO
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.my-1 { margin: 10px 0; }
.my-2 { margin: 20px 0; }
.my-3 { margin: 30px 0; }

.mx-1 { margin: 0 10px; }
.mx-2 { margin: 0 20px; }
.mx-3 { margin: 0 30px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }

.px-1 { padding: 0 10px; }
.px-2 { padding: 0 20px; }
.px-3 { padding: 0 30px; }

.py-1 { padding: 10px 0; }
.py-2 { padding: 20px 0; }
.py-3 { padding: 30px 0; }

/* ============================================================
   DISPLAY Y VISIBILIDAD
   ============================================================ */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   SOMBRAS
   ============================================================ */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shadow-xl {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   BORDES
   ============================================================ */
.border {
  border: 1px solid var(--color-border);
}

.border-top {
  border-top: 1px solid var(--color-border);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.rounded {
  border-radius: 4px;
}

.rounded-lg {
  border-radius: 8px;
}

/* ============================================================
   PARALLAX Y EFECTOS
   ============================================================ */
.parallax-image {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.transition-smooth {
  transition: var(--transition);
}

/* ============================================================
   RESPONSIVO UTILIDADES
   ============================================================ */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .flex-responsive {
    flex-direction: column;
  }

  .grid-responsive {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }

  .show-desktop {
    display: block !important;
  }
}
