@font-face {
    font-family: "Avenir Light";
    src: url("../fonts/Avenir-Light.woff2") format("woff2"),
        url("../fonts/Avenir-Light.woff") format("woff"),
        url("../fonts/Avenir-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Avenir Light";
    src: url("../fonts/avenir-next-bold.woff2") format("woff2"),
        url("../fonts/avenir-next-bold.woff") format("woff"),
        url("../fonts/avenir-next-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

html,
body {
    height: 100%;
    margin: 0;
    background-color: #fff;
    font-family: "Avenir Light", sans-serif;
}

/* Centrar todo en la pantalla */
.full-height {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.logo-text {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.logo-img {
    max-height: 160px;
    height: 160px;
    width: 160px;
    display: block;
    margin: 0 auto;
}

.line-section-one {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    margin-top: 7%;
    background-color: #009ba5;
    margin-right: 35%;
}

.img-title {
    position: absolute;
    width: 120px;
    height: 120px;
    right: 25%;
    top: 9.5%;

}

.title-residence {
    position: absolute;
    left: 20%;
    margin: 0px;
    font-size: 3em;
    font-weight: 700;
    color: #fff;
}

.card {
    border: 1px solid #ccc;
    padding: 50px;
    margin: 10px 0;
    border-radius: 20px;
    background: #009ba5;
    line-height: 1.6;
    white-space: pre-line;
}

.card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-align: justify;
}

.card p {
    font-size: 20px;
    color: #fff;
    text-align: justify;
}

.card img {
    max-width: 100%;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin: 20px;
}

/* Nueva Sección */
.renewable-energy-section {
    background-color: #ffffff;
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    color: #009ba5;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    padding: 20px 0;
}

/* Card Verde */
.card-green {
    background-color: #009ba5;
    color: #fff;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    font-weight: 700;
    /* para posicionar el botón */
}

.card-green h3 {
    font-weight: 700;
}

.card-green:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Card Blanco con borde verde */
.card-outline {
    background-color: #fff;
    border: 2px solid #009ba5;
    color: #009ba5;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: card;
    margin: 0 auto;
    position: relative;
}

.card-outline h3 {
    font-weight: 700;
}

.card-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Imágenes centradas */
.card img {
    max-width: 100%;
    /* height: 100%; */
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Botón Leer Más */
.btn-read-more {
    background-color: #009ba5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-read-more:hover {
    background-color: #18a1a1;
    transform: translateY(-3px);
}

@media (max-width: 992px) {

    .logo-text {
        max-width: 350px;
    }

    .logo-img {
        width: 140px;
        height: 140px;
        max-height: 140px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        width: 120px;
        height: 120px;
        max-height: 120px;
    }

    .logo-text {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        width: 80px;
        height: 80px;
        max-height: 80px;
    }

    .logo-text {
        max-width: 180px;
    }

    .img-title {
        width: 55px;
        height: 55px;
        right: 10%;
        top: 7%;

    }

    .title-residence {
        font-size: 1.5rem !important;
        margin-top: 18px;
    }

    .card h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        text-align: justify;
    }
}