/* Variables para que ajustes los colores de la marca en 5 segundos */
:root {
    --primary-color: #0b5d52; /* Verde/Teal institucional */
    --primary-hover: #084940;
    --bg-color: #f4f7f6;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --danger: #e74c3c;
    --border-radius: 12px;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ================= LOGIN ================= */
.login-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-color) 0%, #e0e8e6 100%);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.alert {
    background-color: #fee;
    color: var(--danger);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ================= DASHBOARD ================= */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 40px;
}

.btn-outline {
    text-decoration: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.dashboard-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Grid de Herramientas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.tool-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}