* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    scroll-behavior: smooth;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo img {
    height: 100px;
}

nav {
    border: 1.5px solid #9be42e;
    border-radius: 10px;
    padding: 10px 30px;
    background-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.btn-servicio {
    background: #9be42e;
    padding: 12px 22px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* SECCION SERVICIO */
.servicio {
    display: flex;
    flex-wrap: wrap;
    margin-top: 120px; /* espacio por el header fijo */
}

/* --- Imagen con borde verde interno --- */
.servicio-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Marco verde dentro de la imagen */
.servicio-img::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 4px solid #9be42e;
    border-radius: 8px;
    pointer-events: none;
    box-sizing: border-box;
}

/* Título dentro del marco */
.servicio-img h2 {
    position: absolute;
    top: 40px;
    left: auto;
    right: 40px;
    transform: none;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: right;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Texto a la derecha */
.servicio-texto {
    flex: 1;
    background: #9be42e;
    color: #333;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.servicio-texto h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.servicio-texto ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.servicio-texto ul li {
    margin-bottom: 8px;
    list-style: disc;
}

.ideal {
    margin-top: 20px;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: url('imag/footer.png') center/cover no-repeat;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.footer-top {
    margin-bottom: 30px;
}

.footer-logo {
    height: 120px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-container img {
    width: 50px;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .servicio {
        flex-direction: column;
    }

    .servicio-img {
        height: 300px;
    }

    .servicio-img::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-width: 3px;
    }

    .servicio-img h2 {
        font-size: 2rem;
        top: 25px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    header nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
    }

    .servicio {
        margin-top: 150px;
    }

    .servicio-texto {
        padding: 30px 20px;
        text-align: justify;
    }

    .servicio-img h2 {
        font-size: 1.8rem;
        top: 20px;
    }
}
