/* Variables de Diseño Global UCSC */
:root {
    --brand-red: #D12421;     /* PANTONE 1795C */
    --brand-gray: #646567;    /* 75% Negro */
    --text-dark: #2d2d2d;
    --bg-light: #f5f4f0;
    --card-bg: #ffffff;
    --border-subtle: rgba(209, 36, 33, 0.08);
    --shadow-smooth: rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Ubuntu', 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding: 2rem;
}

/* Línea superior perimetral */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--brand-red);
    z-index: 10;
}

/* Contenedor unificado */
.container {
    max-width: 800px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3.5rem 3rem 2.5rem;
    box-shadow: 0 20px 40px var(--shadow-smooth), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

/* ===== MARCA INSTITUCIONAL ===== */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
}

.logo-img {
    height: 55px;          /* Altura fija ideal para que se alinee horizontalmente con el texto */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.university-name {
    text-align: left;
    max-width: 500px;      /* Evita que el texto largo se estire indefinidamente */
    width: 100%;
}

.university-name .sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;       
    font-size: 1.25rem;     /* Tamaño de letra corporativo mediano y legible */
    line-height: 1.2;
    color: var(--brand-gray);
    letter-spacing: -0.2px;
}

/* Rediseño de la Insignia de la Facultad */
.faculty-badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--brand-red);
    padding: 0.45rem 1.8rem;
    border-radius: 30px;
    margin-top: 0.2rem;
    box-shadow: 0 4px 12px rgba(209, 36, 33, 0.18);
    display: inline-block;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--brand-red);
    margin: 1.8rem auto;
    border-radius: 2px;
    opacity: 0.3;
}

/* ===== CONTENIDO CENTRAL ===== */
.server-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
    line-height: 1.1;
}

.server-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-gray);
    background: #fdfdfd;
    display: inline-block;
    padding: 0.4rem 1.8rem;
    border-radius: 40px;
    border: 1px solid #e8e5dd;
    margin-top: 0.6rem;
}

.tagline {
    margin-top: 1.5rem;
    display: inline-block;
    background: #fafaf9;
    padding: 0.5rem 1.6rem;
    border-radius: 6px;
    border-left: 3px solid var(--brand-red);
    font-style: italic;
    color: #444;
    font-size: 0.95rem;
}

/* ===== GRID DE ESTADO ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    margin: 2.5rem 0 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fafafa;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: left;
}

.info-item .icon {
    font-size: 1.3rem;
}

.info-meta {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.75rem;
    color: var(--brand-gray);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.text-success {
    color: #2b8c5e !important;
}

/* ===== BADGE OPERACIONAL ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #f0f7f4;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid #dbede5;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2b8c5e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(43, 140, 94, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.status-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #445;
}

/* ===== FOOTER ===== */
.footer-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0ede6;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #888;
}

.footer-note a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-note a:hover {
    color: var(--brand-red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 650px) {
    .container { padding: 2rem 1.5rem; }
    .server-title { font-size: 2.6rem; }
    .logo-wrapper { flex-direction: column; text-align: center; gap: 0.8rem; }
    .university-name { text-align: center; }
    .info-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .footer-note { flex-direction: column; gap: 0.5rem; align-items: center; }
}
