/* ============================================
   HERO SERVICIOS
============================================ */
.hero-servicios {
    background: url('../img/Fondos/patronDiamante-fondo.png') center/cover no-repeat;
    background-color: #0a1172;
    padding: 100px 0;
    margin-top: 80px;
}

.hero-servicios h1 {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
}

/* ============================================
   CATEGORÍAS DE SERVICIOS
============================================ */
.categorias-servicios {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.categorias-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-categoria {
    padding: 14px 28px;
    background-color: #1a237e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-categoria:hover {
    background-color: #0d1654;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.btn-categoria.active {
    background-color: #0d1654;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

/* ============================================
   MANTENIMIENTO SECTION
============================================ */
.mantenimiento-section {
    padding: 60px 0;
    background-color: white;
}

.mantenimiento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Columna Izquierda */
.mantenimiento-info {
    border-left: 5px solid #1a237e;
    padding-left: 30px;
}

.mantenimiento-info h2 {
    font-size: 2.5rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 1.1rem;
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-desc {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.lista-items {
    list-style: none;
    padding-left: 0;
    margin-left: 20px;
}

.lista-items li {
    position: relative;
    font-size: 0.95rem;
    color: #333;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.lista-items li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a237e;
    font-weight: bold;
    font-size: 1.2rem;
}

.info-title {
    font-size: 1.1rem;
    color: #1a237e;
    font-weight: 700;
    margin: 0;
}

/* Columna Derecha - Garantías */
.garantias-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.garantias-image-box {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.garantias-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.garantias-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px;
    display: flex;
    align-items: flex-end;
}

.garantias-overlay h3 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.garantias-cards {
    background-color: #1a237e;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    border-radius: 0 0 8px 8px;
}

.garantia-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.garantia-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garantia-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.garantia-card p {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 968px) {
    .hero-servicios {
        padding: 80px 0;
    }

    .hero-servicios h1 {
        font-size: 3rem;
    }

    .mantenimiento-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .mantenimiento-info {
        border-left: 4px solid #1a237e;
        padding-left: 25px;
    }

    .garantias-cards {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-servicios {
        padding: 60px 0;
        margin-top: 60px;
    }

    .hero-servicios h1 {
        font-size: 2.5rem;
    }

    .categorias-servicios {
        padding: 30px 0;
    }

    .btn-categoria {
        font-size: 0.8rem;
        padding: 12px 22px;
    }

    .mantenimiento-section {
        padding: 50px 0;
    }

    .mantenimiento-info h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .info-block h3,
    .info-title {
        font-size: 1rem;
    }

    .garantias-overlay h3 {
        font-size: 2rem;
    }

    .garantias-cards {
        padding: 35px 25px;
        gap: 30px;
    }

    .garantia-icon {
        width: 60px;
        height: 60px;
    }

    .garantia-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-servicios {
        padding: 50px 0;
    }

    .hero-servicios h1 {
        font-size: 2rem;
    }

    .categorias-servicios {
        padding: 25px 0;
    }

    .btn-categoria {
        font-size: 0.75rem;
        padding: 10px 18px;
    }

    .mantenimiento-section {
        padding: 40px 0;
    }

    .mantenimiento-info {
        border-left: 3px solid #1a237e;
        padding-left: 20px;
    }

    .mantenimiento-info h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .info-block {
        margin-bottom: 25px;
    }

    .info-block h3,
    .info-title {
        font-size: 0.95rem;
    }

    .info-desc,
    .lista-items li {
        font-size: 0.85rem;
    }

    .garantias-image-box {
        height: 220px;
    }

    .garantias-overlay {
        padding: 20px;
    }

    .garantias-overlay h3 {
        font-size: 1.6rem;
    }

    .garantias-cards {
        padding: 30px 20px;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .garantia-icon {
        width: 55px;
        height: 55px;
    }

    .garantia-card p {
        font-size: 0.85rem;
    }
}

/* ============================================
   GALERÍA DE PROYECTOS
============================================ */
.galeria-proyectos-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.galeria-wrapper {
    border: 8px solid #1a237e;
    padding: 50px 40px;
    background-color: white;
}

.galeria-wrapper h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin-bottom: 50px;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.proyecto-card {
    position: relative;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-5px);
}

.proyecto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.proyecto-card:hover img {
    transform: scale(1.1);
}

.proyecto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-overlay h3 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ============================================
   RESPONSIVE - GALERÍA
============================================ */
@media (max-width: 968px) {
    .galeria-proyectos-section {
        padding: 60px 0;
    }

    .galeria-wrapper {
        border-width: 6px;
        padding: 40px 30px;
    }

    .galeria-wrapper h2 {
        font-size: 2.3rem;
        margin-bottom: 40px;
    }

    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .proyecto-card {
        height: 200px;
    }

    .proyecto-overlay h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .galeria-proyectos-section {
        padding: 50px 0;
    }

    .galeria-wrapper {
        border-width: 5px;
        padding: 35px 25px;
    }

    .galeria-wrapper h2 {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .proyectos-grid {
        gap: 20px;
    }

    .proyecto-card {
        height: 180px;
    }

    .proyecto-overlay h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .galeria-proyectos-section {
        padding: 40px 0;
    }

    .galeria-wrapper {
        border-width: 4px;
        padding: 30px 20px;
    }

    .galeria-wrapper h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .proyecto-card {
        height: 200px;
    }

    .proyecto-overlay h3 {
        font-size: 1.8rem;
    }
}