/* Portal MS365 - Universitat de Valencia */
/* Basado en el CSS oficial de ms365.uv.es con mejoras de maquetación */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* RESET */
html, body, div, span, h1, h2, h3, h4, p, a, img, ul, li, fieldset, form, label, legend, table {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 1em;
    line-height: 1.4;
    vertical-align: baseline;
}

body {
    font-family: 'Open Sans', 'Arial', Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f4f8;
}

a {
    color: #004464;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #002233;
}

img, fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

/* CABECERA */
#header {
    background-color: #1B3552;
    color: white;
    padding: 12px 8.3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#header a {
    color: white;
}

#header #logoli {
    display: flex;
    align-items: center;
    gap: 15px;
}

#header #logoli .logpart {
    display: flex;
    align-items: center;
}

#header #logoli .logpart.nombre {
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#header #logoli .logpart.separ {
    border-left: 1px solid rgba(255,255,255,0.4);
    height: 24px;
    margin: 0 5px;
}

#header #idiomas {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

#header #idiomas .idipart {
    display: inline-block;
}

#header #idiomas .idipart a {
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#header #idiomas .idipart a:hover,
#header #idiomas .idipart.active a {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

#header #idiomas .idipart.separ {
    color: rgba(255,255,255,0.5);
}

/* BRAND BANNER */
.brand-subhead {
    background: linear-gradient(135deg, #1B3552 0%, #2C4D75 100%);
    color: white;
    padding: 2.5em 8.3%;
    text-align: center;
}

.brand-subhead h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-subhead p {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* CUERPO */
#bodypanel {
    padding: 2em 8.3%;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#content {
    background-color: #ffffff;
    padding: 2.5em 3em;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* CONTENIDO Y TIPOGRAFÍA */
h2 {
    color: #013952;
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #E6E3D2;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2:first-of-type {
    margin-top: 0;
}

/* PANELES */
.panel {
    margin-bottom: 1.8em;
    border-radius: 6px;
    overflow: hidden;
}

.panel-default {
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.panel-body {
    padding: 16px 22px;
    background-color: #fff;
    border-bottom: 1px solid #edf0f2;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-body:last-child {
    border-bottom: none;
}

.panel-body:hover {
    background-color: #f0f7fa;
    padding-left: 26px;
}

.panel-body a {
    color: #2E5C70;
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.panel-body a .arrow {
    margin-left: auto;
    color: #0066cc;
    transition: transform 0.2s;
}

.panel-body:hover a .arrow {
    transform: translateX(4px);
}

/* NOVEDADES */
.news-title {
    margin-top: 2em;
}

.news-item {
    padding: 16px 20px;
}

.news-date {
    font-weight: 700;
    color: #1B3552;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.news-text {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
    text-align: justify;
}

.news-text a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 600;
}

.no-break {
    white-space: nowrap;
}

/* SECCIÓN DE SOPORTE DESTACADA (SOLICITUDES UV) */
.support-card {
    background: linear-gradient(135deg, #eef7ff 0%, #e0f0ff 100%);
    border: 1px solid #b8daff;
    border-left: 5px solid #0066cc;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 2.5em;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
}

.support-icon {
    font-size: 2em;
    line-height: 1;
    color: #0066cc;
}

.support-content p {
    margin: 0 0 8px 0;
    font-size: 1.05em;
    color: #1c3d5a;
    line-height: 1.5;
}

.support-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0066cc;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none !important;
    margin-top: 6px;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 102, 204, 0.3);
}

.support-link-btn:hover {
    background-color: #004999;
    transform: translateY(-1px);
}

/* PIE */
#footer {
    background-color: #1B3552;
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 8.3%;
    font-size: 0.9em;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#footer a {
    color: #ffffff;
    text-decoration: underline;
}

#footer a:hover {
    color: #b8daff;
}

/* RESPONSIVE */
@media only screen and (max-width: 768px) {
    #header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    #header #idiomas {
        align-self: flex-end;
    }

    #bodypanel {
        padding: 1em 4%;
    }

    #content {
        padding: 1.5em;
    }

    .support-card {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
