body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden; 
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('estades-temporals-en-residència.jpg');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    filter: saturate(2);
    z-index: -1; 
}


header {
    background-color: #333;
    color: #fff;
    padding-block: 20px;
    display: flex;
    align-items: center;    
    justify-content: center;
    position: relative;
}
header h1 {
    margin: 0 auto;
    text-align: center;
    font-size: 30px;
    padding-right: 15%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
header .texto_pequeño {
    font-size: 20px;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
}
header img {
    width: 200px;
    height: auto;
    padding-left: 20px;
}
header h1 {
    margin: 0;
    text-align: center;
    flex-grow: 1;
    font-size: 30px;
}
header .texto_pequeño {
    font-size: 20px;
}


    
.dropdown {
    position: relative;
    display: inline-block;
    margin: 20px;
}
.dropdown button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.dropdown button:hover {
    background-color: #1D1D1D;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background-color: #f1f1f1;
}
.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



#section1 {
    display: flex;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow-y: auto;
}
#section1 h2{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-indent: 30px;
    text-align: left;
    margin: 20px;
}
#section2 {
    display: none;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow-y: auto;
}
#section2 h2{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;;
}
#section3 {
    display: none;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
}
#section3 h2{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;;
}
#section4 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
#section5 {
    display: none;
    margin-top: -100px;
    margin-bottom: 100px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow-y: auto;
}
#section5 h2{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-indent: 30px;
    text-align: left;
    margin: 20px;
}
#section5 h3{
    font-size: 15px;
    font-weight: normal;
}



#sangrado {
    text-align: left;
    text-indent: 30px;
    margin: 20px;
}
#sangrado ul {
    margin-left: 30px;
}
#sangrado p {
    margin-left: 25px;

}
br + span {
    text-indent: 30px;
    display: inline-block;
}
.contenedor-acordeon {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 60px;
}
.contenedor-acordeon h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.contenedor-acordeon ul {
    padding-left: 30px;
}
.acordeon {
    background: transparent;
}
.acordeon label {
    display: block;
    padding: 15px;
    font-size: 18px;
    background: #1c1c1c;
    color: #fff;
    cursor: pointer;
    margin-block: 3px;
    transition: all 300ms ease;
}
.acordeon label:hover {
    background: #2e2e2e;
}
.acordeon .contenido-acordeon {
    padding-inline: 15px;
    margin: 15px;
    margin-bottom: 15px;
    max-height: 0px;
    overflow-y: auto;
    transition: all 400ms ease;
    
}
.btn-acordeon:checked ~ .contenido-acordeon {
    max-height: 600px;
    padding: 15px 0px;
}
.btn-acordeon {
    display: none;
}



label[for="btn-acordeon1"] {
    font-family: "Roboto", sans-serif; 
    font-weight: 500; 
    font-style: italic;
    font-size: 20px;
}
label[for="btn-acordeon2"] {
    font-family: "Roboto", sans-serif; 
    font-weight: 500; 
    font-style: italic;
    font-size: 20px;
}
label[for="btn-acordeon3"] {
    font-family: "Roboto", sans-serif; 
    font-weight: 500; 
    font-style: italic;
    font-size: 20px;
}
label[for="btn-acordeon4"] {
    font-family: "Roboto", sans-serif; 
    font-weight: 500; 
    font-style: italic;
    font-size: 20px;
}
label[for="btn-acordeon7"] {
    font-family: "Roboto", sans-serif; 
    font-weight: 500; 
    font-style: italic;
    font-size: 20px;
}



.contenido-acordeon {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 17px;
}



ol[type="A"] {
    list-style-type: none;
    counter-reset: listCounter;
}
ol[type="A"] > li {
    counter-increment: listCounter;
}
ol[type="A"] > li::before {
    content: counter(listCounter, upper-alpha) ". ";
    font-weight: bold;
}
ol[type="A"] li ul {
    list-style-type: disc;
}
.lista-guiones {
    list-style-type: none;
    
  }
  
  .lista-guiones li {
    position: relative; 
    padding-left: 10px; 
  }
  
  .lista-guiones li:before {
    content: "-"; 
    position: absolute;
    left: 0; 
  }
  .ul{
    list-style-type: none; 
    

  }


.contact-form {
    margin-top: -300px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}
.contact-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}
.contact-form label {
    display: flex;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.contact-form button {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}
.contact-form button:hover {
    background: #555;
}



.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 50px;
    flex-wrap: wrap;
}
.footer-logo{
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding-top: 20px;
}
.footer-contact{
    flex: 1;
    min-width: 250px;
    text-align: justify;
}
.footer-logo img {
    max-width: 150px;
}
.social-icons {
    margin-top: 10px;
}
.social-icons img {
    width: 30px;
    margin: 0 10px;
}
.contact-info p {
    margin: 5px 0;
}
.contact-info a {
    color: white;
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding: 10px 50px;
}
.footer-bottom a {
    color: white;
    margin: 0 5px;
    text-decoration: none;
}
img[alt="contact-img"] {
    width: 20px;
    filter: invert(1);
}



@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    header img {
        margin: 0 auto 10px auto;
    }

    header h1 {
        font-size: 20px;
        padding-left: 15%;
    }

    .dropdown button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .acordeon label {
        font-size: 14px;
        padding: 8px;
    }

    .acordeon .contenido-acordeon {
        padding: 8px;
    }

    .politicas-privacidad {
        font-size: 14px;
        padding: 8px 16px;
        margin-inline: 8px;      
    }

    .contenido-acordeon {
            flex-direction: column;
            margin-inline: 20px;
        }

    .contenido-acordeon img {
            width: 100%;
            height: auto;
            margin-right: 0;
            margin-bottom: 20px;
            margin-top: 0px;
        }

     .contenido-acordeon p {
            font-size: 16px;
        }
}