:root {
    --fie-blue: #00843d;
    --fie-green: #00843d;
    --fie-red: #d52b1e;
    --bg-gray: #f4f7f9;
    --white: #ffffff;
    --dark: #1a1a1a;
    --text-muted: #666;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background-color: var(--bg-gray); color: var(--dark); line-height: 1.6; }

/* Barra de Navegación */
.fie-header { background: var(--fie-blue); color: var(--white); border-bottom: 5px solid var(--fie-green); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-container { width: 90%; max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { color: var(--white); text-decoration: none; font-size: 24px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.logo span { color: var(--fie-red); }
nav { display: flex; gap: 10px; align-items: center; }
nav a { color: var(--white); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 12px; padding: 8px 12px; border-radius: 4px; transition: all 0.3s ease; }
nav a:hover, nav a.active { background: rgba(255,255,255,0.1); color: var(--fie-red); }
nav a.btn-login { background: var(--fie-green); padding: 8px 15px; border-radius: 4px; }
nav a.btn-login:hover { background: #006b31; color: var(--white); }

/* Estructura Base */
.container { width: 90%; max-width: 1200px; margin: 40px auto; min-height: 65vh; }
h1 { color: var(--fie-blue); text-transform: uppercase; border-left: 5px solid var(--fie-red); padding-left: 15px; margin-bottom: 30px; font-size: 28px; }
h2 { color: var(--fie-blue); text-transform: uppercase; margin-bottom: 20px; font-size: 22px; position: relative; padding-bottom: 5px; }
h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--fie-red); }

/* Hero Banner */
.hero { background: linear-gradient(135deg, var(--fie-blue) 0%, #00172d 100%); color: var(--white); padding: 50px 0; border-bottom: 5px solid var(--fie-red); text-align: center; margin-bottom: 20px; }
.hero h1 { border: none; padding: 0; color: var(--white); font-size: 38px; margin-bottom: 10px; }
.hero p { font-size: 18px; opacity: 0.9; font-weight: 300; }

/* Controles de Filtros */
.filter-bar { background: var(--white); padding: 20px; border-radius: 8px; display: flex; gap: 15px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex-wrap: wrap; align-items: center; }
.filter-bar select { padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; flex-grow: 1; min-width: 180px; font-family: inherit; }
.btn-search { background: var(--fie-blue); color: var(--white); border: none; padding: 12px 30px; cursor: pointer; font-weight: 700; border-radius: 4px; text-transform: uppercase; font-size: 13px; }
.btn-search:hover { background: #001b33; }
.btn-reset { background: var(--fie-red); color: var(--white); border: none; padding: 12px 30px; cursor: pointer; font-weight: 700; border-radius: 4px; text-transform: uppercase; font-size: 13px; }
.btn-reset:hover { background: #a82218; }

/* Cuadrículas de Contenido (Galerías) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--fie-blue); transition: transform 0.2s; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 220px; object-fit: cover; background: #e2e8f0; }
.card-body { padding: 20px; }
.card-title { font-size: 18px; color: var(--fie-blue); margin-bottom: 10px; font-weight: 700; }

/* Etiquetas Dinámicas */
.tag { display: inline-block; padding: 4px 8px; background: #eee; border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; color: #555; margin-right: 5px; }
.tag.arma { background: var(--fie-green); color: var(--white); }
.tag.status { background: #0284c7; color: var(--white); }

/* Listas de Metadatos */
.meta-list { list-style: none; margin-top: 15px; font-size: 13px; }
.meta-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; }
.meta-list li:last-child { border: none; }
.meta-list li span { color: var(--text-muted); }
.meta-list li strong { color: var(--dark); }

/* Botón Desplegable e Información Expandible */
.btn-toggle { background: none; border: 1px solid var(--fie-blue); color: var(--fie-blue); width: 100%; padding: 10px; cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 11px; margin-top: 10px; border-radius: 4px; }
.btn-toggle:hover { background: var(--fie-blue); color: white; }
.details-box { display: none; background: #fafafa; border-top: 1px solid #eee; padding: 15px; font-size: 13px; margin-top: 10px; border-radius: 4px; }

/* Tablas FIE */
.fie-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 20px; }
.fie-table th { background: var(--fie-blue); color: var(--white); padding: 14px 18px; text-align: left; font-size: 13px; text-transform: uppercase; font-weight: 700; }
.fie-table td { padding: 12px 18px; border-bottom: 1px solid #eee; font-size: 14px; }
.fie-table tr:hover { background-color: #f8fafc; }

/* Formulario de Login */
.login-container { max-width: 420px; margin: 60px auto; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 25px rgba(0,0,0,0.08); border-top: 4px solid var(--fie-blue); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--fie-blue); text-transform: uppercase; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; font-family: inherit; }

/* Footer */
footer { background: var(--dark); color: var(--white); padding: 35px 0; text-align: center; font-size: 13px; margin-top: 60px; border-top: 4px solid var(--fie-red); }
footer p { opacity: 0.7; }