:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-primary: #6b9223;
    --color-bg-dark: rgb(25, 25, 25);
    --color-text-light: aliceblue;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
}

/* Fix for fixed header overlapping content */
[id] {
    scroll-margin-top: 100px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-bg-dark);
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-bg-dark);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 0 5vw;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    background-image: url("/src/img/logo1.png");
    width: 180px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.nav-elements a {
    text-decoration: none;
    color: aliceblue;
    margin: 10px;
}

.dash {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.dash::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.dash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: cambioFondo 15s infinite;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Move animation to the dash itself or a sub-element */
.dash {
    animation: cambioFondo 15s infinite;
}

.content {
    margin: 5vw;
}

.content p,
.content li,
.content a {
    color: #6b9223;

}

.servicios-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Align start/end */
    gap: 40px;
    /* Consistent gap */
    border: 2px solid rgb(17, 99, 6);
    border-radius: 33px;
    padding: 40px;
    max-width: 1000px;
    margin: 20px auto;
}




#servicios h2 {
    text-align: center;
}

.servicios-box div ul {
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.servicios-box div ul li {
    color: #333;
    margin-bottom: 5px;
}

.servicios-box>div:nth-child(2) {
    flex: 1;
}

.imagen-conserje,
.imagen-limpieza,
.imagen-mantenimiento,
.imagen-piscina,
.imagen-jardineria {
    width: 100%;
    max-width: 300px;
    height: 200px;
    /* Enforce fixed width in flex context */
    flex: 0 0 300px;
    background-size: cover;
    background-position: center;
    border-radius: 33px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.imagen-conserje:hover,
.imagen-limpieza:hover,
.imagen-mantenimiento:hover,
.imagen-piscina:hover,
.imagen-jardineria:hover {
    transform: translateY(-5px);
}

.imagen-conserje {
    background-image: url("/src/img/img5.webp");
}

.imagen-limpieza {
    background-image: url("/src/img/img6.webp");
}

.imagen-mantenimiento {
    background-image: url("/src/img/img8.webp");
}

.imagen-piscina {
    background-image: url("/src/img/img9.webp");
}

.imagen-jardineria {
    background-image: url("/src/img/img7.webp");
}


.imgs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.imgs * {
    width: 40vw;
    height: 30vh;

    max-width: 300px;
    margin: 30px;
}

footer {
    background-color: rgb(25, 25, 25);
    height: 100%;
    width: 100%;
    margin-right: 0;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

footer div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.fot-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.img-foot {
    background-image: url("/src/img/logo1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 250px;
    height: 60px;
    filter: brightness(1.2);
}

footer h2 {
    color: var(--color-text-light);
    margin: 0;
    font-size: 1.2rem;
}

.cr {
    color: aliceblue;
}

.as {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

footer div div a {
    margin: 10px;
    text-decoration: none;
    color: aliceblue;
}

.links {
    display: flex;
    flex-direction: column;
}

.legal {
    display: flex;
    flex-direction: column;
}

@keyframes cambioFondo {

    0% {
        background-image: url('/src/img/img1.webp');
    }

    33% {
        background-image: url('/src/img/img1.webp');
    }

    33.01% {
        background-image: url('/src/img/img2.webp');
    }

    66% {
        background-image: url('/src/img/img2.webp');
    }

    66.01% {
        background-image: url('/src/img/img3.webp');
    }

    100% {
        background-image: url('/src/img/img3.webp');
    }
}