/* Hero Servicios */

.hero-servicios {
    height: 80vh;
    background: url('../Imagenes/patrol-servicios2.JPG') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 70px;
    margin-top: 90px;
}

.overlay-servicios {
    background: rgba(255,255,255, 0.88);
    padding: 45px;
    border-radius: 20px;
    max-width: 500px;
    min-height: 70%;
    margin-top: 10px;
}

.overlay-servicios h1 {
    font-family: 'Oswald', sans-serif;
    color: #e53434;
    margin-bottom: 12px;
    font-size: 40px;
}

.overlay-servicios h2 {
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.overlay-servicios h3 {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.overlay-servicios p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 12px;
    opacity: 0.85;
    line-height: 1.4;
}

/* Vehículos servicios */

.servicios {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.servicio {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #f5f5f5;
}

.servicio .texto {
    flex: 1;
}

.servicio .texto h2 {
    color: #e53434;
    font-size: 35px;
    margin-bottom: 30px;
    padding-left: 30px;
    font-family: 'Montserrat', sans-serif;
}

.servicio .texto ul {
    list-style: disc;
    padding-left: 30px;
    padding-bottom: 40px;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
}

.servicios .texto p {
    margin-bottom: 10px;
    margin-left: 20px;
    font-size: 27px;
    font-family: 'Montserrat', sans-serif;
}

.servicios-campa {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #f5f5f5;
}

.servicios-campa .texto-campa {
    flex: 1;
}


.servicios-campa .texto-campa p {
    margin-bottom: 10px;
    margin-left: 20px;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
}

.servicios-campa .texto-campa h2{
    color: #e53434;
    font-size: 35px;
    margin-bottom: 20px;
    margin-top: 20px;
    padding-left: 500px;
    font-family: 'Montserrat', sans-serif;
    
}

/* Carrusel */

.servicio .carrusel {
    flex: 1;
}

.carrusel {
    position: relative;
    max-width: 565px;
    width: 100%;
    overflow: hidden;
}

.carrusel img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.carrusel .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 10;
    opacity: 1;
}

.carrusel .prev {
    left: 10px;
}

.carrusel .next {
    right: 10px;
}

.carrusel .btn:hover {
    background: rgba(229,51,68,0.8);
}


/* Campa y depósito */

.campa {
    background: #f5f5f5;
    padding: 60px 20px;
}

.campa-inner {
    max-width: 820px;
    margin: 0 auto;
}

.campa-inner h2 {
    font-family: 'Montserrat', sans-serif;
    color: #e53434;
    font-size: 35px;
    margin-bottom: 16px;
    text-align: center;
}

.campa-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: #444;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
}

.acordeon {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acordeon-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.acordeon-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-align: left;
    transition: background 0.2s;
}

.acordeon-btn span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acordeon-btn span i {
    color: #e53434;
    font-size: 14px;
}

.acordeon-arrow {
    color: #e53434;
    font-size: 13px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.acordeon-item.open .acordeon-arrow {
    transform: rotate(180deg);
}

.acordeon-btn:hover {
    background: #fef2f2;
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
}

.acordeon-item.open .acordeon-content {
    max-height: 200px;
    padding: 0 22px 18px;
}

.acordeon-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    border-left: 3px solid #e53434;
    padding-left: 14px;
}

/* Responsive */

@media (max-width: 768px) {
    .hero-servicios {
        height: auto;
        min-height: 100svh;
        padding: 20px;
        padding-top: var(--navbar-height, 162px);
        margin-top: 0;
        justify-content: flex-start;
        align-items: flex-start;
        background-position: center top;
    }

    .overlay-servicios {
        max-width: 100%;
        width: 100%;
        padding: 25px;
        min-height: unset;
        margin-top: 0;
    }

    .overlay-servicios h1 { font-size: 26px; }
    .overlay-servicios h2 { font-size: 13px; }
    .overlay-servicios h3 { font-size: 16px; }
    .overlay-servicios p  { font-size: 14px; }

    .servicio { flex-direction: column; }

    .servicio .texto h2 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-left: 15px;
    }

    .servicio .texto ul { font-size: 16px; padding-left: 20px; }
    .servicio .texto p  { font-size: 16px; margin-left: 10px; }

    .carrusel img { height: 220px; }
}

@media (max-width: 480px) {
    .hero-servicios { padding-top: 200px; }
    .overlay-servicios h1 { font-size: 20px; }
    .carrusel img { height: 180px; }
    .servicio .texto h2 { font-size: 20px; }
}

@media (max-width: 768px) {
    .campa-inner h2 { font-size: 24px; }
    .campa-intro { font-size: 15px; }
    .acordeon-btn { font-size: 14px; padding: 15px 16px; }
    .acordeon-content { padding: 0 16px; }
    .acordeon-item.open .acordeon-content { padding: 0 16px 14px; }
}