/* ==========================================================================
   Servicios: categorías, tarjetas de servicio y add-ons
   ========================================================================== */

.services {
    padding: 5rem 0;
    background: var(--color-bg-light);
    position: relative;
    z-index: 10;
}

.services-category {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 1rem 0;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-gold-line);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Tarjeta de servicio */
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 2px solid rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 1;
}

.service-title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    z-index: 2;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

.service-level-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--color-gold);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.service-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-includes {
    margin-bottom: 2rem;
    flex: 1;
}

.service-includes h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.4rem 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.8rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Precios por tipo de vehículo */
.service-pricing {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.service-pricing h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-list {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.price-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: calc(33.333% - 1.33rem);
    box-sizing: border-box;
    padding: 0.5rem;
}

.price-item .vehicle-type {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-item .price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-gold);
}

.service-request-btn {
    background: var(--gradient-gold);
    color: var(--color-dark);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.service-request-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    text-decoration: none;
    color: var(--color-dark);
}

.service-request-btn i {
    font-size: 18px;
}

/* Add-ons */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.addon-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.addon-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.addon-info p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.addon-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-gold);
    text-align: right;
}

@media (max-width: 768px) {
    .services {
        padding: 2.5rem 0;
    }

    .category-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.3px;
        padding: 0.5rem 0;
    }

    .category-title::after {
        width: 80px;
        height: 3px;
    }

    .services-category {
        margin-bottom: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .addons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .addon-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .addon-info h4 {
        font-size: 0.9rem;
    }

    .addon-price {
        font-size: 1.2rem;
    }

    .service-card {
        border-radius: 15px;
        margin: 0 0.2rem;
    }

    .service-image {
        height: 180px;
    }

    .service-title {
        font-size: 1.1rem;
        bottom: 10px;
        left: 12px;
    }

    .service-level-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .service-body {
        padding: 1.2rem;
    }

    .service-includes h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .service-list li {
        font-size: 0.85rem;
        padding: 0.25rem 0;
        padding-left: 1.3rem;
    }

    .service-pricing {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* En móvil los precios pasan a una lista vertical */
    .price-list {
        flex-direction: column;
        gap: 0.6rem;
    }

    .price-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: left;
        width: 100%;
        max-width: none;
    }

    .price-item:last-child {
        border-bottom: none;
    }

    .price-item .price {
        font-size: 1rem;
    }

    .service-request-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.2rem;
        letter-spacing: 0.2px;
        padding: 0.4rem 0;
    }

    .category-title::after {
        width: 60px;
        height: 3px;
    }

    .service-card {
        margin: 0;
    }
}
