/* ===== RESET Y CONFIGURACIÓN BASE ===== */
.pagina3 {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d2d2d;
    background-color: #ffffff;
}

/* ===== HEADER DE SERVICIOS ===== */
.services-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.services-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #2c7a7b;
    text-transform: uppercase;
    margin-bottom: 15px;
    background: #e8f4f8;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid rgba(44, 122, 123, 0.15);
}

.services-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a3b5d;
    margin: 0 0 25px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.services-title br {
    display: block;
}

.services-btn {
    display: inline-block;
    background: #2c7a7b;
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.25);
}

.services-btn:hover {
    background: #1a5c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 122, 123, 0.35);
}

/* ===== GRID DE SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
}

.service-card {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 0 25px 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c7a7b, #4a9e9f);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 122, 123, 0.10);
    background: #ffffff;
    border-color: #d4e9f0;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== IMAGEN DEL SERVICIO ===== */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    margin-bottom: 20px;
    background: #e8f4f8;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ===== CONTENIDO ===== */
.service-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3b5d;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.service-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c7a7b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    background: #e8f4f8;
    padding: 4px 14px;
    border-radius: 20px;
}

.service-link {
    display: inline-block;
    color: #2c7a7b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.service-link:hover {
    color: #1a5c5d;
    border-bottom-color: #2c7a7b;
}

.service-link.buy-now {
    color: #e67e22;
}

.service-link.buy-now:hover {
    color: #d35400;
    border-bottom-color: #e67e22;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .services-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .pagina3 {
        padding: 40px 20px;
    }

    .services-header {
        margin-bottom: 35px;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 0 20px 20px 20px;
    }

    .service-image {
        height: 170px;
    }

    .service-name {
        font-size: 1rem;
    }

    .service-category {
        font-size: 0.65rem;
        padding: 3px 12px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .services-title {
        font-size: 1.6rem;
    }

    .services-tag {
        font-size: 0.65rem;
        padding: 6px 18px;
    }

    .service-card {
        padding: 0 12px 16px 12px;
        border-radius: 16px;
    }

    .service-image {
        height: 130px;
        border-radius: 16px 16px 0 0;
    }

    .service-name {
        font-size: 0.9rem;
    }

    .service-category {
        font-size: 0.6rem;
        padding: 3px 10px;
        margin-bottom: 12px;
    }

    .service-link {
        font-size: 0.75rem;
    }

    .services-btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .pagina3 {
        padding: 30px 12px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .services-title {
        font-size: 1.3rem;
    }

    .services-btn {
        padding: 8px 20px;
        font-size: 0.7rem;
    }

    .service-card {
        padding: 0 8px 12px 8px;
        border-radius: 14px;
    }

    .service-image {
        height: 100px;
        border-radius: 14px 14px 0 0;
        margin-bottom: 12px;
    }

    .service-name {
        font-size: 0.75rem;
    }

    .service-category {
        font-size: 0.55rem;
        padding: 2px 8px;
        margin-bottom: 10px;
    }

    .service-link {
        font-size: 0.65rem;
    }

    .services-tag {
        font-size: 0.6rem;
        padding: 5px 14px;
    }
}