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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Tahoma, sans-serif;
    background-color: #0078D7;
}

header {
    width: 100%;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

footer {
    width: 100%;
    background-color: #003399;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    left: 0;
    bottom: 0;
}

.popup-header-alert {
    width: fit-content;
    animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s both;
    margin: auto;
    background-color: #ecf5ff;
    box-shadow: 4px 4px 4px #333;
    ;
}

.popup-header-alert-title {
    background: linear-gradient(to right, #e60000, #7a0000);
    color: white;
    font-family: Tahoma, sans-serif;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
}

.blink {
    animation: blinkTitle 1s infinite;
}

@keyframes blinkTitle {
    0% {
        background-color: #c00000;
        color: white;
    }

    50% {
        background-color: yellow;
        color: red;
    }

    100% {
        background-color: #c00000;
        color: white;
    }
}

.popup-header-alert-body {
    color: #000;
    font-size: 1rem;
    text-align: center;
    padding: 6px;
    padding: 1rem;
}

.popup-header-alert-button {
    text-align: center;
    padding: 6px;
}

.popup {
    width: 320px;
    height: 258px;
    border: 2px solid #000080;
    background-color: #c0dfff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 4px 4px 0px #333;
    z-index: 9999;
}

.popup-header-public {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000080;
    color: white;
    padding: 4px;
    font-weight: bold;
    font-size: 1rem;
}

.popup-header-public span {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.popup-body-public {
    color: #000;
    font-size: 1rem;
    text-align: center;
    display: flex;
}

.popup-body-public img {
    width: 100px;
    height: 100%;
    object-fit: cover;
}

.popup-text-public {
    flex: 1;
    margin-left: 10px;
    line-height: 1.4;
    padding: 16px;
}

.popup-button-piblic {
    text-align: center;
    margin-top: 20px;
}

button {
    margin-top: 6px;
    background: linear-gradient(to bottom, #ffffff, #d6d6d6);
    border: 2px outset #999;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: linear-gradient(to bottom, #eaeaea, #c2c2c2);
}

#localidad {
    font-weight: bold;
    color: #000080;
}

.popup-msn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 240px;
    height: 160px;
    background: linear-gradient(to bottom, #f2f8ff, #abcefe);
    border: 1px solid #000080;
    box-shadow: 2px 2px 5px #00000066;
    font-size: 16px;
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.popup-header {
    background: linear-gradient(to right, #ffffff, #c4dbfb);
    height: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    border-bottom: 1px solid #a0c0e0;
}

.popup-header img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.popup-header .title-msn {
    font-weight: bold;
    color: #003366;
    font-size: 12px;
}

.popup-header .close {
    color: red;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.popup-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 10px;
    margin: 1rem 0;
    cursor: pointer;
}

.popup-body img {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.popup-text {
    color: #000;
    font-size: 16px;
}

.popup-footer {
    position: absolute;
    bottom: 4px;
    right: 6px;
}

.popup-footer img {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.popup-options {
    font-size: 10px;
    color: #3366cc;
    position: absolute;
    top: 2px;
    right: 20px;
    cursor: pointer;
}


@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-msn {
    animation: slideIn 0.4s ease-out;
}

.fade-in {
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) 0.5s both;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flicker-in-1 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    10.1% {
        opacity: 1;
    }

    10.2% {
        opacity: 0;
    }

    20% {
        opacity: 0;
    }

    20.1% {
        opacity: 1;
    }

    20.6% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    30.1% {
        opacity: 1;
    }

    30.5% {
        opacity: 1;
    }

    30.6% {
        opacity: 0;
    }

    45% {
        opacity: 0;
    }

    45.1% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    55% {
        opacity: 1;
    }

    55.1% {
        opacity: 0;
    }

    57% {
        opacity: 0;
    }

    57.1% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    60.1% {
        opacity: 0;
    }

    65% {
        opacity: 0;
    }

    65.1% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    75.1% {
        opacity: 0;
    }

    77% {
        opacity: 0;
    }

    77.1% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    85.1% {
        opacity: 0;
    }

    86% {
        opacity: 0;
    }

    86.1% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-1000px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-footer-descarga {
    position: fixed;
    bottom: 0;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #d6eaff;
    border: 2px solid #003399;
    padding: 8px 12px;
    box-shadow: 2px 2px 0 #000;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    z-index: 999;
    animation: slideUp 1s ease-out;
    transition: opacity 1s ease, transform 1s ease;

}

.popup-footer-descarga.oculto {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}