/**
 * =============================================================================
 * RIVEROS & Co. — COMPONENTES DE INTERFAZ & BRAND UI
 * Kit de componentes HTML/CSS listos para usar en la página web oficial.
 * =============================================================================
 */

@import url('./brand-tokens.css');

/* ==========================================================================
 * 1. PÍLDORAS Y LOGOTIPOS (BRAND PILLS & LOGOS)
 * ========================================================================== */

.brand-pill-logo {
  background: var(--plum-subtle);
  border: 1.5px solid rgba(0, 208, 156, 0.45);
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all 0.25s ease;
  user-select: none;
}

.brand-pill-logo:hover {
  border-color: var(--mint-vibrant);
  box-shadow: var(--shadow-glow-mint);
  transform: translateY(-1px);
}

.brand-pill-logo svg {
  flex-shrink: 0;
}

.brand-pill-logo .brand-name-main {
  color: var(--color-white);
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-extrabold);
  font-size: 11pt;
  letter-spacing: 0.8px;
}

.brand-pill-logo .brand-name-accent {
  color: var(--mint-vibrant);
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-extrabold);
  font-size: 11pt;
  letter-spacing: 0.8px;
}

/* Píldora de Institución / Cliente (Ej. Av construcciones) */
.client-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  color: var(--color-white);
  font-weight: var(--font-weight-extrabold);
  font-size: 10.5pt;
  letter-spacing: 0.5px;
}

/* ==========================================================================
 * 2. BADGES Y CINTAS DE CERTIFICACIÓN (RIBBON BADGES)
 * ========================================================================== */

.badge-ribbon {
  background: linear-gradient(90deg, rgba(0, 208, 156, 0.2) 0%, rgba(230, 0, 122, 0.2) 100%);
  border: 1px solid var(--mint-vibrant);
  color: var(--mint-vibrant);
  font-size: 7.5pt;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3.5px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.badge-department {
  font-size: 6.8pt;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.badge-department.mint { color: var(--mint-vibrant); border: 1px solid rgba(0, 208, 156, 0.4); }
.badge-department.blue { color: var(--blue-accent); border: 1px solid rgba(0, 180, 216, 0.4); }
.badge-department.magenta { color: var(--magenta-vibrant); border: 1px solid rgba(230, 0, 122, 0.4); }
.badge-department.gold { color: var(--gold-accent); border: 1px solid rgba(229, 169, 60, 0.4); }
.badge-department.purple { color: var(--purple-accent); border: 1px solid rgba(157, 78, 221, 0.4); }

/* ==========================================================================
 * 3. BOTONES DE ACCIÓN (INTERACTIVE BUTTONS)
 * ========================================================================== */

.btn-brand-primary {
  background: linear-gradient(135deg, var(--mint-vibrant) 0%, var(--mint-dark) 100%);
  color: var(--plum-dark);
  font-family: var(--font-family-sans);
  font-size: 9.5pt;
  font-weight: var(--font-weight-extrabold);
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 208, 156, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 156, 0.5);
}

.btn-brand-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--color-white);
  font-family: var(--font-family-sans);
  font-size: 9.5pt;
  font-weight: var(--font-weight-bold);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-brand-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--mint-vibrant);
  color: var(--mint-vibrant);
}

/* ==========================================================================
 * 4. TARJETAS CON BORDE ACENTUADO (ACCENTED CARDS)
 * ========================================================================== */

.card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.card-luxury:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 208, 156, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Variantes con borde izquierdo de acento (módulos técnicos) */
.card-accent-left {
  border-left: 4px solid var(--mint-vibrant);
}
.card-accent-left.blue { border-left-color: var(--blue-accent); }
.card-accent-left.magenta { border-left-color: var(--magenta-vibrant); }
.card-accent-left.gold { border-left-color: var(--gold-accent); }
.card-accent-left.purple { border-left-color: var(--purple-accent); }
.card-accent-left.teal { border-left-color: var(--teal-accent); }

/* ==========================================================================
 * 5. REJILLA DE ESPECIFICACIONES / MÉTRICAS (SPECS GRID)
 * ========================================================================== */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}

.spec-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
}

.spec-label {
  font-size: 6.8pt;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.spec-value {
  font-size: 11pt;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
}

/* ==========================================================================
 * 6. COMPONENTE DE FIRMA OFICIAL (OFFICIAL SIGNATURE COMPONENT)
 * ========================================================================== */

.signature-block {
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.signature-img-dark {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
  filter: var(--filter-signature-dark);
  mix-blend-mode: var(--blend-signature-dark);
  pointer-events: none;
}

.signature-line {
  width: 75%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 4px 0;
}

.signature-author {
  font-size: 8pt;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 1.2;
}

.signature-title {
  font-size: 6.8pt;
  color: var(--gray-300);
  line-height: 1.2;
}

.signature-org {
  font-size: 6.5pt;
  font-weight: var(--font-weight-bold);
  color: var(--mint-vibrant);
}

/* ==========================================================================
 * 7. FONDO DE ONDAS TECNOLÓGICAS (HERO WAVES BACKGROUND)
 * ========================================================================== */

.hero-waves-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}
