* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}


.banner {
    background-image: linear-gradient(rgba(13, 56, 51, 0.72), rgba(13, 56, 51, 0.72)), url(../../img/photos/head-servicios.webp);
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 360px;
    height: 50vh;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.banner h1 {
    font-family: 'Arial', sans-serif;
    color: white;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: 20px;
}

.banner p {
    font-family: 'Arial', sans-serif;
    color: rgb(198, 198, 198);
    font-size: 1.25rem;
}


.servicios {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Arial', sans-serif;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.servicios h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

.subtitulo {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}


.tarjeta-servicio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    align-items: stretch;
    margin-bottom: 4rem;
}

.tarjeta {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tarjeta:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.img-servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.contenido-servicio {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contenido-servicio h3 {
    font-size: 1.25rem;
    color: #111111;
    margin-bottom: 12px;
}

.servicio-detalle {
    position: relative;
    padding-left: 18px;         
    border-left: 1.5px solid #d1d5db;
    margin-top: 8px;
}

.servicio-detalle::before {
    content: "";
    position: absolute;
    top: 0px;
    left: -6.5px;
    width: 14px;
    height: 14px;
    background-color: #897da9;   
    border-radius: 50%;            
}

.service-mini-titulo {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.4;
}

.service-puntos {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.45;
}

.service-puntos li {
    margin-bottom: 6px;
}

.servicio-detalle details {
    margin-top: 10px;
}

.servicio-detalle summary {
    width: fit-content;
    color: #1e897c;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.servicio-detalle summary:hover {
    color: #08796e;
}

.servicio-detalle details .service-description {
    margin-top: 10px;
}


.cta-nosotros {
    padding: 5rem 1.5rem;
    color: #ffffff;
    text-align: center;
    background: #0d3833;
}

.cta-nosotros h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-nosotros p {
    color: #d7ece9;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-nosotros a {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: #ffffff;
    background-color: #009e8c;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.cta-nosotros a:hover {
    background-color: #08796e;
}


@media (max-width: 900px) {
    .tarjeta-servicio {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 650px) {
    .banner {
        height: 50vh;
        min-height: 320px;
        margin-bottom: 3rem;
        background-repeat: no-repeat;
    }

    .tarjeta-servicio {
        grid-template-columns: 1fr;
    }
}