/* ==========================================================================
   Ofertas Públicas - Estilos Compartidos
   Variables, reset, tipografía, header, footer y componentes comunes
   ========================================================================== */

:root {
  --clr-bg: #f8fafc;
  --clr-primary: #1e3a8a;
  --clr-primary-soft: #e0e7ff;
  --clr-accent: #FBBF24;
  --clr-accent-dark: #f59e0b;
  --clr-card: #fff;
  --clr-text: #1f2937;
  --clr-border: #e5e7eb;
  --clr-muted: #6b7280;
  --clr-input-border: #ced4da;
  --clr-warning: #856404;
  --clr-warning-bg: #fff3cd;
  --clr-warning-border: #ffc107;
  --clr-link: #0066cc;
  --logo-valora: #22D3EE;
  --logo-talento: #FBBF24;
  --radius: 8px;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
}

/* Header */
.header {
  background: linear-gradient(120deg, #1e3a8a 0%, #0f2a64 100%);
  color: white;
  padding: 1.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.15), transparent 40%);
  pointer-events: none;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Footer */
.footer {
  background: var(--clr-primary);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer a {
  color: var(--logo-valora);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .footer-subtitle {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer .footer-subtitle a {
  color: white;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Meta items */
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item i {
  color: var(--clr-primary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Responsive base */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
}
