@font-face {
    font-family: "jefferson";
    src: url("./fonts/Jefferson.ttf");
}

/* configuración general */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F3EDE1;
    font-family: "Courier New", Courier, monospace;
    color: #555;

}


/* contenedor principal */

.site {
    width: 600px;
    max-width: 100%;
    background: white;
    border: 1px solid #999;
    padding: 6px;
    box-shadow: 0 0 0 4px #fff;
}


/* HEADER */

.header-info {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.header {
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #aaa;

    padding: 18px;

    flex-wrap: nowrap;
}

.mood {
    text-align: center;
    font-size: 10px;
    color: #666;
    transform: translateX(10px);
}

.mood span {
    display: block;
    margin-bottom: 0px;
}

.mood img {
    height: auto;
}

.navigation {
    display: flex;
    gap: 8px;
}

.navigation a {
    color: #666;
    text-decoration: none;
    font-size: 10px;
}

#inicio,
#contacto {
    font-size: 12px;
}

/* BANNER */

.banner {
    height: 105px;

    margin-top: 5px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("img/banner.jpg");
    background-size: cover;
    background-position: center bottom;

    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner span {
    position: relative;
    z-index: 1;

    font-family: "jefferson";
    font-size: 80px;
    color: #F3EDE1;
    text-align: center;
    transform: translateY(10px);
}

/* barra de navegación */

.main-nav {
    width: 100%;
    margin: 5px auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 5px;
    border: 1px solid #ddd;
}

.main-nav a {
    color: #6B86A8;
    text-decoration: none;
    font-size: 12px;
}

.main-nav a:hover {
    color: #999;
}

/* símbolos entre los enlaces */

.main-nav a:not(:last-child)::after {
    content: "∣";
    color: #999;
    margin-left: 15px;
}



/* las tres columnas */

.layout {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    min-height: 255px;
    margin-top: 5px;
}


/* SIDEBAR */

.sidebar {
    padding: 5px;
    border-right: 1px solid #ddd;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.actualizaciones {
    width: 130px;
    height: 220px; /* antes era 100px */
    margin-bottom: 10px; /* espacio entre la lista y el iframe */
    padding: 5px;
    border: 1px solid #ddd;
    overflow-y: auto;
}

.actualizaciones h2 {
    margin: 0;
}

.actualizaciones h6 {
    margin: 2px /*espacio arriba y abajo*/ 0 /*espacio a los lados*/;
}

.actualizaciones ul {
    margin-top: 10px;
    padding-left: 15px;
    font-size: 12px;
}

.iframe-box {
    width: 135px;
    height: 125px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.iframe-box iframe {
    width: 90%;
    height: 125px;
    border: none;
}

/* contenido central */

.content {
    padding: 10px 15px;
    border-right: 1px solid #ddd;
    text-align: center;
}

.decoration img {
    width: 100px;
    transform: translateY(-15px);
}

.content h1 {
    margin: 5px 0 10px;

    font-size: 18px;
    font-weight: normal;

    color: #405875;

    transform: translateY(-30px);
}

.terminado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(-35px);
    flex-direction: row-reverse;
}

.terminado img {
    width: 20px;
}

.terminado p {
    margin: 0;
    transform: none;
}

.content p {
    line-height: 1.8;
    margin: 8px 0;
    font-size: 12px;
}

#descripcion,
#mensaje {
    transform: translateY(-35px);
}


/* NEWS proximamente pensamientos */

.news {
    padding: 10px;
}

.news h2 {
    margin: 0 0 8px;
    color: #aaa;
    font-size: 13px;
}

.news ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

.news li {
    margin-bottom: 9px;

    line-height: 1.4;
}

.news li::before {
    content: "*";

    margin-right: 5px;

    color: #888;
}


/* FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    color: #999;
    border-top: 1px solid #ddd;
    font-size: 12px;
}

/* fecha y hora */

#datetime {
    text-align: right;
    font-size: 12px;
    color: #999;
}
