/*
Torre de Control — hoja de estilos

Índice:
1. Variables y tipografía
2. Layout base (header, sidebar)
3. Home (tarjetas)
4. Dashboard / reportes Power BI
5. Popups
6. Botones flotantes
7. Aliados
8. Responsive

Resolución de referencia del kiosco: 1600 x 870
*/

/* ===== 1. Variables y tipografía ===== */

:root {
    --Naranja-Oscuro: #C82E00;
    --Naranja-Primario: #FC4C02;
    --Naranja-Claro: #FF895C;
    --Indigo-Oscuro: #00765B;
    --Indigo-Primario: #00B398;
    --Indigo-Claro: #7ED4C3;
    --Gris-Oscuro: #14150B;
    --Gris-Primario: #51534A;
    --Gris-Claro: #E6E6E6;
    --Header: #E5E7E9;
    --Body: #f3f3f3;
    --Warn-Oscuro: #D00017;
    --Warn-Primario: #FC0234;
    --Warn-Claro: #F76A75;
    --Caution-Oscuro: #FF8D00;
    --Caution-Primario: #FCCA02;
    --Caution-Claro: #FDE07C;
    --Success-Oscuro: #007000;
    --Success-Primario: #1CC200;
    --Success-Claro: #A1E196;
    --Info-Oscuro: #007EC5;
    --Info-Primario: #02B1FC;
    --Info-Claro: #B4E8FE;
}

@font-face {
    font-family: 'Museo';
    src: url(../font/MuseoSans-300.otf);
}

@font-face {
    font-family: 'Museo-ligth';
    src: url(../font/MuseoSans-100.otf);
}

html {
    font-size: 62.5%;
    font-family: 'Museo', sans-serif;
    color: var(--Gris-Primario);
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #4a4a4c;
}

/* ===== 2. Layout base ===== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 10px;
}

.header__logos img {
    height: 50px;
}

.header__title {
    font-size: 3rem;
    font-weight: 900;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #333;
    color: #fff;
    position: fixed;
    transition: width 0.3s;
    z-index: 1;
}

.sidebar.collapsed {
    width: 60px;
}

.toggle-btn {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu a {
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-size: 1.5rem;
}

.menu-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.sidebar.collapsed .menu-item .text {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
}

/* ===== 3. Home (tarjetas) ===== */

.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 120px);
}

.card {
    height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    transition: transform 0.3s, box-shadow 0.3s;
    filter: brightness(0.7);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    filter: brightness(1);
}

.card__title {
    width: 100%;
    background-color: rgb(104 104 104 / 70%);
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 10px 0
}

/* ===== 4. Dashboard / reportes Power BI ===== */

.dashboard {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-top: 50px;
}

.dashboard iframe,
.report-container {
    width: calc(100% - 60px);
    height: calc(100vh - 200px);
    border: none;
}

.report-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.report-error {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 2rem;
}

.report-error .material-symbols-outlined {
    font-size: 5rem;
    color: var(--Caution-Primario);
}

.report-error__retry {
    font-family: 'Museo', sans-serif;
    font-size: 1.8rem;
    color: white;
    background-color: var(--Naranja-Primario);
    border: none;
    border-radius: 10px;
    padding: 10px 30px;
    cursor: pointer;
}

.report-error__retry:hover {
    background-color: var(--Naranja-Oscuro);
}

/* ===== 5. Popups ===== */

#openPopupBtn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #51534A;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

.infoContent .textInfo {
    color: white;
    font-size: 2.5rem;
}

/* ===== 6. Botones flotantes ===== */

.logybot {
    position: absolute;
    bottom: 11px;
    left: 0;
    z-index: 2;
}

.info {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.maro {
    position: absolute;
    bottom: 20px;
    right: 100px;
}

.audio {
    position: absolute;
    bottom: 20px;
    right: 100px;
}

.servipunto {
    position: absolute;
    bottom: 20px;
    right: 200px;
}

.logybot:hover,
.info:hover,
.maro:hover,
.audio:hover,
.servipunto:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.btnLogybot {
    background-color: #FC4C02;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    gap: 20px;
    align-items: center;
    border-radius: 0 50px 50px 0;
    text-decoration: none;
    cursor: pointer;
}

.btnLogybot .text {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.btnLogybot img {
    height: 80px;
}

/* Botón circular de ícono (info, audio, video) */
.floating-btn {
    color: #FC4C02;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    gap: 20px;
    align-items: center;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.floating-btn .material-symbols-outlined {
    font-size: 3rem;
}

.btnServipunto {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    align-items: center;
    border-radius: 50px;
    padding: 10px;
    cursor: pointer;
}

.btnServipunto img {
    height: 30px;
}

/* ===== 7. Aliados ===== */

.aliados {
    width: 100%;
    height: calc(100vh - 150px);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.aliado__card {
    width: 400px;
    height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    filter: brightness(0.7);
    cursor: pointer;
}

.aliado__card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    filter: brightness(1);
}

/* ===== 8. Responsive ===== */
/* En la resolución de referencia del kiosco (1600x870) nada de esto aplica: el desktop no cambia. */

@media (max-width: 1280px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }

    .card {
        height: 40vh;
    }

    .header__title {
        font-size: clamp(2rem, 2.5vw, 3rem);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard iframe,
    .report-container {
        height: calc(100vh - 260px);
    }

    .aliado__card {
        width: 80vw;
        height: 40vh;
    }

    .aliados {
        flex-direction: column;
        gap: 20px;
    }
}
