/* Portal internet.com.uy — sin Drupal — Oct 2026 */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #5b8db8;
    color: #222;
}

/* ── Cabecera ── */
#cabecera {
    background: #fff;
    border-bottom: 2px solid #1a4f7a;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#logo img { height: 50px; }
#sesion { text-align: right; font-size: 12px; color: #333; }
#sesion a { color: #1a4f7a; text-decoration: none; font-weight: bold; }
#sesion a:hover { text-decoration: underline; }

/* ── Layout principal ── */
#contenedor {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* ── Menú lateral ── */
#menu {
    width: 190px;
    min-width: 190px;
    background: #fff;
    border-right: 1px solid #ccc;
    padding: 10px 0;
}
.menu-portal {
    list-style: none;
}
.menu-portal li a {
    display: block;
    padding: 7px 14px;
    color: #1a4f7a;
    text-decoration: none;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12px;
}
.menu-portal li a:hover,
.menu-portal li.activo a {
    background: #1a4f7a;
    color: #fff;
}

/* ── Contenido principal ── */
#principal {
    flex: 1;
    background: #fff;
    padding: 16px 20px;
}
.titulo-seccion {
    background: #1a4f7a;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Íconos del escritorio ── */
.iconos-escritorio { padding: 10px 0; }
.fila-iconos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px;
    background: #f5f8fb;
    border: 1px solid #dde8f0;
    border-radius: 4px;
}
.fila-iconos a {
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    width: 90px;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.fila-iconos a:hover { background: #ddeeff; }
img.icodesk {
    display: inline-block;
    vertical-align: top;
    margin: 6px 4px;
    border: 0;
}
#principal ul { list-style: none; margin: 0; padding: 0 0 0 12px; }

/* ── Pie ── */
#pie {
    background: #1a4f7a;
    color: #cde;
    text-align: center;
    padding: 8px;
    font-size: 11px;
}

/* ── Formularios del panel ── */
form input[type=text],
form input[type=password],
form input[type=email],
form select,
form textarea {
    border: 1px solid #aacfe4;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 12px;
    width: 100%;
    max-width: 320px;
}
form input:focus, form select:focus {
    border-color: #1a4f7a;
    outline: none;
}
form input[type=submit],
form button[type=submit] {
    background: #1a4f7a;
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
}
form input[type=submit]:hover,
form button[type=submit]:hover {
    background: #133d60;
}
.msje  { color: #1a4f7a; font-weight: bold; margin: 6px 0; }
.error { color: red; font-weight: bold; margin: 6px 0; }

/* ── Tablas ── */
table.portal-tabla {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}
table.portal-tabla th {
    background: #1a4f7a;
    color: #fff;
    padding: 5px 8px;
    text-align: left;
}
table.portal-tabla td {
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}
table.portal-tabla tr:hover td { background: #f0f6ff; }

/* ── Login ── */
body.body-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #5b8db8;
}
#login-box {
    background: #fff;
    padding: 32px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 340px;
}
#login-logo { text-align: center; margin-bottom: 16px; }
#login-logo img { max-width: 220px; }
#login-box h2 {
    text-align: center;
    color: #1a4f7a;
    font-size: 15px;
    margin-bottom: 18px;
}
#login-box label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
    margin-top: 10px;
}
#login-box input[type=text],
#login-box input[type=password] {
    width: 100%;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #aacfe4;
    border-radius: 3px;
    font-size: 13px;
}
#login-box button[type=submit] {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 9px;
    background: #1a4f7a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}
#login-box button:hover { background: #133d60; }
.login-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 8px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}
.login-links {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
}
.login-links a { color: #1a4f7a; }

/* ── Autocomplete (heredado del original) ── */
.autocomplete-w1 {
    background: url(/portal/static/img/shadow.png) no-repeat bottom right;
    position: absolute; top: 0; left: 0;
    margin: 8px 0 0 6px;
}
.autocomplete {
    border: 1px solid #999;
    background: #fff;
    cursor: default;
    text-align: left;
    max-height: 350px;
    overflow: auto;
    margin: -6px 6px 6px -6px;
}
.autocomplete .selected { background: #F0F0F0; }
.autocomplete div { padding: 2px 5px; white-space: nowrap; }
.autocomplete strong { font-weight: normal; color: #3399FF; }
