/* General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #313131;
}


/* Cabecera */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: #053B47;
    color: white;
    z-index: 1000;
}

.header .logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.menu {
    position: sticky;
    top: 0;
    z-index: 1000; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #286E6E;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 45px;
}

.menu-links a {
    color:white;
    text-decoration: none;
}

.menu-links a:hover {
    color:#FFBD6E;
}

/* Contenedor del Blog */
.separador {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 280px;
}

.separador h1 {
    text-align: center;
    font-size: 20px;
    color: #053B47;
}

.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
}

/*Cuerpo del blog */
.blog-content {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0; 
    padding: 0; 
    width: 100%; 
}

/* Card para entradas */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 100%; 
    box-sizing: border-box; 
    cursor: pointer;
    margin-bottom: 30px;
}

.card:last-child {
    margin-bottom: 0;
}

.card:hover {
    transform: scale(1.05);
}

.img-card {
    display: flex;
    justify-content: center;
    margin-bottom: 15px; 
}

.card img {
    max-width: 100%;
    height: auto;
}

.card h2 {
    margin: 10px 0;
    text-align: center;
    font-size: 20px; 
    color: #053B47;
}

.card p {
    margin: 10px;
}


/* Barra Lateral */
.sidebar {
    grid-column: span 4;
    width: 100%;
    position: sticky;
    top: 100px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar img {
    width: 100%;
    margin-bottom: 15px;
}
.sidebar h2 {
    margin-top: 30px;
    margin-bottom: 30px;
    color: #053B47;
    font-size: 20px;
    text-align: center;
}

.sidebar p {
    text-align: justify;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
}

.sidebar a {
    color: #333;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}


/* Footer */
.footer {
    background-color: #053B47; 
    color: #fff;
    font-size: 12px;
    padding: 20px 0;
    margin-top: 100px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    position: relative;
}

.column ul {
    list-style: none;
    padding: 0;
}

.column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.column ul li a:hover {
    color:#FFBD6E;
}

.column img {
    float: right;
    width: 80px;
}

.column p {
    clear: both;
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

/* Formulario de Suscripción */
.formulario {
    background-color: #053B47; 
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.formulario input {
    width: 100%;
    padding: 10px;
    border: none;;
    border-radius: 4px;
}

.formulario button {
    width: 100%;
    padding: 10px;
    background-color: #FFBD6E;
    border: none;
    border-radius: 4px;
    color: #053B47;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.formulario button:hover {
    transform: scale(1.05);
}

/*Menú lateral float*/
#open-menu-btn {
    display: none;
    width: 100%;
    font-size: 18px;
    cursor: pointer;
    border: none;
    color: white;
    border-radius: 5px;
    text-align: right;
    margin-right: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
    z-index: 1001; 
}

body.menu-open .overlay {
    opacity: 1;
    visibility: visible;
}

/* Menú lateral */
.menu-lateral {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #053B47;
    color: white;
    overflow-x: hidden;
    transition: width 0.5s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    z-index: 1002; 
}

.menu-lateral h2 {
    padding-left: 20px;
    margin-top: 0;
    color: white;
}

.menu-lateral a {
    padding: 15px 20px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.menu-lateral a:hover {
    background-color: #FFBD6E;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    text-decoration: none;
}


/* Pop-up */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.popup-content {
    width: 60%;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.popup-content img {
    width: 100%;
}

.popup-content h2 {
    margin-bottom: 1em;
}

.popup-content input {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
}

.popup-content button {
    padding: 0.5em 1em;
    background-color: #2a5d6b;
    color: white;
    border: none;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #474747;
    margin-bottom: 10px;
}

.container-from {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}



/* Formulario de Suscripción */
.formulario-popup {
    background-color: #053B47; 
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.formulario-popup form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.formulario-popup input {
    width: 100%;
    padding: 10px;
    border: none;;
    border-radius: 4px;
}

.formulario-popup button {
    width: 100%;
    padding: 10px;
    background-color: #FFBD6E;
    border: none;
    border-radius: 4px;
    color: #053B47;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.formulario-popup button:hover {
    transform: scale(1.05);
}

.col-formulario {
    display: flex;
    padding: 25px;
    align-items: center;
    justify-content: center;
}

.col-formulario h3 {
    color: #FFBD6E;
}

.col-formulario h3:last-child {
    margin-top: 20px;
}

.col-formulario .content-form {
    margin: 10px;
}


/* para mobile */
@media (max-width: 500px) {
    body {
        font-size: 12px;
    }
    
    .logo img {
        width: 20%;
    }

    .separador {
        height: 220px;
    }

    .container {
        display: grid;
        grid-template-columns: 12fr;
        padding: 30px;
    }

    .separador h1 {
        text-align: center;
        font-size: 15px;
        color: #053B47;
    }

    .card h2 {
        font-size: 15px; 
        word-wrap: break-word; 
    }

    .sidebar {
        grid-column: span 8;
        margin-bottom: 60px;
    }

    .sidebar h2 {
        font-size: 15px;
    }

    .footer {
        margin-top: 0;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .column img {
        float: none;
    }
    .footer-image {
        float: none;
        margin: 0 auto;
    }

    .logo-footer {
        text-align: center;
    }

    .menu-links {
        display: none;
    }

    #open-menu-btn {
        display: block;
    }

    #popup {
        display: none !important;
    }
}
