/* ================================
   Variables globales
================================== */
:root {
  --color-primary: #1e90ff;
  --color-dark: #000;
  --color-title: #fff;
  --color-title-graylight: #cccccc;
  --color-bg-dark: #0c071a;
  --color-bg-light: #f9fafb;
  --color-bg-hover-btn: #0b1736;
  --color-bg-btn: rgba(0, 153, 255, 0.363);
  --color-text: #333;
  --color-text-footer: #b4b4b4;
  --color-text-btn: #103d8a;
  --color-text-muted: #d1d5db;
  --color-border: #ccc;
  --radius: 6px;
  --radius-md: 10px;
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
  --max-width: 1200px;
  --font-small: 0.85rem;
}

h1, h2, h3, h4, h5, h6, p, span {
  text-wrap: pretty;
}

/* =====================================
   Estilos globales de formularios y alertas
===================================== */

input.input-error {
  border: 1px solid #e74c3c !important;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
  background-color: #fff6f6;
}

/* Alertas de estado */
.ok,
.fail {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  text-wrap: pretty;
  letter-spacing: 0.5px;
  animation: fadeIn 0.3s ease forwards;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  line-height: 1.5;
}

.ok {
  background-color: #e7f9ee;
  border-left: 4px solid #34d399;
  color: #065f46;
}

.fail {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #7f1d1d;
}

.ok:hover {
  background-color: #d1fae5;
}

.fail:hover {
  background-color: #fecaca;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
