@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html{
    background-image: url("fondocorazon.gif");
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #faed42;
}

nav {
    height: 90px;
    width: 100%;
    background-color: #faed42;
}

.enlace {
    position: absolute;
    padding: 20px, 50px;
    background-color: #faed42;
}

.logo {
    height: 130px;
    margin-left: 20px;
    margin-top: -10px;
    background-color: #faed42;
}

nav ul {
    float: right;
    margin-right: 20px;
    font-weight: bold;
    background-color: #faed42;
}

nav ul li {
    display: inline-block;
    line-height: 130px;
    margin: 0 5px;
    background-color: #faed42;
}

nav ul li a {
    color: #fff;
    font-size: 18px;
    padding: 7px 13px;
    text-transform: uppercase;
    border-radius: 10px;
    background-color: #6ac051;
}

li a.active,
li a:hover {
    background: #fc6998;
    color: #faed42;
}

.checkmxl {
    font-size: 30px;
    background: #6ac051;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
    padding: 12px 15px;
    border-radius: 10px;
    transition: background 0.3s;
}

.checkmxl:hover {
    background: #fc6998;
}

.checkmxl i {
    color: #fff !important;
    font-size: 28px;
}

#check {
    display: none;
}

.celuhr {
    width: 100%;
    height: 6px;
    background-color: #6ac051;
    border: 0;
    border-radius: 0;
}


.bonvenon{
    border: none;
    height: 2px;
    background-color: #331840;
    margin-bottom: 2%;
}

.flankasekcio{
    border: none;
    height: 2px;
    background-color: #faed42;
    margin-bottom: 2%;
}
/*-------------------------*/


.album {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

.asidehur{
    width: 100%;
    height: 2px;
    background-color: #331840;
    border: 0;
    border-radius: 0;
}

.centrohur{
    width: 100%;
    height: 2px;
    background-color: #fc6998;
    border: 0;
    border-radius: 0;
}

.titulosaside{
    color: #331840;
    font-size: 120%;
}

.fechasaside{
    color: #331840;
}

/*-------------------------*/
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

.content {
    flex: 3;
    min-width: 300px;
}

.block {
    background-color: #ede7d3;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.block h2 {
    color: #fc6998;
    margin-bottom: 15px;
}

.block p {
    margin-bottom: 15px;
    line-height: 1.6;
}

aside {
    flex: 1;
    min-width: 250px;
    background-color: #e0b0ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
}

aside h3 {
    color: #faed42;
    margin-bottom: 15px;
}

aside ul {
    margin-top: 10px;
}

aside li {
    padding: 8px 0;
    border-bottom: 1px solid #fff;
}

aside li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    color: #31241E;
    width: 100%;
    background-color: #6ac051;
    padding: 20px 0;
    margin-top: auto;
}

.landivartbold {
    font-weight: bold;
}

.bolsas {
    width: 86%;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.mandayaboton {
    display: block;
    text-align: center;
    width: 36%;
    font-size: 30px;
    font-weight: 800;
    background-color: #fdcf07;
    color: #00244f;
    border-radius: 10px;
    padding: 5px;
    margin: 2% auto;
    text-decoration: none;
    box-shadow: 3px 6px 6px 1px #00244f;
}

.password-section {
    text-align: center;
    margin: 30px auto;
}

.password-btn {
    display: inline-block;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    background-color: #faed42;
    color: #e55a87;
    border-radius: 10px;
    padding: 12px 25px;
    margin: 2% auto;
    text-decoration: none;
    box-shadow: 3px 6px 6px 1px rgba(0, 36, 79, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.password-btn:hover {
    background-color: #e55a87;
    color: #faed42;
    transform: translateY(-2px);
    box-shadow: 4px 8px 8px 2px rgba(0, 36, 79, 0.4);
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #faed42;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.4s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    color: #6ac051;
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: #31241E;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.close {
    color: #fc6998;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #e55a87;
}

.password-input-container {
    position: relative;
    margin: 20px 0;
}

#passwordInput {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #6ac051;
    border-radius: 10px;
    font-size: 16px;
    background-color: white;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#passwordInput:focus {
    border-color: #fc6998;
    outline: none;
    box-shadow: 0 0 5px rgba(252, 105, 152, 0.5);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6ac051;
    font-size: 18px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #fc6998;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #6ac051;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #5bb042;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin: 10px 0;
    min-height: 20px;
    font-weight: bold;
}

@media (max-width: 992px) {
    .checkmxl {
        display: block !important;
        margin-top: 20px;
        background-color: #faed42;
        padding: 15px 18px;
        border-radius: 10px;
    }
    
    .checkmxl i {
        font-size: 35px !important;
        color: #fc6998 !important;
    }
    
    .checkmxl:hover {
        background: #faed42; 
    }
    
    nav ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #faed42;
        top: 130px;
        left: -100%;
        text-align: center;
        transition: all 0.5s;
        z-index: 1000;
    }
    
    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    
    nav ul li a {
        font-size: 20px;
        background: none;
    }
    
    #check:checked ~ ul {
        left: 0;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 100px;
    }
    
    nav {
        height: 100px;
    }
    
    .mandayaboton {
        width: 90%;
        margin-left: 5%;
        font-size: 24px;
        padding: 10px;
    }
    
    .checkmxl {
        padding: 14px 16px;
    }
    
    .checkmxl i {
        font-size: 32px !important;
    }
    
    .container {
        flex-direction: column;
    }
    
    .password-btn {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 80px;
        margin-top: 0;
    }
    
    nav {
        height: 80px;
    }
    
    nav ul {
        top: 80px;
    }
    
    .bolsas {
        width: 95%;
    }
    
    .checkmxl {
        padding: 12px 14px;
        margin-right: 20px;
    }
    
    .checkmxl i {
        font-size: 28px !important;
    }
    
    .password-btn {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
    }
}

@media (max-width: 400px) {
    .mandayaboton {
        font-size: 20px;
    }
    
    .checkmxl {
        padding: 10px 12px;
    }
    
    .checkmxl i {
        font-size: 24px !important;
    }
}